Anything else. Post a funny site or tell us about yourself. Discuss current events or whatever else you want. Post off topic threads here.
blackfalcon
Loyal Member
Posts: 1865 Joined: Sun Jun 24, 2007 5:22 pm
Quick Reply: Yes
Location: off topic
Post
by blackfalcon » Tue Aug 26, 2008 3:11 am
so like i was bored and decided to make a little prog that would run any game you typed in
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?
R.I.P Bernie 10/5/57 ~ 8/9/08
Cruor
Loyal Member
Posts: 1999 Joined: Wed Apr 12, 2006 1:22 am
Quick Reply: Yes
Location: Off topic
Post
by Cruor » Tue Aug 26, 2008 3:19 am
Code: Select all
if (game == "freecell" || "Freecell")Always evaluates to true. Same with the rest.
Grimm-.-
Veteran Member
Posts: 3128 Joined: Sun Nov 25, 2007 10:12 am
Quick Reply: Yes
Location: SteakSauce
Contact:
Post
by Grimm-.- » Tue Aug 26, 2008 3:27 am
Can c++ Be learned on the internet... How hard is it to learn? I Has Intrest in this.
<< banned for proof of botting. -cin >>
Stress
Ex-Staff
Posts: 4599 Joined: Thu Oct 26, 2006 7:42 am
Quick Reply: Yes
Location: Studying Computer Science, Vienna
Post
by Stress » Tue Aug 26, 2008 6:34 am
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.
CloudStrider
Advanced Member
Posts: 2125 Joined: Tue Jul 15, 2008 2:45 pm
Quick Reply: Yes
Location: Away
Post
by CloudStrider » Tue Aug 26, 2008 6:41 am
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
Mad props to Verfo for the sig, ty!
Grimm-.-
Veteran Member
Posts: 3128 Joined: Sun Nov 25, 2007 10:12 am
Quick Reply: Yes
Location: SteakSauce
Contact:
Post
by Grimm-.- » Tue Aug 26, 2008 6:45 am
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 >>
CloudStrider
Advanced Member
Posts: 2125 Joined: Tue Jul 15, 2008 2:45 pm
Quick Reply: Yes
Location: Away
Post
by CloudStrider » Tue Aug 26, 2008 6:53 am
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
Mad props to Verfo for the sig, ty!
Grimm-.-
Veteran Member
Posts: 3128 Joined: Sun Nov 25, 2007 10:12 am
Quick Reply: Yes
Location: SteakSauce
Contact:
Post
by Grimm-.- » Tue Aug 26, 2008 6:54 am
hmm... How did you guys learn this stuff?... Proper lessons by a teacher or over the internet?
<< banned for proof of botting. -cin >>
CrimsonNuker
Dom's Slut
Posts: 13791 Joined: Sun Aug 06, 2006 3:31 am
Quick Reply: Yes
Location: guildwars2
Post
by CrimsonNuker » Tue Aug 26, 2008 7:30 am
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 >_>
Innovacious
Advanced Member
Posts: 2446 Joined: Mon Sep 11, 2006 9:24 pm
Quick Reply: Yes
Location: Off Topic
Contact:
Post
by Innovacious » Tue Aug 26, 2008 12:18 pm
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.
Doron
SRF's Princess
Posts: 8570 Joined: Sun May 20, 2007 9:37 am
Quick Reply: Yes
Location: I'm at- Ooh something shiny!!
Post
by Doron » Tue Aug 26, 2008 12:34 pm
what's c++?
BlueWave
Hi, I'm New Here
Posts: 20 Joined: Wed Aug 13, 2008 5:01 pm
Quick Reply: Yes
Location: Off Topic
Post
by BlueWave » Tue Aug 26, 2008 12:40 pm
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++.
Squirt
Forum God
Posts: 8186 Joined: Sat Jan 05, 2008 9:48 pm
Quick Reply: Yes
Location: Off Topic
Post
by Squirt » Tue Aug 26, 2008 1:33 pm
woutR wrote: Squirt, you're a genius when it comes to raping women.
[SD]happynoobing
Advanced Member
Posts: 2349 Joined: Thu Jan 04, 2007 2:06 am
Quick Reply: Yes
Location: Off Topic
Post
by [SD]happynoobing » Tue Aug 26, 2008 4:25 pm
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")
crazyskwrls
Advanced Member
Posts: 2293 Joined: Sun Aug 19, 2007 10:16 pm
Quick Reply: Yes
Location: Off Topic
Post
by crazyskwrls » Tue Aug 26, 2008 5:14 pm
want to learn c++?
may i suggest C++ for you++
i just love that title
thnx Kraq
blackfalcon
Loyal Member
Posts: 1865 Joined: Sun Jun 24, 2007 5:22 pm
Quick Reply: Yes
Location: off topic
Post
by blackfalcon » Tue Aug 26, 2008 7:40 pm
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
ThiefzV2
Active Member
Posts: 566 Joined: Thu Jan 25, 2007 10:02 pm
Quick Reply: Yes
Location: Off Topic
Post
by ThiefzV2 » Fri Aug 29, 2008 2:08 am
and who in their right mind would use this program?
crazyskwrls
Advanced Member
Posts: 2293 Joined: Sun Aug 19, 2007 10:16 pm
Quick Reply: Yes
Location: Off Topic
Post
by crazyskwrls » Fri Aug 29, 2008 2:11 am
well he said it was for fun...
thnx Kraq