What happened to
system("PAUSE")
??
My window closes immediately as well, so I do that.
Or I use a never-ending for-loop, and then break it if the requirements are met.
Type: Posts; User: mburt
What happened to
system("PAUSE")
??
My window closes immediately as well, so I do that.
Or I use a never-ending for-loop, and then break it if the requirements are met.
Got it. The only downside is that you have to store the binary number in an array.
See this:
#include <iostream>
using namespace std;
int main() {
int number[] = {1,1,1,1,0,0,0,0};
You don't have to do it like SlyMaelStrom said. You can define it first:
#include<string>
using namespace std;
as I said before
than just use this as a type of variable:
string mystring...
oops. My fault :)
Got it. The only downside is that you have to store the binary number in an array.
See this:
#include <iostream>
using namespace std;
int main() {
int number[] = {1,1,1,1,0,0,0,0};
I seriously doubt that.
First you have to define string: #include<string>
ex:
string mystring = "poopiepants";
C++ For Dummies - 5th Edition by Stephen Randy Davis
This is a great book to get started with C++. Teaches all the basic fundementals.
I didn't see any.
Hmm... I know how to do this in JavaScript. I'll try to translate.
Good lord... I can't seem to get this to work in Dev-C++.
Here is what I have:
#define _WIN32_WINNT 0x0500
#include <windows.h>
#include <iostream>
class Bitmap
{
C++ arrays are similar to JavaScript arrays, except you define the array's variables as you use them.
For some reason Dev-C++ won't compile this....
It says:
'GetConsoleWindow' undeclared (first use this function)
Well then. Now that everyone has rained on my parade.... :)
Okay, I'll see what I can do.
I'm wondering if there is a way to cout an image. A very basic question, which I don't know exists, and very well may not exist. Thanks for any help :)
Thanks, I'll look into "Code::Blocks IDE". Dev C++ is just giving me too much greif :)
It says:
[Linked error] undefined reference to 'TextOutA@20'
Id returned 1 exit status
This is the code I have, and Dev C++ will not compile it. I'm having a nightmare with this!!
#include <windows.h>
/* Declare Windows procedure */
LRESULT CALLBACK WindowProcedure (HWND,...
I'm using Dev C++, and it says:
[Warning] passing NULL used for non-pointer converting of 'HWIND__'...
Okay, I read a tutorial about creating Windows Program, then copied and pasted this script. For some reason it doesn't work??
/* Trim fat from windows*/
#define WIN32_LEAN_AND_MEAN
#pragma...