1.
cout<<"blah";
cot<<"blah";
How do I make this show up as:
blah
blah
instead of
blahblah?
2. How do I make dialogs instead of using Command Prompt to run it?
I am using Dev-C++ 4.9.6.0. Thanks.
1.
cout<<"blah";
cot<<"blah";
How do I make this show up as:
blah
blah
instead of
blahblah?
2. How do I make dialogs instead of using Command Prompt to run it?
I am using Dev-C++ 4.9.6.0. Thanks.
Code:cout << "blah\n blah"; // or cout << "blah" << endl << "blah"
I am against the teaching of evolution in schools. I am also against widespread
literacy and the refrigeration of food.
1.2. I dont really know what you mean, but to get into windows programming, find out about the win32bit API.Code:// to take a new line to one of the following // you could do it like this cout << "\n"; // or like this cout << endl;
Last edited by face_master; 11-28-2002 at 01:45 AM.
I wanna create something like a GUI, like most programs have. Any good tutorial for those stuff?
Originally posted by BlahBlahBlah
I wanna create something like a GUI, like most programs have. Any good tutorial for those stuff?to get into windows programming, find out about the win32bit API
thanks, another thing, how do I make the variable type "char" show stuff with unlimited length and allows spaces in between?
Code:// instead of using this: cin >> char_array; // use this cin.getline(char_array, 100, "\n"); // cin.getline(variable to read, amount of characters to read, what character to read up to)
me <--blahblahblah, i just registered
so it has nothing to do with the Char thing? it will save stuff even with a space?
I want something like Hello World to show up as Hello World, not just Hello
I tried that and it returned me this compile error:
13 C:\Documents and Settings\Reuben\My Documents\crapp.cpp
no matching function for call to `_IO_istream_withassign::getline (char[100], int, const char[2])'
what do i do
the whole code:;
#include <iostream.h>
int main()
{
cout<<"I demand your name";
cout<<"\n";
cout<<"### Blah ###";
cout<<"\n";
cout<<"### Testers: DO NOT GIVE THIS TO YOUR FRIENDS OR ANYBODY ELSE ###";
cout<<"\n";
char insane[100];
cin.getline(insane, 100, "\n");
count<<insane;
cin.get();
cin.get();
cin.get();
return 0;
}
I used '\n' and it worked. Thanks.