Help with what?? We can't help you unless you post some code, or at least ask a question...
Type: Posts; User: Vlade
Help with what?? We can't help you unless you post some code, or at least ask a question...
your main file (First.cpp) should #include "New.cpp" , not New.h
you might also try the _mkdir() function (I compiled and tested this):
#include <direct.h>
int main()
{
_mkdir("c:\\testing space");
return 1;
Using frames won't stop anyone (I would know :D )
I have seen pages before that encrypt the source, and use a Perl or PHP script that decrypts the page at run-time..so when I view source all I see...
First off, why do you make a struct consisting of pointers?? It will work fine if you change the struct to this:
typedef struct personnelData
{
int Credits;
int StudentID;
char*...
References are just pointers, so maybe the mis-understanding has to do with pointers? I'd explain them, but you'd prolly be better off learning pointers from a book or other online source
quick...
#include <windows.h>
Sleep(60*1000); //sleep is in milliseconds, so multiply by 1000 to get seconds, this would basically stop the program from running for a minute
Edit: after re-reading...
the reference isn't necessary, but if you leave it out, that means creating a copy of the object, which could be very expensive for large objects.. and since we're not modifying the object at all,...
first of all, make sure your char* array is big enough to hold the entire string..you can always over-estimate just in case
char text_string[30];
sprintf() is just like printf(), the %d...
not that I know of.. you can pause the program in other ways tho:
std::cout << "Press any key to continue...";
getch(); //defined in <conio.h>
or you could use
std::cin.get(); //defined in...
I believe you want stricmp() and not strcmpi()
and make sure you #include <string> or <string.h>
yeah I've seen this way, but it doesn't always work..
a^=b^=a^=b;
here's another way (simply mathematical)
a += b;
b = a - b;
a -= b;