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 » Mon Jun 07, 2010 12:14 pm

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: 231
Joined: Wed Dec 10, 2008 9:08 am
Location: San Bernardino CA
Contact:

Post by bongomeno » Mon Jun 07, 2010 9:27 pm

I would recommend learning C first. It is easier.

for that, maby you would like the TinyC compiler. Just a compiler, but no IDE.
Home: http://www.geekbasic.com" target="_blank
Forum: http://www.geekbasic.com/index.gbws?$page=forumsmain" target="_blank
QB64 powered web server: http://www.geekbasic.com/index.gbws?$pa ... inter=%201" target="_blank

Anonymous

Post by Anonymous » Tue Jun 08, 2010 3:57 am

I like using Bloodshed Dev C++ you can download it here http://bloodshed-dev-c.en.softonic.com/

User avatar
bongomeno
Veteran
Posts: 231
Joined: Wed Dec 10, 2008 9:08 am
Location: San Bernardino CA
Contact:

Post by bongomeno » Tue Jun 08, 2010 9:00 am

A nice little C++ compiler that I have made use of in the past is CIDEE. http://cidee.sourceforge.net/
Home: http://www.geekbasic.com" target="_blank
Forum: http://www.geekbasic.com/index.gbws?$page=forumsmain" target="_blank
QB64 powered web server: http://www.geekbasic.com/index.gbws?$pa ... inter=%201" target="_blank

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

Post by floogle11 » Tue Jun 08, 2010 11:57 am

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 » Tue Jun 08, 2010 12:13 pm

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 » Tue Jun 08, 2010 12:19 pm

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 » Wed Jun 09, 2010 2:19 am

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 » Wed Jun 09, 2010 10:44 am

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 » Wed Jun 09, 2010 4:08 pm

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 » Thu Jun 10, 2010 11:57 am

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 » Thu Jun 10, 2010 12:44 pm

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 » Thu Jun 10, 2010 4:18 pm

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 » Thu Jun 10, 2010 4:25 pm

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 » Fri Jun 11, 2010 2:17 am

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 » Fri Jun 11, 2010 11:21 am

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

Anonymous

Post by Anonymous » Fri Jun 11, 2010 3:18 pm


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

Post by floogle11 » Sat Jun 12, 2010 1:35 pm

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