Search:

Type: Posts; User: Vlade

Search: Search took 0.01 seconds.

  1. Thread: compiler help

    by Vlade
    Replies
    8
    Views
    1,203

    Help with what?? We can't help you unless you...

    Help with what?? We can't help you unless you post some code, or at least ask a question...
  2. Replies
    4
    Views
    1,556

    your main file (First.cpp) should #include...

    your main file (First.cpp) should #include "New.cpp" , not New.h
  3. Replies
    3
    Views
    1,271

    you might also try the _mkdir() function (I...

    you might also try the _mkdir() function (I compiled and tested this):



    #include <direct.h>

    int main()
    {
    _mkdir("c:\\testing space");
    return 1;
  4. Thread: Html

    by Vlade
    Replies
    12
    Views
    1,720

    Using frames won't stop anyone (I would know :D )...

    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...
  5. Thread: Pointer Problem

    by Vlade
    Replies
    2
    Views
    1,274

    First off, why do you make a struct consisting of...

    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*...
  6. Replies
    7
    Views
    1,219

    References are just pointers, so maybe the...

    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...
  7. Thread: Second timer

    by Vlade
    Replies
    7
    Views
    5,132

    #include Sleep(60*1000); //sleep...

    #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...
  8. Replies
    7
    Views
    1,219

    the reference isn't necessary, but if you leave...

    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,...
  9. Replies
    1
    Views
    1,232

    first of all, make sure your char* array is big...

    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...
  10. Thread: DOS command...

    by Vlade
    Replies
    2
    Views
    1,008

    not that I know of.. you can pause the program in...

    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...
  11. Thread: strcmpi()

    by Vlade
    Replies
    4
    Views
    5,047

    I believe you want stricmp() and not strcmpi()...

    I believe you want stricmp() and not strcmpi()
    and make sure you #include <string> or <string.h>
  12. Replies
    4
    Views
    2,128

    yeah I've seen this way, but it doesn't always...

    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;
Results 1 to 12 of 12