•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 330,266 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,538 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser:
Views: 10133 | Replies: 11
![]() |
•
•
Join Date: Oct 2004
Location: Southwest UK
Posts: 131
Reputation:
Rep Power: 0
Solved Threads: 0
•
•
Join Date: Sep 2004
Location: Overflow State
Posts: 183
Reputation:
Rep Power: 4
Solved Threads: 4
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
•
•
Join Date: Oct 2004
Location: Southwest UK
Posts: 131
Reputation:
Rep Power: 0
Solved Threads: 0
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
// 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:
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 successfulWhat am I doing wrong
•
•
Join Date: Sep 2004
Location: Overflow State
Posts: 183
Reputation:
Rep Power: 4
Solved Threads: 4
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
•
•
Join Date: Feb 2005
Location: Braintree, UK
Posts: 1,150
Reputation:
Rep Power: 7
Solved Threads: 57
•
•
Join Date: Oct 2004
Location: Southwest UK
Posts: 131
Reputation:
Rep Power: 0
Solved Threads: 0
•
•
Join Date: Oct 2004
Location: Mojave Desert
Posts: 2,215
Reputation:
Rep Power: 8
Solved Threads: 161
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!
•
•
Join Date: Dec 2004
Location: Allentown, PA
Posts: 60
Reputation:
Rep Power: 4
Solved Threads: 1
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
DaniWeb Marketplace (Sponsored Links)
Other Threads in the C++ Forum
- Previous Thread: Emergency help, my assignment is due in 24hours
- Next Thread: Debugging string function



Linear Mode