Alright, here's my problem. I need to store a number thats as big or higher than 1661713756910382300 into a data type other than a string or array. The problem with a string/array is that when i use...
Type: Posts; User: rkjd2
Alright, here's my problem. I need to store a number thats as big or higher than 1661713756910382300 into a data type other than a string or array. The problem with a string/array is that when i use...
well thank you for critisizing my code when it wasnt even in question. thats not code that i've actually tested, and i wrote it on the fly and do expect it to have errors. i did write code to find...
no i mean if i have the following code
#include <stdio.h>
int main()
{
char a_string[1030];
int i;
for(i=0;i<=1030;i++)
so what if ptr is a string not a pointer? would i be accessing ptr as a pointer if i did *(long *)&ptr = something;?
so then what would *&ptr be? the value at the address of ptr?
I'm trying to learn pointers and their values, i know the following (please correct if incorrect)
ptr = the value of the variable it points to
*ptr = the address of the variable it points to...
ok im learning opengl and im of corse running msvc 6.0 enterprise edition blah blah blah anywho this code(below) seemed to do nothing untill i added a messagebox to to the if(!registerclassex...)....
still hwnd is an undefined variable.
alright i know about the alt+enter stuff and the code that one guy posted:
bool GoFullScreen(void){
hwnd = FindWindow(NULL, "Menu");
if(hwnd != NULL){
int nVer =...
nope
windows xp has no autoexec.bat
im running windows xp and djgpp says to add some stuff under the enviroment tab in msconfig...there is no enviroment tab nore is there and autoexec.bat for me to edit any one know how to get this...
im running borland 5.5 and i need to know how to install allegro here's what i've done so far, its not working...
unzip the source files to my \borland\bcc55\allegro
went into the allegro folder...
i dont gots the library's for opengl, or directx, dunno about allegro...know of any good/beginner tutorials?
any way to get that to work in windows? it says BGI graphics are not supported by windows, any ideas what i should use? oh im useing Borland C++ 5.01...i may just need a new compiler...
besides u have to use a variable for srand otherwise you couldnt manipulate it. and if you used a variable with 1,2,3 as values, you would be calling the same seeds getting the same numbers. there...
ok first he wasnt asking for a SINGLE random number. there for he needs 3 random numbers, if i calll srand one time, rand will spit out the same number each time (trust me i've done this before). if...
ok not that i like the fact that you didnt check the FAQ to begin with, but this isnt really in the faq, it just takes a little thinking, here is a sample of what your code should look like, i...
ah yes getc() IS standared but i need _getc() one shows output to the screen the other dosnt.
does any one know what linux compilers call _getc()???
for some odd reason when i compile this c++ program i get errors
#include <iostream.h>
int main()
{
system("telnet localhost");
return 0;
}
ok not to be rude but yes i know that Slackware 8.0 is a O/S not a compiler (trust me i'm quite aware of this) i was refering to the program g++ that it comes with wich IS a compiler. Aside from that...
hmmm slackware 8.0 dosnt have conio.h.....
i got it to work, stupid me you cant capitolize EOF i was doing this
while(!somefile.EOF())
gotta do this
while(!somefile.eof())
does any one know a linux equivilent to conio.h?