| | |
Best free C/C++ compiler for a newbie?
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
Hello,
I would recommend Bloodshed Dev-C++ for C++ programming.
If you want to compile C code, I would suggest using a C compiler such as GCC. I'm un-aware of any free available IDE envrionments for the C language. Though you may be able to compile C code in Dev-C++. I've never tried, though.
- Stack Overflow
I would recommend Bloodshed Dev-C++ for C++ programming.
If you want to compile C code, I would suggest using a C compiler such as GCC. I'm un-aware of any free available IDE envrionments for the C language. Though you may be able to compile C code in Dev-C++. I've never tried, though.
- Stack Overflow
Following the rules will ensure you get a prompt answer to your question. If posting code, please include BB [code][/code] tags. Your question may have been asked before, try the search facility.
IRC
Channel: irc.daniweb.com
Room: #c, #shell
IRC
Channel: irc.daniweb.com
Room: #c, #shell
Ok, downloaded and found an online tutorial and I've already hit a bit of trouble:
Thats the program. I compile and run as a .cpp. It seems to compile fine ("hello.exe" appears in folder), but when it comes to running, it shows the DOS box to display the text, and immediatly (spelling?) closes. The log displays something like this:
What am I doing wrong
C++ Syntax (Toggle Plain Text)
// my first program in C++ #include <iostream.h> int main () { cout << "Hello World!"; return 0; }
Thats the program. I compile and run as a .cpp. It seems to compile fine ("hello.exe" appears in folder), but when it comes to running, it shows the DOS box to display the text, and immediatly (spelling?) closes. The log displays something like this:
C++ Syntax (Toggle Plain Text)
In file included from C:/Dev-Cpp/include/c++/3.3.1/backward/iostream.h:31, from /my folder etc/hello.cpp:3: C:/Dev-Cpp/include/c++/3.3.1/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated. Execution terminated Compilation successful
What am I doing wrong
Hello,
You may want to try: The function get() extracts a character from the stream and returns its value. It's a good way of pausing the console screen.
- Stack Overflow
You may want to try:
// my first program in C++ #include <iostream> using namespace std; int main (void) { // Display text cout << "Hello World!" << endl; // Pause screen cin.get(); // Terminate program return 0; }
- Stack Overflow
Following the rules will ensure you get a prompt answer to your question. If posting code, please include BB [code][/code] tags. Your question may have been asked before, try the search facility.
IRC
Channel: irc.daniweb.com
Room: #c, #shell
IRC
Channel: irc.daniweb.com
Room: #c, #shell
Pelles C is free and comes with support for Pocket PC and Smartphones. It has a great IDE and helpfile!
Download it from:
http://smorgasbordet.com/pellesc/index.htm
Download it from:
http://smorgasbordet.com/pellesc/index.htm
May 'the Google' be with you!
![]() |
Similar Threads
Other Threads in the C++ Forum
- Previous Thread: Emergency help, my assignment is due in 24hours
- Next Thread: Debugging string function
| Thread Tools | Search this Thread |
api array arrays based beginner binary c++ c/c++ calculator char char* class classes code compile compiler console conversion count delete deploy desktop directshow dll download dynamic dynamiccharacterarray encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory news number numbertoword output parameter pointer problem program programming project python random read recursion recursive reference return rpg sorting string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets






