C++ Programming

smoochy boys on tour

hellcaster

Golden Oldie
Golden Oldie
Mar 24, 2005
903
0
123
Right. I've downloaded C++ from microsoft site, and can anybody link me with some good sites to learn from.

I really dont know where to start..like if i find a tutorial site they'd teach me about...mmm. lets say loops and else if statements but i wouldnt have a clue what to do with that knowledge when i've learn it..could anybody put me on the right path:)
 

Damian

Golden Oldie
Golden Oldie
Ravagers
Game Master
Jun 13, 2003
1,106
102
270
Right. I've downloaded C++ from microsoft site, and can anybody link me with some good sites to learn from.

I really dont know where to start..like if i find a tutorial site they'd teach me about...mmm. lets say loops and else if statements but i wouldnt have a clue what to do with that knowledge when i've learn it..could anybody put me on the right path:)

Some tutorials for C and C++ here: http://www.cprogramming.com/tutorial.html#c++tutorial
 

mazz

Dedicated Member
Dedicated Member
Aug 6, 2008
193
2
65
Lmao well you would use them to test values
example this is in vb btw

dim strPassword as string ' Naming varitables and text type data
dim strLoginName as string ' Same thing here (this data type allows all chars _-+ but not for math

dim IntvalPass as interger ' Interger is a number only!!!
dim intValName as interger 'same thing here

intvalName = 0 'Set the value of name to 0
intValPass =0 'Set the value of Pass to 0

strpassword = mypassword 'set the password
strLogin = mylogin ' set the login
If strPassword = mypassword then ' It password is correct place value 1
intValpass = 1 'place value here
else 'If not correct
Msgbox("sorry wrong password",vbok) 'Tell them they entered wrong passy
end if ' Close the statement

if strLoginName = MyLogin then ' Check if login is correct
intvalName= 1 ' Ya your in
else
Msgbox("sorry wrong Login",vbok)
end if
If intvalName and IntValPass = 1 then
form1.show
else
Msgbox("Sorry Login is wrong",vbok)
end if

http://msdn.microsoft.com/en-us/visualc/default.aspx
www.vbcode.com
www.vbsource.com
www.google.com search for vb code

C++ is harder to learn then vb Good luck
 
Last edited:

mazz

Dedicated Member
Dedicated Member
Aug 6, 2008
193
2
65
Lmao well you would use them to test values
example this is in vb btw

dim strPassword as string ' Naming varitables and text type data
dim strLoginName as string ' Same thing here (this data type allows all chars _-+ but not for math

dim IntvalPass as interger ' Interger is a number only!!!
dim intValName as interger 'same thing here

intvalName = 0 'Set the value of name to 0
intValPass =0 'Set the value of Pass to 0

strpassword = mypassword 'set the password
strLogin = mylogin ' set the login
If strPassword = mypassword then ' It password is correct place value 1
intValpass = 1 'place value here
else 'If not correct
Msgbox("sorry wrong password",vbok) 'Tell them they entered wrong passy
end if ' Close the statement

if strLoginName = MyLogin then ' Check if login is correct
intvalName= 1 ' Ya your in
else
Msgbox("sorry wrong Login",vbok)
end if
If intvalName and IntValPass = 1 then
form1.show
else
Msgbox("Sorry Login is wrong",vbok)
end if

http://msdn.microsoft.com/en-us/visualc/default.aspx
www.vbcode.com
www.vbsource.com
www.google.com search for vb code

C++ is harder to learn then vb Good luck


Int main()
{
int x;
std::cout << "Enter a number less than 10 or greater than 100: ";
std::cin >> x;
std::cout << "\n";

if (x > 10)
{
if (x > 100)
std::cout << "More than 100, thanks!\n";
}
else
std::cout << "Less than 10 , Thanks!\n";
return 0;
}

here is a if statement in C++