cool. thanks.
Type: Posts; User: dead_captain
cool. thanks.
#include <iostream>
#include <string>
using std::cout;
using std::endl;
using std::cin;
using std::string;
int main()
{
int number, number1, number2;
const int AVERAGE = 3;
int number, number1, number2, add;
cout << "Pick a number!: ";
cin >> number;
cout << "Another number: ";
cin >> number1;
number +...
Sorry if the question is to "simple" but I cant figure it out. So im asking. Help, how do I add the three numbers, and divide them.
I dont like our attitude
const int AVERAGE = 3;
int number, number1, number2, add;
cout << "Pick a number!: ";
cin >> number;
cout << "Another number: ";
cin >> number1;
cout <<...
#include <iostream>
#include <string>
using std::cout;
using std::endl;
using std::cin;
using std::string;
int main()
{
I am using BEGINNING C++ GAME PROGRAMMING It included a CD-ROM with DEV-C++. To me it is great for the absolute beginer(like me), It could probably be more in depth though, it seems too simple....
HEY HEY! "L" did the trick, I guess I was too tierd to notice, or I thought it was 1 for whatever reason. This is kick @ss! thanks!!!
Ok, well I don't know any C. I know it was before C++ but thats about it. Sorry for the dumb. lol
thanks for trying though.
well thanks for the advice, although still no luck. :(
I have a book and it says this "should" work..
It still just pops up and closes right away. It is also saying the end1 is undeclared.
#include <iostream>
using namespace std;
int main (int argc, char *argv[])
{
cout << "hello mike!" << end1;
cout << "press enter key to exit!!" << end1;
...
I believe I said thanks for the help.
Thanks again, if not before.
"can't we all just get along." LOL
#include <iostream>
using std::cout;
using std::end1;
int main()
{
cout << "hello mike!" << end1;
cout << "press enter key to exit!!" << end1;
...
I had a problem compiling on Vista. Turns out saving the code in MyDocuments caused the error. I don't know if this is the problem, but hope it helps a little.
thanks
When I try to compile using Dev-c++ I get a .h header file that pops up in a new tab, not even allowing the compile to take place, all that is in the code is #include<iostream>. This never happened...
Is Vista the reason why I am having trouble compiling on Dev-c++, and on visaul c++ 2008? Should I switch back to XP Pro?
good god... chill out
Why do certain people feel the need to attack because of "less boring code". I'm sure we have all seen the "hello world" sample code. Well in my opinion that is lame. I see no reason why I cannot...
how can I be looking for attention when I am doing these code at home? I just need help to get them to run. sorry if you have no humor. It is a free country and if I feel like "hello word" is a...
iostream is on my header page. thats why it says #include "nazi.h"
1>------ Build started: Project: mdc, Configuration: Debug Win32 ------
1>Compiling...
1>johnwayne.cpp
1>c:\users\r.lyda\documents\c++\mdc\mdc\johnwayne.cpp(6) : error C2143: syntax error :...
I don't know, but these compile errors are are always there. I have tried to change code, and nothing seem to work. It sucks. When she does it on the video it works fine, all I changed was the words.