I suggest: use the fstream, and use BINARY MODE... (if you are unfamilar with the fstream, as i believe u are, maybe you want to use text mode).
at that time format your output into the file with...
Type: Posts; User: Liam Battle
I suggest: use the fstream, and use BINARY MODE... (if you are unfamilar with the fstream, as i believe u are, maybe you want to use text mode).
at that time format your output into the file with...
C# is a .net framework language. It has excellent support for managed code and security containers on the .Net Framework.
The name is a bit misleading, but the fact remains that C++ is still a...
I think you are confused about "knowing" C++...
there are tons of people here that Know the Syntax 100%,
but its impossible to know every library and function 100% , since they are created...
so what are you asking ?
how to write a loop?
also note the global variable i see, omg please dont use that !
Hmm i dont know any reliable C++ channels...
im sure any C/C++ channel all major networks would have one...
but good luck finding a mature crowd
I know the the MSVC++ 6.0 compiler has cut out dos graphics, it only supports win32 console graphics.. (text crap).
You maybe able to get around it but im not sure.. just remember reading that it...
of course there is master programmers...
first off you should know the syntax 100% regardless if you are a master or not...
secondly, I think John Carmack is a master C++ programmer...
Im...
Well the windows programming forum is a start ;)
and if you want to get into MFC a book called : programming windows with MFC second edition by Jeff Prosise, is prolly the best book you can...
Thanks bud...
In 3 years i never had to changed the console cursor style... haha... too used to win32-GUI and my own home made console routines...
Quick question, whats the function to set the console cursor style... (ie: blinking block instead of blinking line)
thanks in advance.
;)
Well you can achieve this by bitwise operators... or a by a strict copying. Remember that a char is 8bits and a long int a 32-bits...
here is a recent post on the subject that you just asked ...
he has an example of *.wav playback...
http://www.cprogramming.com/cboard/showthread.php?s=&threadid=18180
or a website here:
...
haha i love it... lets get everyone in here for a Free for all...
haha what is this a carebear forum?
"this was un called for" hahahaha...
there is a tissue on the desk there for ya... to the left a little bit..
Actually it implies the loop is infinite bud, read it back.. it never says he exits the program or the function early...
in either case both are not recommended, the infinite loop is obviously...
well think of the effects of an infinite loop.
then ask yourself is this good ?
why people have to get all hot and bothered about it is a question for the DH.
btw ygfperson your qoute rox ;)
nope not bad, i do that myself, a function should be small and concise...
just make sure you pass by reference all the time.. you dont want to keep passing by value and wasting resource time
Uraldor, hey ***got, dont get into someone's business u dumb ****... im not talking to the original poster anyhow, so learn how to follow post's...
and leaving an infinite loop is bad code.
...
Barjor, you obviously must be new.
leaving a loop in a infinite process is just bad code.
did you just ask if its bad to have an infinite loop?
that is hallarious
your gotoxy function looks fine...
try initializing the HANDLE in main()
im not sure what the hell your question is but, if you want to ouput an integer one digit at a time ( regardless of what stop they are in the int array) just convert it with itoa() and then output...
consh = GetStdHandle(STD_OUTPUT_HANDLE);
void gotoRC(int row, int col)
{
COORD coord;
coord.X = col;
coord.Y = row;
SetConsoleCursorPosition(consh,coord);
}
Well bud before you do anything learn how to code a win32 GUI... pure DOS applications (not win32 bit console applications) are written in 16bit code. now, when translating them into a win32 gui, you...
wow there are more and more of these poping up every week...
i wish there was some kinda warning message when people register