Silkroad Online Forums

A community forum for the free online game Silkroad Online. Discuss Silkroad Online, read up on guides, and build your character and skills.

Faq Search Members Chat  Register Profile Login

All times are UTC




Post new topic Reply to topic  [ 18 posts ] 
Author Message
 Post subject: if u good with c++
PostPosted: Tue Aug 26, 2008 3:11 am 
Loyal Member
User avatar
Offline

Joined: Jun 2007
Posts: 1865
Location:
Off Topic
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


Top
 Profile  
 
 Post subject: Re: if u good with c++
PostPosted: Tue Aug 26, 2008 3:19 am 
Loyal Member
User avatar
Offline

Joined: Apr 2006
Posts: 1999
Location:
Off Topic
Code:
if (game == "freecell" || "Freecell")
Always evaluates to true. Same with the rest.

_________________
Image


Top
 Profile  
 
 Post subject: Re: if u good with c++
PostPosted: Tue Aug 26, 2008 3:27 am 
Banned User
User avatar
Offline

Joined: Nov 2007
Posts: 3128
Location: SteakSauce
Can c++ Be learned on the internet...
How hard is it to learn?
I Has Intrest in this.

_________________
<< banned for proof of botting. -cin >>


Top
 Profile  
 
 Post subject: Re: if u good with c++
PostPosted: Tue Aug 26, 2008 6:34 am 
Ex-Staff
User avatar
Offline

Joined: Oct 2006
Posts: 4599
Location: Studying Computer Science, Vienna
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.


Top
 Profile  
 
 Post subject: Re: if u good with c++
PostPosted: Tue Aug 26, 2008 6:41 am 
Advanced Member
User avatar
Offline

Joined: Jul 2008
Posts: 2125
Location: Away
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!


Top
 Profile  
 
 Post subject: Re: if u good with c++
PostPosted: Tue Aug 26, 2008 6:45 am 
Banned User
User avatar
Offline

Joined: Nov 2007
Posts: 3128
Location: SteakSauce
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 >>


Top
 Profile  
 
 Post subject: Re: if u good with c++
PostPosted: Tue Aug 26, 2008 6:53 am 
Advanced Member
User avatar
Offline

Joined: Jul 2008
Posts: 2125
Location: Away
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!


Top
 Profile  
 
 Post subject: Re: if u good with c++
PostPosted: Tue Aug 26, 2008 6:54 am 
Banned User
User avatar
Offline

Joined: Nov 2007
Posts: 3128
Location: SteakSauce
hmm... How did you guys learn this stuff?...
Proper lessons by a teacher or over the internet?

_________________
<< banned for proof of botting. -cin >>


Top
 Profile  
 
 Post subject: Re: if u good with c++
PostPosted: Tue Aug 26, 2008 7:30 am 
Dom's Slut
User avatar
Offline

Joined: Aug 2006
Posts: 13791
Location:
Guildwars2
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


Top
 Profile  
 
 Post subject: Re: if u good with c++
PostPosted: Tue Aug 26, 2008 12:18 pm 
Advanced Member
User avatar
Offline

Joined: Sep 2006
Posts: 2446
Location:
Off Topic
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


Top
 Profile  
 
 Post subject: Re: if u good with c++
PostPosted: Tue Aug 26, 2008 12:34 pm 
SRF's Princess
User avatar
Offline

Joined: May 2007
Posts: 8570
Location: I'm at- Ooh something shiny!!
what's c++?

_________________
Image


Top
 Profile  
 
 Post subject: Re: if u good with c++
PostPosted: Tue Aug 26, 2008 12:40 pm 
Hi, I'm New Here
User avatar
Offline

Joined: Aug 2008
Posts: 20
Location:
Off Topic
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++.


Top
 Profile  
 
 Post subject: Re: if u good with c++
PostPosted: Tue Aug 26, 2008 1:33 pm 
Forum God
User avatar
Offline

Joined: Jan 2008
Posts: 8186
Location:
Off Topic
viewtopic.php?f=12&t=93232&p=1215411&hilit=usefull+coding#p1215411

:)
My post should be stickied :D

_________________
Image
Spoiler!

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


Top
 Profile  
 
 Post subject: Re: if u good with c++
PostPosted: Tue Aug 26, 2008 4:25 pm 
Advanced Member
User avatar
Offline

Joined: Jan 2007
Posts: 2349
Location:
Off Topic
Cruor wrote:
Code:
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:
if (game == "freecell" || game == "Freecell")

_________________
Image


Top
 Profile  
 
 Post subject: Re: if u good with c++
PostPosted: Tue Aug 26, 2008 5:14 pm 
Advanced Member
User avatar
Offline

Joined: Aug 2007
Posts: 2293
Location:
Off Topic
want to learn c++?

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

_________________
Image Image
thnx Kraq


Top
 Profile  
 
 Post subject: Re: if u good with c++
PostPosted: Tue Aug 26, 2008 7:40 pm 
Loyal Member
User avatar
Offline

Joined: Jun 2007
Posts: 1865
Location:
Off Topic
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:
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:
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


Top
 Profile  
 
 Post subject: Re: if u good with c++
PostPosted: Fri Aug 29, 2008 2:08 am 
Active Member
User avatar
Offline

Joined: Jan 2007
Posts: 566
Location:
Off Topic
and who in their right mind would use this program?

_________________
Image :)
Image


Top
 Profile  
 
 Post subject: Re: if u good with c++
PostPosted: Fri Aug 29, 2008 2:11 am 
Advanced Member
User avatar
Offline

Joined: Aug 2007
Posts: 2293
Location:
Off Topic
well he said it was for fun...

_________________
Image Image
thnx Kraq


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 20 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group