Thx that helped :D
Type: Posts; User: Xarr
Thx that helped :D
I'm using Bloodshed's Dev-C++ 4.9.8.0
from custom.h header:
#include <windows.h>
#include <iostream>
#include <fstream>
It's very odd... My console (cmd - WinXP Pro) wont change color :S
Is it something about the settings of the console (or the set mode)? or the properties of the program ?
I'm using Bloodshed's Dev-C++
HANDLE hInput, hOutput;
void FillScreenGreen()
{
COORD FillScreenPos;
for(int i=0; i<25; i++)
I'm making a simple console program where you kan move a symbol (the ASCII smiley guy - int 2 converted)around a black screen using the keyboard... I'll attach the .cpp file and the .h file
[Linker error] undefined reference to `WinMain@16'
what is that??? and how can I fix it ?
I'm using Bloodshed Dev-C++ compiler, and I've included:
<windows.h>
<iostream>
<string>
hmm... Didn't think what I wrote was windows writing, but I'll move my question to that forum then
[Linker error] undefined reference to `WinMain@16'
what is that??? and how can I fix it ?
I'm using Bloodshed Dev-C++ compiler, and I've included:
<windows.h>
<iostream>
<string>
doh... it returns void? :o
that would help, thx
The compiler says the opposite...
I use Bloodshed Dev-C++
thx for the help, but...
in line 25 below:
23 ifstream winfilein;
24
how else would you check if the file is already there? It's a statistics file where I want to store int's... So if it's the first time running the program then it should create a statistics file, but...
I get this odd compile error:
21 C:\programs\testspil\testspil.cpp `noreplace' is not a member of type `
line 21: ofstream a_file("wins.txt", ios::noreplace);
help appreciated
but it isn't the rand() function i'm talking about it's the one prelude wrote. The 5th reply here: http://cboard.cprogramming.com/showthread.php?t=53242
there (edit: she) defines the...
Oh yeah almost forgot
How would I put the random number into a variable instead of outputting it?
The class std isn't defined in the code...
I've looked at this post
http://cboard.cprogramming.com/showthread.php?t=53242
and I checked preludes random number generator, but can't you make it shift to a new number every half or whole...
int string[1000];
that's the name of the var, it hasn't been used before in the script (first question).
I've made this code for a simple test quiz program, it's inside an if statement:
cout<<"What is Bush's firstname?\n\n";
cout<<"Answer: ";
...
omg duh, but thx.
I've just begun programming C, but I'm familiar with the syntax and such.
I've made a list where fahrenheit is compared to celsius, and it works fine when I use decimal integers. But when I use...