can you please show me how to make a countdown timer?
and a game program, like guess the missing word. because when i tried it, it doesn't give the right output. please help me. because i really don't know much about c++ i might fail to this subject.:S:'(
bhey 0 Newbie Poster
Recommended Answers
Jump to PostShow us what you tried, so we can make corrections and give you some suggestions on how to improve your code.
Jump to PostThese variable are used for numbers :
int word, a, perfume;
What you need to use is something that can handle words, like std::string;
string word, a, perfume;
Also I notice that "a" variable, is the correct word that you are trying to compare …
Jump to PostTo use timer, you need to use the clock function. Maybe this example will help you :
#include <iostream> #include <ctime> //for clock() using namespace std; bool myPrint() { static int cnt = 10; cout << cnt << "!\n"; cnt--; if(cnt <= 0) return false; //stop at …
Jump to Postctrl-c ctrl-v ?
All 14 Replies
Grn Xtrm 84 Posting Pro in Training
zobadof -7 Junior Poster
bhey 0 Newbie Poster
pecet 1 Junior Poster in Training
zobadof -7 Junior Poster
valtikz 36 Junior Poster in Training
mrnutty 761 Senior Poster
bhey 0 Newbie Poster
mrnutty 761 Senior Poster
bhey 0 Newbie Poster
bhey 0 Newbie Poster
bhey 0 Newbie Poster
Nick Evan 4,005 Industrious Poster Team Colleague Featured Poster
bhey 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.