does any1 have any idea about how to,when i press a button,print out 1 line of text written by me and when i press it again another replaces the old?
i already got the saving working so u dont have to worry about that
hobonator912 0 Newbie Poster
Recommended Answers
Jump to PostIf tried do describe your problem more clearly, I might be able to answer your question.
What I understand is "I want one line of text replaced by a second line when I press a key"This could be done like this:
#include <windows.h> #include <iostream> …
Jump to PostYeah. Other than cin.get(), you can use getchar() or system("pause"). Other than clear_screen you can use system("CLS").
That would be a silly thing to do. The system("something"); command is not-portable, this means that it will only work on 'some' OS.
Besides, if you use the system() command and someone decides …
All 8 Replies
Nick Evan 4,005 Industrious Poster Team Colleague Featured Poster
raul15791 27 Junior Poster
murderotica -3 Junior Poster
Nick Evan 4,005 Industrious Poster Team Colleague Featured Poster
hobonator912 0 Newbie Poster
hobonator912 0 Newbie Poster
raul15791 27 Junior Poster
Nick Evan 4,005 Industrious Poster Team Colleague Featured 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.