if u good with c++

Anything else. Post a funny site or tell us about yourself. Discuss current events or whatever else you want. Post off topic threads here.
Post Reply
User avatar
blackfalcon
Loyal Member
Posts: 1865
Joined: Sun Jun 24, 2007 5:22 pm
Quick Reply: Yes
Location: off topic

if u good with c++

Post by blackfalcon »

so like i was bored and decided to make a little prog that would run any game you typed in

Spoiler!


problem is, when i type in a game, it runs all the games instead of just the one i typed =/
anybody have an idea on how to fix? :oops:
R.I.P Bernie
10/5/57 ~ 8/9/08

User avatar
Cruor
Loyal Member
Posts: 1999
Joined: Wed Apr 12, 2006 1:22 am
Quick Reply: Yes
Location: Off topic

Re: if u good with c++

Post by Cruor »

Code: Select all

if (game == "freecell" || "Freecell")
Always evaluates to true. Same with the rest.
Image

User avatar
Grimm-.-
Veteran Member
Posts: 3128
Joined: Sun Nov 25, 2007 10:12 am
Quick Reply: Yes
Location: SteakSauce
Contact:

Re: if u good with c++

Post by Grimm-.- »

Can c++ Be learned on the internet...
How hard is it to learn?
I Has Intrest in this.
<< banned for proof of botting. -cin >>

User avatar
Stress
Ex-Staff
Posts: 4599
Joined: Thu Oct 26, 2006 7:42 am
Quick Reply: Yes
Location: Studying Computer Science, Vienna

Re: if u good with c++

Post by Stress »

To run the program smoother, use an "else" after each "if". Also, make sure your conditions aren't always true :)
Carry your cross, and I'll carry mine.

User avatar
CloudStrider
Advanced Member
Posts: 2125
Joined: Tue Jul 15, 2008 2:45 pm
Quick Reply: Yes
Location: Away

Re: if u good with c++

Post by CloudStrider »

Grim, C++ is one of the harder languages, I suggest learning something like VB.

Just go on youtube and search tutorials, good way to self learn.
penfold1992 wrote:durka durka muhammad gihad allah 10k plys. thats all i hear :S

Image Image
Mad props to Verfo for the sig, ty!

User avatar
Grimm-.-
Veteran Member
Posts: 3128
Joined: Sun Nov 25, 2007 10:12 am
Quick Reply: Yes
Location: SteakSauce
Contact:

Re: if u good with c++

Post by Grimm-.- »

CloudStrider wrote:Grim, C++ is one of the harder languages, I suggest learning something like VB.

Just go on youtube and search tutorials, good way to self learn.

So How many are there?
<< banned for proof of botting. -cin >>

User avatar
CloudStrider
Advanced Member
Posts: 2125
Joined: Tue Jul 15, 2008 2:45 pm
Quick Reply: Yes
Location: Away

Re: if u good with c++

Post by CloudStrider »

I'm not sure the exact number of tutorials.

There will be stuff like, "How to program a progress bar" or "Hello World Display".

VB is simple like this.

If cmdDisplay.Value = 1 Then
lblHello.Caption = "Hello World"
Else
lblHello.Caption = "Press Display"

That is a very simple program which displays text, it uses a command button and a label.
penfold1992 wrote:durka durka muhammad gihad allah 10k plys. thats all i hear :S

Image Image
Mad props to Verfo for the sig, ty!

User avatar
Grimm-.-
Veteran Member
Posts: 3128
Joined: Sun Nov 25, 2007 10:12 am
Quick Reply: Yes
Location: SteakSauce
Contact:

Re: if u good with c++

Post by Grimm-.- »

hmm... How did you guys learn this stuff?...
Proper lessons by a teacher or over the internet?
<< banned for proof of botting. -cin >>

User avatar
CrimsonNuker
Dom's Slut
Posts: 13791
Joined: Sun Aug 06, 2006 3:31 am
Quick Reply: Yes
Location: guildwars2

Re: if u good with c++

Post by CrimsonNuker »

Yeah VB is very simple, spend about 2 weeks~ with it and you'll have an idea of what programing feels like. I have yet to learn c++ and java >_>
ImageImageImage

