thanks!:)
Type: Posts; User: k1ll3r
thanks!:)
hi,
in my program it asks the user a question, the answer the user types is in a word format not a number or digit(eg: Twenty not 20)
The problem is i dont know how to check weather the answer...
i looked at the tutorials of generating random numbers and it was too hard to understand:(.I just want one random number to be generated at the start of the program between 1 and 100 inclusive could...
recently i got a book on c++ for beginners and it says "teaches you everything you need to know to become a professional programmer." So after i read this book (understand it aswell) i would get...
ouch, is it like learning a whole new language?(ie:there is no cout function?and is something totally different)
Also what can i achieve from making a DOS program?
hi,
i am a beginner in programming and i have a fair knowledge of what iam doing and i have 1 concern that is, i have been programming in DOS (i use dev c++ compiler) for a while now and iam just...
lol :p
thanks laserlight!
wow i didnt expect to see that many replys thanks all--now back to the subject, citizens code worked but its kinda long and hard to understand could it be umm simplified?
thank for the help ne way
maybe it has something to do with the compilers?i have no clue
btw:im using dev tool c++
do this so:
Code:
#include <iostream>
#include <string>
using namespace std;
i did try std::cin.ignore(); and i have tried a hello program :)
Adding std::cin.ignore(); just makes the first letter i type invisible and then the next letters in lowercase.
i just want the letter/s i type to appear in capital letter
the first code printed the letter in lower case and the second code closed it when i press a letter
doesnt work
the first code printed the letter in lower case and the second code closed it when i press a letter
hi im trying to make it when the player types a letter it will be uppercase...it compiles and runs but does not convert to uppercase... heres the code:
#include <iostream.h>
#include <ctype.h>...
hi im new and i was just wondering what console application is used for, and is it the same coding for a windows application also is it possible to make a game with dev c++ compiler?
i know i ask too many question(and is annoying) but here is my final code and it works, but how would i make it if the user answers the question right it will show another question similer to the...
sorry i mean this code closes it when i write a number then press enter:
std::cin.get();
thanks so much but theres one problem, when i use
std::cout.get(); it will close the program when i press enter, on the other hand if i put
system("pause") it wont close it
hi, im trying to make this thing that asks you a maths question and you have to type the correct answer, if u type it write it will say correct, if u type it wrong it will say incorrect(or you are...
so i shouldn't use
system("pause"); and use
std::cin.get(); right?
u can get a compiler from here
thank you!@
#include <iostream>
int main()
{
int var = 50;
std::cout << var;