![]() |
C/C++
I am great fan of C/C++ and wan´t to start a forum for all that people that understand (or want to understane) anything from it.
And I wan´t to ask. Does anyone know if C/C++works fine with the Windows XP? I always had problem with this. Best Regards. |
Am I correct in understanding that you want to make a fansite for a programming language? Y'know there are already lots of tutorial and help sites on the Internet. Just hit up Google.
Also, I'm pretty sure C/C++ was used to write portions of Windows XP. But don't quote me on that. |
Yes, I know it, but somethings are either not easy to understand or not to find. e.g. I always try to make games with C/C++ but somethings I read in all possible places but I didnt find.
Best Regards. |
yes, given that you have a compiler that is compatible with windows xp (such as visual c++ or vc++.net).
any programming will work with any os as long as the it has a compiler/assembler/interpreter written for it. |
Quote:
|
Quote:
I have an industrial placement next year with www.gltrade.com and have to program multi threaded c++ code almost exclusivly, gonna be in interesting year :) |
Very little code for Windows is actually written in asm. Sure, the base pieces of Windows are for new editions, but those are largely untouched between version updates. It is much easier to write a great compiler once and then write everything else in a higher-level language.
Just about the only reason asm is even taught in universities anymore is because it helps broaden the understanding of how computers operate, and not much else. |
grodiens:
If you want to make games in C++ and have a $100 bucks to spend, go to www.garagegames.com and download the Torque Game engine. It is the best way to build / design a game that has even been made for so cheap a price and the help forums there are excellent. Any problem you possibly could have weith it has seriously been answered by at least two people in the help forums there. |
Thank you all for the tips. Maybe I will try the Torque Game to make my games (I muss see my money first. :ashamed: )
I tried today to open the c++ but I can´t make it to work. Does anyone knows a version that works simply with the XP? Best Regards. |
Right-click the source code, select Open With, then select "Notepad"
If you want to actually compile the code, get something like this. |
Quote:
|
Or you could just use gcc.
|
Quote:
Best regards |
Do you even now a thing about C/C++ or are you just a newbie at it?
|
Quote:
Best Regards. |
I'm on the opinion C# would be THE language both for application developent and OS development if it was optimized to the degree of C/C++, allowed asm keyword for inline assembler, function calling convention mangling, forced inline keyword and native code generation.
Array bounds checking, the string implementation, and its clean syntax makes C# very neat, even better than Java since it allows gotos and pointers (not recommended maybe, but they SHOULD be even for a last resort). (Although, in the case of writing new OS code, you'd first write all the memory management stuff before creating objects via the new instruction or threads, per example). |
How much harder is it to program in assemly than it is in C/C++? I know it's much more arcane, but the tendancy is, the more assembly used in a program, the faster it runs (as painfully evident in my pure C++ emulators as oppsed to the likes of Kega, Gens and Zsnes).
|
C and C++ are not designed to be emulated languages, which is why any "emulator" would run so poorly.
Even when programming for giant Mainframe applications that take months, programmers use high-level languages instead of assembly. Compilers do their job well and it is about infinity times easier to program in high-level as opposed to assembly. |
Quote:
Java doesn't allow goto because it is not a procedural language. goto does not mean that C# has a cleaner syntax. You can say that nothing in Java is a pointer because you aren't allowed to manipulate them directly, but, really, everything in Java is a pointer. |
On C# - I'm no expert (I've just been learning it for a couple of weeks myself), but the entire point of C# is that it's strongly typed and prevents a lot of low-level activities that C and C++ allowed to that end. MS calls it a "security feature"; the rest of us call it "a pain in the ass".
|
Yeah but, and this might only be true in VS.NET, there was an easy way to disarm those restrictions. So perhaps it only relates to C# as it is in a .NET environment but, really, last I checked it hadn't branched out beyond that.
|
What. There are basically C/C++ compilers for every platform in existance. And if you want to make Windows programs, nab Visual Studio 2005 (Express, if you want a free compiler while the offer's still on), use the Windows SDK, grab the DirectX 9 SDK, and then code away. I'd think any of the basic window functionality hasn't changed since 98 for the most part, so writing a modern Windows app wouldn't be significantly different. Don't settle for GCC or Dev-C++, they're not near as well catered to the Windows platform, plus VS has the greatest API. Ever.
|
Quote:
|
It doesn't even make sense to say that compiler had a good API. :\ If you mean the documentation, uh, no. Java still is king.
|
Quote:
C# was designed mostly with network and internet programming in mind where a lot of proper programming practices need to be observed to maintain security. The problem is most C programmers simply never learned what those practices were and never had to face them being they only have dealt with a single local machine. As a result they had to make the C# language very ridged in hopes in doing so would teach programmers proper programming via the language structure. |
Quote:
http://www.bigblah.net/upload/wspg.asm |
Quote:
Isn't the whole point of high-level languages that you let the compiler generate all the Assembly? What's the point of using low-level code in the middle of C/C++? |
Optimization, it is an incredibly common thing to have C code call external functions written in asm.
|
Quote:
|
Quote:
http://www.c-sharpcorner.com/Code/20...UnsafeCode.asp |
Argh. I sorry. I didn't mean best API... Ew. That was a rather sad mistake. Er... Best IDE. This is why acronyms are evil. I like VS's interface, not the library. Sorry for the misunderstanding. :/
|
The VS IDE is.... OK. Still can't touch vim+make in my book. Or Eclipse if you truly need an honest-to-god IDE.
|
But vim+make isn't an IDE, so that doesn't really count.
Eclipse came out near the end of my college career, so I didn't really get into it, being set in my ways, but a few of my student teachers turned me on to it. Had I stuck with programming and Java, I would have made the switch to it eventually. |
I've had some time with C and C++ last semester, and now dealing with assembly this semester. It's more of a bitch to do things that would be considered "simple" in C/C++ in assembly. What could take like 3-4 lines of code in C/C++ would take 2-3 times more (occassionally even more) code in assembly.
But then again, if you saw Blah's example, you'd now this by now. Oh yeah, forgot to mention the original post. I've compiled C/C++ programs (although all were run in a DOS window) and they worked fine in Windows XP. |
Using assembly you can make a program run faster than using program written in C/C++. Especially local variables, which can be removed, by using only registers (which cannot be accessed in high level language).
Most basic functions in C/C++ are written in assembly for the purpose of speed like the function strcpy, strlen. Which are written in assembly (as of the libraries of VC++). In tracing the function, you will see assembly immediately. There are some software that fit using assembly, like hardware communication. Which includes software driver, etc. and some program that are fit using high level like C/C++, business software since maintenance is also part of the cost of developing software. |
Nowadays, when CPU time is cheap and coding time isn't, writing assembly is just plain stupid. Your code isn't portable, is more painful to debug and read, and the speed benefit is very negligible.
|
There are many applications where any improvement is worth it. Consider a program which is run billions of time every day versus the time it takes to code a function once.
|
Operating system and system software like anti-virus and firewall must be written in such low level so that they will execute much quicker.
As the computer grows faster, we users install and use more software. And programmers tend to use the potential of the faster computer (Game is a good example).(I think it’s proportional: more speed = more software = more memory usage :) .) Even using such low-level or high level, if the algorithm of the software is slow, any implementation will not make it faster. |
Quote:
ASM, used wisely, is used to optimize concrete areas of an application, not to develop entire applications (that's just overkill, and one could end up reinventing the square wheel if not careful). As for portability, it's ok when an application is portable between OSes, but most times you aren't going outta the x86 architecture so it's not much of a deal. |
Quote:
|
Quote:
|
Usually, such high requirements aren't due to high language coding but because of inadequate data structures and/or bloatware.
|
Quote:
Second, who DOESN'T have 256MB of RAM and 700Mhz? I have 6 machines meeting those qualifications in my house (0 that don't), a stack of 550-700Mhz Pentium III chips sitting on my desk that I have nothing to do with, and a bag of 128MB PC100 and PC133 RAM sticks that I have nothing to do with. You can find better hardware at Goodwill. And I guess "Third" would be stop using MS Office 2003. I've ran OpenOffice 2.0 on Pentium-75s with 128MB of RAM. |
Even though ASM is useful in cases, I'd much rather avoid it when possible. Just let the compiler do its job.
Personally, I dig Python a lot more than C/C++, and Python is an interpretted language, so it's even slower than C. But really, it makes up for the slowness with awesome. I'm sure some of you hate it because it doesn't have strict variable typing and indentation rules and whatnot, but I love it. The library, the simplicity, the forced convention of spacing, generator functions, lists, tuples, dictionaries, not having to use confusing templates... <3. |
Even I am using Java, which I considered the slowest language that I have used, since it is both compiled and interpretted.
More program especially business program doesn't need to run very efficient that it must be written in assembly. It's the logic and algorithm that count. Even you use assembly but the logic takes n * n to finish(I don't know how to write n square). It will be defeated by a logic that takes log n, n or even n * log n written in latest language. Programmers tends to choose language which they can work/compatible with so that they can create software much faster. The compilers are also being develop/upgrade so that it can be more efficient and have more options to give. |
The main slowdown of Java is the horrendous VMs out there today. If someone could write a good, efficient VM, it'd become the complete industry standard overnight. But that giant level of overhead is what keeps other stuff like C++ and C# going. Heck, I haven't even bothered learning Java yet. I suppose eventually I should.
|
Quote:
|
Quote:
You, sir, have my respect. Double Post: Quote:
Java is pretty strong today, with a *lot* of business-critical applications. I'm not expecting it to disappear quickly. (I say that, and I just hate Java) However, you can be sure Microsoft will try to kill it with its C# |
Quote:
|
Quote:
Quote:
Java is very important, I think the 3rd most used language (outside of C and C++). Sun, as a caretaker, has gone to vast lengths to improve it, there is one single body to make changes to the language and they never make poor decisions. I think it is still the easiest language to learn (not just the language itself, but it is easy to learn concepts in), so it definitely has its educational purposes. |
Quote:
|
Quote:
Edit: Although I compiled it natively in Linux, so maybe that had more to do with it. |
Quote:
|
I'm actually curious how much of a functionality difference there is between Office 95 and Open Office such that you'd want to wait 84 seconds for a word processor to load when I remember having Office 95 load faster on my 300mhz machine than Office XP does on my current one.
|
Quote:
Quote:
Double Post: Quote:
Quote:
|
Quote:
|
Quote:
Quote:
|
Quote:
But a slow boot is a slow boot, whatever product you talk about. |
| All times are GMT -5. The time now is 07:25 PM. |
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2026, vBulletin Solutions, Inc.