Forum: Computer Science Nov 13th, 2008 |
| Replies: 2 Views: 513 Can someone please help me out? What are the pros and cons of C++ and Java? I've always been told that C++ is the ultimate programming language. It's powerful, fast, and used to run huge programs.... |
Forum: C++ Nov 8th, 2008 |
| Replies: 1 Views: 985 I'm including these three files in my C++ program:
#include <stdio.h>
#include <cstdlib>
#include <iostream.h>
The C++ compiler I am using (Dev-C++ 4.9.9.2) Allows me to run this program.... |
Forum: C++ Oct 4th, 2008 |
| Replies: 5 Views: 543 I see. Thank you very much =) |
Forum: C++ Oct 3rd, 2008 |
| Replies: 5 Views: 543 Now, we all know that // makes a comment. But I have a question about the compiling of the program? Say you were to make a comment with a whole bunch of underscores to signify a different section... |
Forum: C++ Sep 30th, 2008 |
| Replies: 5 Views: 454 Yeah, I know. I just caught that spelling mistake. By the way, there's no mistake in Length / 2.0;. It's fine. Anyway, all of the problems are typos. It turns out that when it highlights the ... |
Forum: C++ Sep 30th, 2008 |
| Replies: 5 Views: 454 I included it:
#include <iostream>
#include <cstdlib>
#include <string>
using namespace std;
And it still doesn't work correctly. Is there anything else that I might have done wrong? |
Forum: C++ Sep 29th, 2008 |
| Replies: 5 Views: 454 All right so I'm learning C++ via library books and the information isn't too helpful, but it's the best I can find. Most of the books at my library are older than I am - copyright 1993 - some even... |
Forum: C++ Jul 30th, 2008 |
| Replies: 14 Views: 1,694 |
Forum: C++ Jul 30th, 2008 |
| Replies: 14 Views: 1,694 Cool. Thanks for the info links. But I just have one more question. It was mentioned that
But in the code that I got from n.aggel, there was #define HEADER_H. That's only one symbol, right? Or... |
Forum: C++ Jul 29th, 2008 |
| Replies: 14 Views: 1,694 Now I'm really confused. When I don't include system("PAUSE"); then the console screen just pops up and instantly disappears. What are #ifndef and #define, and what's #endif? It works, thanks. ... |
Forum: C++ Jul 28th, 2008 |
| Replies: 14 Views: 1,694 Actually that's not the problem. The function was specified in another source file called proto.cpp. Anyway, I was playing around with the source files and somehow figured out how to make it work. ... |
Forum: C++ Jul 28th, 2008 |
| Replies: 14 Views: 1,694 main.cpp
#include <cstdlib>
#include <iostream>
#include "header.h"
using namespace std;
int main(int argc, char *argv[])
{
variable = 20;
function(); |
Forum: C++ Jul 28th, 2008 |
| Replies: 14 Views: 1,694 Hey, I'm just starting to learn C++ and I need some help with a header file. I'm using a Dummies Guide book and it says that I need to create a header file with the extension .h. SO I created a... |