C++

Discuss whatever you want here--both QB and non-QB related. Anything from the DEF INT command to the meaning of life!

Moderators: Pete, Mods

Post Reply
User avatar
floogle11
Veteran
Posts: 71
Joined: Sat May 02, 2009 7:08 pm
Location: Zorgon planet
Contact:

C++

Post by floogle11 »

Lately ive wanted to program in C++ but my C++ thing hasnt worked so i trashed it and do any of you know a free C++ thing i can download. (not codeblocks i tried it but it wasnt running my programms)
Go to my Qbsite its: Trueqb.webs.com
Or if you play nazi zombies go to www.Nazizombys.com and register for cheats, hints, and strategys.
User avatar
bongomeno
Veteran
Posts: 266
Joined: Wed Dec 10, 2008 9:08 am
Location: Arizona
Contact:

Post by bongomeno »

I would recommend learning C first. It is easier.

for that, maby you would like the TinyC compiler. Just a compiler, but no IDE.
Anonymous

Post by Anonymous »

I like using Bloodshed Dev C++ you can download it here http://bloodshed-dev-c.en.softonic.com/
User avatar
bongomeno
Veteran
Posts: 266
Joined: Wed Dec 10, 2008 9:08 am
Location: Arizona
Contact:

Post by bongomeno »

A nice little C++ compiler that I have made use of in the past is CIDEE. http://cidee.sourceforge.net/
User avatar
floogle11
Veteran
Posts: 71
Joined: Sat May 02, 2009 7:08 pm
Location: Zorgon planet
Contact:

Post by floogle11 »

Thanks guys i really needed somthing more complex to program in.
Go to my Qbsite its: Trueqb.webs.com
Or if you play nazi zombies go to www.Nazizombys.com and register for cheats, hints, and strategys.
User avatar
floogle11
Veteran
Posts: 71
Joined: Sat May 02, 2009 7:08 pm
Location: Zorgon planet
Contact:

Post by floogle11 »

HEy with dev C++ i compile my prog and i try to run it but it says it hasnt been compiled yet?
Go to my Qbsite its: Trueqb.webs.com
Or if you play nazi zombies go to www.Nazizombys.com and register for cheats, hints, and strategys.
User avatar
floogle11
Veteran
Posts: 71
Joined: Sat May 02, 2009 7:08 pm
Location: Zorgon planet
Contact:

Post by floogle11 »

wait now i compiles but when i run it it just closes out
Go to my Qbsite its: Trueqb.webs.com
Or if you play nazi zombies go to www.Nazizombys.com and register for cheats, hints, and strategys.
Anonymous

Post by Anonymous »

try putting system("pause"); as the last statement in main()
User avatar
floogle11
Veteran
Posts: 71
Joined: Sat May 02, 2009 7:08 pm
Location: Zorgon planet
Contact:

Post by floogle11 »

still dosnt work
Go to my Qbsite its: Trueqb.webs.com
Or if you play nazi zombies go to www.Nazizombys.com and register for cheats, hints, and strategys.
Anonymous

Post by Anonymous »

Try running this code

Code: Select all

#include <iostream>

using namespace std;

int main()
{
    cout << "Hello World" << endl;
    system("pause");
    return 0;
}
User avatar
floogle11
Veteran
Posts: 71
Joined: Sat May 02, 2009 7:08 pm
Location: Zorgon planet
Contact:

Post by floogle11 »

thank you
Go to my Qbsite its: Trueqb.webs.com
Or if you play nazi zombies go to www.Nazizombys.com and register for cheats, hints, and strategys.
User avatar
floogle11
Veteran
Posts: 71
Joined: Sat May 02, 2009 7:08 pm
Location: Zorgon planet
Contact:

Post by floogle11 »

ok now im trying to run this but it wont work:
heres the code that im using:

Code: Select all

#include <iostream>
int Add (int x, int y)
{
    cout << "In Add(), recieved " << x << " and " << y << endl;
    system ("pause");
    return (x+y);
}

int main()
{
    cout << "im in main() " << endl;
    int a, b, c;
    cout << "enter two numbers: " <<endl>> a;
    cin >> b;
    cout << "calling Add() " << endl;
    c=Add(a, b);
    cout << "back in main()" << endl;
    cout << " c was set to" << c << endl;
    cout << " exiting...." << endl;
    system ("pause");
    return 0;
}
Last edited by floogle11 on Thu Jun 10, 2010 4:24 pm, edited 1 time in total.
Go to my Qbsite its: Trueqb.webs.com
Or if you play nazi zombies go to www.Nazizombys.com and register for cheats, hints, and strategys.
Anonymous

Post by Anonymous »

Works fine for me. What error are you getting?
User avatar
floogle11
Veteran
Posts: 71
Joined: Sat May 02, 2009 7:08 pm
Location: Zorgon planet
Contact:

Post by floogle11 »

srry i changed it it started working but what i just put up i dont know what its doing when i try to run it. Im confused is it end1 or endl at the end of cout <<
Go to my Qbsite its: Trueqb.webs.com
Or if you play nazi zombies go to www.Nazizombys.com and register for cheats, hints, and strategys.
Anonymous

Post by Anonymous »

it is endl for end line
User avatar
floogle11
Veteran
Posts: 71
Joined: Sat May 02, 2009 7:08 pm
Location: Zorgon planet
Contact:

Post by floogle11 »

oh ok, do you just have any tutorials i hate asking questions or know were any are.
Anonymous

Post by Anonymous »

User avatar
floogle11
Veteran
Posts: 71
Joined: Sat May 02, 2009 7:08 pm
Location: Zorgon planet
Contact:

Post by floogle11 »

Thanks a lot i wont ask many questions any more.
Go to my Qbsite its: Trueqb.webs.com
Or if you play nazi zombies go to www.Nazizombys.com and register for cheats, hints, and strategys.
Post Reply