Search:

Type: Posts; User: gftmc

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: just a ponder...

    by gftmc
    Replies
    4
    Views
    1,049

    just a ponder...

    i always wanted to know - does


    for(int i = 0;i < 3;i++){
    //code
    }


    does the same as:
  2. Thread: Preprocessor

    by gftmc
    Replies
    5
    Views
    1,648

    it does more than that. it prepares the code for...

    it does more than that. it prepares the code for proccessing - it includes comment striping, but it does more. for example, every line that starts with a # is a preprocessor directive.
  3. Replies
    7
    Views
    1,114

    I understand. thanks.

    I understand. thanks.
  4. Replies
    7
    Views
    1,114

    I see what you mean. anyway, is there's any way...

    I see what you mean. anyway, is there's any way to define the last character or to detect the end of a dynamicly allocated array?
  5. Replies
    7
    Views
    1,114

    this is the full code. it started as a small...

    this is the full code. it started as a small test, when i realised it did'nt work. it compiles, but gives unexpected results: 3 and 1. i hope i rest my case this time/
  6. Replies
    7
    Views
    1,114

    a Question regarding Dynamic memory.

    i have been working on a certain program the other day when i noticed a wierd problem: strlen doesnt work with new, so


    char * b;
    char * c;
    b = new char (12);
    c = new char (12);...
  7. Replies
    6
    Views
    1,881

    that doesn't seem to make any sense. you dont...

    that doesn't seem to make any sense. you dont need it, as much as i understand, it won't even compile. anyway, usually rand() is used with modulus (%) and the highest number you will accept+1. then...
  8. Replies
    17
    Views
    2,177

    if you know how to read MP3 tag, and how to...

    if you know how to read MP3 tag, and how to search for files in directories, what use can you possibly have for a DB? (assuming that DB is a DataBase).
  9. Thread: an atoi replacor

    by gftmc
    Replies
    10
    Views
    1,280

    ok, you didnt understood me. i like to reproduce...

    ok, you didnt understood me. i like to reproduce functions, only because i feel better when using them. i use stl Classes always. i dont intend to make use of them in a large project. (something with...
  10. Thread: an atoi replacor

    by gftmc
    Replies
    10
    Views
    1,280

    first, it is a good practice. second, im more...

    first, it is a good practice. second, im more content to use something i prduced. in small functions like this, it is easy.
  11. Thread: an atoi replacor

    by gftmc
    Replies
    10
    Views
    1,280

    well, the heap is just for practice... and i...

    well, the heap is just for practice... and i prefer not to use functionality i can produce myself. anyway, i just wanted to know if you have any idea on how to improve it.
  12. Thread: an atoi replacor

    by gftmc
    Replies
    10
    Views
    1,280

    an atoi replacor

    this is a function imade the other day. i would like to know what do you think about it, and if you have any ideas how to improve it.


    #include <iostream>
    #include <string>

    std::string...
  13. Replies
    3
    Views
    1,818

    thanks for your posts. i think ill simply use...

    thanks for your posts. i think ill simply use void* and overloading. thanks.
  14. Replies
    3
    Views
    1,818

    data types types...

    im pretty new to this kind of C++ and i was wondering if there is a way to determine what is the type of a pointer. say i got a void* that points to an int. how can i detect that? or pass an int* to...
  15. Replies
    13
    Views
    1,314

    what about _unlink? or is it only for borland?...

    what about _unlink? or is it only for borland? btw you will need fstream for that...
  16. Replies
    7
    Views
    1,286

    of course this is possible, but then where is the...

    of course this is possible, but then where is the chalenge? anyway, ill try a union, never realy worked with them before
  17. Replies
    7
    Views
    1,286

    this is just a part of my code. i wanted to post...

    this is just a part of my code. i wanted to post a small, important code, not all the I/O procedure. anyway, thanks for the reply ill try it.
  18. Replies
    7
    Views
    1,286

    another pointer question....

    i've got a question... i want to make a REAL small scripting language by using a void * vector. i would like to know if this code is safe (causing memory leaks maybe?) and if there is any...
  19. Replies
    7
    Views
    2,143

    isnt there is the gl thing? global bool...

    isnt there is the gl thing?


    global bool keys[256]
    LRESULT WINAPI MsgProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam )
    {
    switch( msg )
    {
    case WM_DESTROY:
    ...
  20. Replies
    13
    Views
    3,288

    im not sure but wont #include...

    im not sure but wont


    #include<iostream>
    int main(int argc,char *argv[]){
    if(argc !=2){
    cout<<argv[0]<<endl;
    }
    }
  21. Replies
    13
    Views
    1,750

    You can store the passwords binaricly... this...

    You can store the passwords binaricly... this will prevent normal people from reading them and will be easier to use
  22. Replies
    10
    Views
    1,655

    then big people with black suits and dark cars...

    then big people with black suits and dark cars will knock on your door. OR you will use default.
  23. Replies
    3
    Views
    1,472

    If you realy have no idea you can put each digit...

    If you realy have no idea you can put each digit in a one array cell and then make a loop wich will output the array from the top to the bottom.
  24. Thread: Hacker Game

    by gftmc
    Replies
    7
    Views
    2,338

    It doesn't seem that hard.... OGL and some...

    It doesn't seem that hard.... OGL and some classes(each program)... the rest seem quite simple..
  25. Replies
    11
    Views
    15,591

    I create programs with no real meaning - a login...

    I create programs with no real meaning - a login program to somewhere that isnt exists (to practice files I/O) and all kind of "Hello World" in difrent ways - open gl, normal window, files etc....
Results 1 to 25 of 31
Page 1 of 2 1 2