You can set width to your input!!
cin >> setw(8) >> attempt;
And the header file for that is "iomanip"
Type: Posts; User: stuart_cpp
You can set width to your input!!
cin >> setw(8) >> attempt;
And the header file for that is "iomanip"
#include <iostream>
#include <string>
using namespace std;
int main()
{
string atmpt; // Attempt
string pass = "password"; // Password
cout << "Enter your password: ";
Boolean value is the reult of a comparison or a logical occasion using AND or OR, which can be true of false. C++ used the bool type to represent boolean values. An expression of the type bool can...
Default Compiler and using Dev-C++
Hi,
How can I make a crosshair cursor that when you click on a certain co-ord, some text displays?
Thanks,
Stuart_cpp
What was the ouput in the book?
Thanks so much twomers!! :D :D
Hi!
I wanted to know how to have animated text, like displaying each letter at a different time.
Please can u telll me! :D
I opened up AA:SF and it said I needed to enable Direct3D accelerator. Then it said I start running dxdiag and click on the Display1/2 tab after installing DirectX 8.1b(or later) and the latest...
Thanks! What a stupid mistake I made!
What on earth is wrong in this code?
#include <iostream>
#include <string>
using namespace std;
int main()
{
int money;
My output was
I'm in main()!
Calling Add()
In Add(), received 3
Im running Windows and copyed and pasted the code in Dev C++. I dont know why your having a different output 2 mine :confused:
If it keeps on crashing, put ....
char c;
cin >> c;
At the end of the code, but before } obviously
Have you seen Pure Pwnage? :D Its awesome! Discuss about it in here!
Why would you want to delete Ctrl+Alt+Delete?? :confused:
I'd go with SlyMaelstrom.....
Programmers dont become pro by asking other people to do there own Homework!
Thank you! :D
How does google help translating Dollars into Pounds?
Oh i see now.....but what if my connection has been screwed?
Havn't you learnt about outputs yet?!?
cout << "First Name" << endl;
cin >> firstname;
cout << "Last Name" << endl;
cin >> lastname;
cout << "Degree" << endl;
cin >> degree;
cout << "Hired...
The Complete Guide to Programming in C++
By Jones and Bartlett Computer Science
A really cool book! Where it lets you do lil exercises that really helps!
cheers m8!
Well, it may not be cool, but really useful! Its called Dtp :D and it translates dollars to pounds(thats what DTP stands for). I use it when ordering something from US .
Name: Stuart
Timezone: GMT
AIM: N/A
Yahoo: N/A
MSN: [email protected]
ICQ: N/A
hey! I dont see what is wrong in this source! The error message is expected `;' before "t" . I tryed doing that but didn't work! Please correct it!
#include <iostream>
#include <cmath>
using...