User avatar
Innovacious
Advanced Member
Posts: 2446
Joined: Mon Sep 11, 2006 9:24 pm
Quick Reply: Yes
Location: Off Topic
Contact:

Re: if u good with c++

Post by Innovacious »

CrimsonNuker wrote:Yeah VB is very simple, spend about 2 weeks~ with it and you'll have an idea of what programing feels like. I have yet to learn c++ and java >_>


Java is so much fun youll want to gouge out your eyes with toothpicks. Its not hard, i just found it really boring and totally useless.
ImageImage

User avatar
Doron
SRF's Princess
Posts: 8570
Joined: Sun May 20, 2007 9:37 am
Quick Reply: Yes
Location: I'm at- Ooh something shiny!!

Re: if u good with c++

Post by Doron »

what's c++?
Image

User avatar
BlueWave
Hi, I'm New Here
Posts: 20
Joined: Wed Aug 13, 2008 5:01 pm
Quick Reply: Yes
Location: Off Topic

Re: if u good with c++

Post by BlueWave »

C++ is a type of programming language, used to create games or just any types of software- Microsoft Visual Basic or Microsoft Visual Basic C++.

User avatar
Squirt
Forum God
Posts: 8186
Joined: Sat Jan 05, 2008 9:48 pm
Quick Reply: Yes
Location: Off Topic

Re: if u good with c++

Post by Squirt »

Image
Spoiler!

woutR wrote:Squirt, you're a genius when it comes to raping women.

User avatar
[SD]happynoobing
Advanced Member
Posts: 2349
Joined: Thu Jan 04, 2007 2:06 am
Quick Reply: Yes
Location: Off Topic

Re: if u good with c++

Post by [SD]happynoobing »

Cruor wrote:

Code: Select all

if (game == "freecell" || "Freecell")
Always evaluates to true. Same with the rest.

yea, the || separates 2 checking conditions, so in your case first the program checks if game (the input) is the same as "freecell", but then it also compares "Freecell" with nothing, which would always be true.

it should be:

Code: Select all

if (game == "freecell" || game == "Freecell")
Image

User avatar
crazyskwrls
Advanced Member
Posts: 2293
Joined: Sun Aug 19, 2007 10:16 pm
Quick Reply: Yes
Location: Off Topic

Re: if u good with c++

Post by crazyskwrls »

want to learn c++?

may i suggest C++ for you++
:P
Image
i just love that title
Image Image
thnx Kraq

User avatar
blackfalcon
Loyal Member
Posts: 1865
Joined: Sun Jun 24, 2007 5:22 pm
Quick Reply: Yes
Location: off topic

Re: if u good with c++

Post by blackfalcon »

Stress wrote:To run the program smoother, use an "else" after each "if". Also, make sure your conditions aren't always true :)


[SD]happynoobing wrote:
Cruor wrote:

Code: Select all

if (game == "freecell" || "Freecell")
Always evaluates to true. Same with the rest.

yea, the || separates 2 checking conditions, so in your case first the program checks if game (the input) is the same as "freecell", but then it also compares "Freecell" with nothing, which would always be true.

it should be:

Code: Select all

if (game == "freecell" || game == "Freecell")


thx guys :)
Grimm-.- wrote:hmm... How did you guys learn this stuff?...
Proper lessons by a teacher or over the internet?


google is ur best friend :)
R.I.P Bernie
10/5/57 ~ 8/9/08

User avatar
ThiefzV2
Active Member
Posts: 566
Joined: Thu Jan 25, 2007 10:02 pm
Quick Reply: Yes
Location: Off Topic

Re: if u good with c++

Post by ThiefzV2 »

and who in their right mind would use this program?
Image :)
Image

User avatar
crazyskwrls
Advanced Member
Posts: 2293
Joined: Sun Aug 19, 2007 10:16 pm
Quick Reply: Yes
Location: Off Topic

Re: if u good with c++

Post by crazyskwrls »

well he said it was for fun...
Image Image
thnx Kraq

Post Reply

Return to “Off Topic Lounge”