| | |
Making a program type
Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
-7
#2 Oct 24th, 2009
put a system pause between letters. Assuming you are coding on MS-Windows.
C++ Syntax (Toggle Plain Text)
#include <windows.h> ... ... string msg = "This is a test"; for(int i = 0; i < msg.length(); i++) { cout << msg[i]; cout.flush(); sleep(1000); // delay 1 second }
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
-7
#6 Oct 24th, 2009
C++ Syntax (Toggle Plain Text)
void foo(const char* str) { // display the string contents here } int main() { foo("Once upon a time ..."); foo("there were three little pigs."); // etc etc }
Last edited by Ancient Dragon; Oct 24th, 2009 at 2:09 am.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
![]() |
Similar Threads
- Program help required (Assembly)
- Question answer database program in Visual Basic 6 (Visual Basic 4 / 5 / 6)
- Making a 3D engine from scratch (Game Development)
- Make a VB Program run in the background? (VB.NET)
- what is wrong with my stupid program!? (C++)
- Making a program that counts the # of characters (Java)
- The program has encountered a problem and needs to (Windows NT / 2000 / XP)
- Making my program respond to.. (C++)
- Want help making program access a web page automatic. (C)
Other Threads in the C++ Forum
- Previous Thread: simple query
- Next Thread: pointers in friend function
Views: 272 | Replies: 6
| Thread Tools | Search this Thread |
Tag cloud for C++
6 api application array arrays based beginner binary bmp c++ c/c++ calculator char char* class classes code compile compiler console conversion convert count data delete deploy dll download dynamiccharacterarray encryption error file format forms fstream function functions game givemetehcodez graph homeworkhelp iamthwee ifstream input int java lib library lines list loop looping loops map math matrix memory newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg search simple sort sorting spoonfeeding string strings struct temperature template templates text tree url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets






