PSP Hacks - Forums

Go Back   PSP Hacks - Forums > Tech Talk > PC Programming

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 05-24-2009, 04:30 AM
zeferino's Avatar
zeferino zeferino is offline
PSP Newbie
 

Join Date: May 2009
Location: Philippines
Posts: 49
zeferino Has a Beginner Reputation
Question Someone teach me how to use the....

Someone teach me how to use the // in C++ programming

#include <iostream>

using namespace std;

int main()
{
cout<<"Hello World\n";
cin.get();

return 0;
}
Where do I put the "//" or "/*" "*/"
__________________

IM PROUD TO BE A MEMBER OF PSP HACKS FORUMS
Reply With Quote
  #2  
Old 05-24-2009, 04:40 AM
Joe88's Avatar
Joe88 Joe88 is offline
#include<super_moderator>
PSP Titan
 
Join Date: Jun 2005
Location: Staten Island, New York City
Posts: 22,005
Joe88 will become famous soon enough
Default

they can be placed anywhere
doesnt matter, just dont try to put code after the comment on the line, before it fine

also you do not need the cin.get();
__________________

[λ] The cake is a lie... [λ]
CWcheat DB's Update Thread
Spoiler:
Reply With Quote
  #3  
Old 05-24-2009, 05:26 AM
zeferino's Avatar
zeferino zeferino is offline
PSP Newbie
 

Join Date: May 2009
Location: Philippines
Posts: 49
zeferino Has a Beginner Reputation
Default

by the way
what does the // do?
It doesn't appear
__________________

IM PROUD TO BE A MEMBER OF PSP HACKS FORUMS
Reply With Quote
  #4  
Old 05-24-2009, 05:36 AM
Scorpus's Avatar
Scorpus Scorpus is offline
Programmer
PSP Titan
 

Join Date: Jan 2008
Location: Australia
Posts: 4,225
Scorpus is a glorious beacon of lightScorpus is a glorious beacon of lightScorpus is a glorious beacon of lightScorpus is a glorious beacon of lightScorpus is a glorious beacon of lightScorpus is a glorious beacon of light
Default

Quote:
Originally Posted by zeferino View Post
by the way
what does the // do?
It doesn't appear
It's for comments, eg.
Code:
/* Test code
For testing purposes */

#include <iostream>

using namespace std;

int main()
{
cout<<"Hello World\n"; //This is the code to display "Hello World"
cin.get();

return 0;
}
Reply With Quote
  #5  
Old 05-24-2009, 06:00 AM
zeferino's Avatar
zeferino zeferino is offline
PSP Newbie
 

Join Date: May 2009
Location: Philippines
Posts: 49
zeferino Has a Beginner Reputation
Default

Quote:
also you do not need the cin.get();
how come I don't need it?
__________________

IM PROUD TO BE A MEMBER OF PSP HACKS FORUMS
Reply With Quote
  #6  
Old 05-24-2009, 05:40 PM
Joe88's Avatar
Joe88 Joe88 is offline
#include<super_moderator>
PSP Titan
 
Join Date: Jun 2005
Location: Staten Island, New York City
Posts: 22,005
Joe88 will become famous soon enough
Default

Quote:
Originally Posted by zeferino View Post
how come I don't need it?
all the program is doing is displaying a line

and the cin.get just delays (until enter is pushed) the press any key to continue
__________________

[λ] The cake is a lie... [λ]
CWcheat DB's Update Thread
Spoiler:
Reply With Quote
  #7  
Old 05-24-2009, 01:28 PM
TheAceOfHearts's Avatar
TheAceOfHearts TheAceOfHearts is offline
Senior Member
PSP Titan
 

Join Date: Dec 2005
Location: Earth
Posts: 5,447
TheAceOfHearts has a spectacular aura aboutTheAceOfHearts has a spectacular aura aboutTheAceOfHearts has a spectacular aura about
Default

Learn Python.
__________________
killaj said: there is one answer to one simple question as to whether a girl is attractive or not. One all-inclusive, unbelievably powerful question that you must ask yourself to determine if you think a girl is hot or not. Do you know what that question is? "Would I hit it?"
If your answer is "yes", then that's all you need to know. Hit that shit. If your answer is "no", then leave it be.
Quote:
Originally Posted by Yoko
Michael said (5:41 PM):
it doesn't really it just helps soften the impact of my tremendous cock once i grab them from behind
NewInfo2Day.Com
Reply With Quote
  #8  
Old 05-25-2009, 06:42 PM
ZiNgABuRgA's Avatar
ZiNgABuRgA ZiNgABuRgA is offline
Has green username Moderator
PSP Titan
 

Join Date: Sep 2006
Location: 4CHIN
Posts: 10,938
ZiNgABuRgA has a spectacular aura aboutZiNgABuRgA has a spectacular aura about
Default

Quote:
Originally Posted by TheAceOfHearts View Post
Learn Python.
Learn to STFU.

@zeferino: are you trying to learn by examples? Because I'm pretty sure most tutorials make that clear that that's a comment...
Reply With Quote
  #9  
Old 05-25-2009, 07:03 PM
Aaron*1 Aaron*1 is offline
PSP Guru
 

Join Date: Jan 2008
Posts: 1,510
Aaron*1 will become famous soon enoughAaron*1 will become famous soon enough
Default

Quote:
Originally Posted by ZiNgABuRgA View Post
Learn to STFU.

@zeferino: are you trying to learn by examples? Because I'm pretty sure most tutorials make that clear that that's a comment...

I lol'd and yeah, the examples must be pretty bad considering that everything I've looked at has told the basics including the comment at the very start...
__________________
lol@sigs
Reply With Quote
  #10  
Old 05-25-2009, 11:06 AM
zeferino's Avatar
zeferino zeferino is offline
PSP Newbie
 

Join Date: May 2009
Location: Philippines
Posts: 49
zeferino Has a Beginner Reputation
Default

I understand the // now
it's just a comment, nothing else. lol.
I thought it has something to do with the codes
__________________

IM PROUD TO BE A MEMBER OF PSP HACKS FORUMS
Reply With Quote
Reply

 



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:19 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©