Coder Profile - Show off your skills, get a coder profile.
 
 
 
The Author
otoom
Ant
Send A Message
Rating
Not
Rated
Please login to rate source codes.

Click here to register a free account with us.
General Details
C++
Posted 2.86 Years Ago
424 Views
Received 0 Ratings
More Codes By This Author
Guessing Game
Even or Odd
Even or Odd
Head First PHP And mySQL...
CreateSquare
Articles By This Author
Quick Threading Tutorial...
First look at C
Cheat Sheet Pack
[PHP] How to make a log f...
HTML Cheat Sheet!

CreateSquare


Description
Nothing special, just doing a bit of C++.
Type in a number, it will give you the numbers square.
Technical
C++?
Any C++ compiler.
Source Code
Comments
Please login to post comments.
 
otoom     Posted 2.74 Years Ago
 
 
Cool Cool, thanks for those couple of tips (:


Ant
 
Caverax     Posted 2.78 Years Ago
 
 
also ...

cout<<"Do you wish to use again? (Y/N): ";
cin>>ans;
}
while((ans =='Y')||(ans == 'y'));
}

could be :

cout<<"Do you wish to use again? (Y/N): ";
cin>>ans;
toupper(ans);
}
while(ans =='Y');
}
 
Caverax     Posted 2.78 Years Ago
 
 
int CreateSquare(double num)
{
double result;
result = num * num;

return result;
}

Why not making it a little more simple to

int CreateSquare(double num)
{
return num*num;
}
Page 1 of 1
More "C++" Source Codes By This Author
Recently Posted "C++" Source Codes
Recently Rated "C++" Source Codes
 
 
Latest News About Coder Profile
Coder Profile Poll
Why do you get bored with programming?

Not enough time to do something productive
I run out of ideas
Too hard to show people my creations
Everything i do has too many errors, and it's too hard
I don't get bored!!!


please login to cast your vote
and see the results of this poll
Latest Coder Profile Changes
Coder Profile was last updated
3.20 Years Ago
Official Blog :: Make A Donation :: Credits :: Contact Me
Terms & Conditions :: Privacy Policy :: Documents :: Wallpapers
Version 1.46.00
Copyright © 2007 - 2012, Scott Thompson, All Rights Reserved