Search:

Type: Posts; User: trekker

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: extern keyword

    by trekker
    Replies
    7
    Views
    3,915

    sorry m8 i accidentally pushed the post...

    sorry m8 i accidentally pushed the post button...:(

    i should hav known u r lurking...to get your post counter up...
  2. Thread: extern keyword

    by trekker
    Replies
    7
    Views
    3,915

    u shouldn't be so hasty.... that's not what i...

    u shouldn't be so hasty....
    that's not what i asked

    thanx anyway
  3. Thread: extern keyword

    by trekker
    Replies
    7
    Views
    3,915

    extern keyword

    hi,

    i'm puzzled by the use of the extern keyword.

    1) when used in functions, it's just for stylistic purposes.
    So, that use is pretty clear.

    2) when used in variable declarations...
  4. Thread: file id

    by trekker
    Replies
    6
    Views
    1,245

    that's exactly what i want to do. i know the...

    that's exactly what i want to do.
    i know the structure should be of my choice,
    but i'm asking for any common or popular ways to do so.
    I just want the doc for them
  5. Thread: file id

    by trekker
    Replies
    6
    Views
    1,245

    file id

    i want my program to be able to figure out if an input file
    is one that was generated from it.
    How can i use the magic number technique ?
    Are there any other portable ways ?

    TIA
  6. Replies
    3
    Views
    1,496

    It's not really important. Foo2 is supposed to...

    It's not really important.
    Foo2 is supposed to construct Foo objects
    from a file.

    Java programming corrupts... ;)
  7. Replies
    3
    Views
    1,496

    expression error?

    I've really stuck on this error.
    Here's the code:

    file : Foo.h



    #ifndef FOO
    #define FOO
  8. Thread: password field

    by trekker
    Replies
    2
    Views
    3,122

    password field

    how to i create a password field for a DOS app in C?

    e.g.

    username:trekker
    password:*****


    I would also want a few links/books on DOS API programming.
  9. Replies
    1
    Views
    1,400

    embedded MySQL .exe incompatibility ?

    i've finished a small client program to handle
    a MySQL db on a remote server.
    The cmd line app works fine with the db on localhost
    and with the exactly same db on the remote host
    through a modem...
  10. Replies
    11
    Views
    1,724

    you'll probably need to reference the monumental...

    you'll probably need to reference the monumental
    "The Art of Computer Programming"
    Volume 2 - Seminumerical Algorithms
    in order to optimize the code.
    I've done it only in C
  11. Thread: stdin close??

    by trekker
    Replies
    3
    Views
    2,089

    I've tested it on 1) Mac OS classic with...

    I've tested it on

    1) Mac OS classic with Codewarrior

    and because the classic mac os implements the
    cmd line as a standalone app

    on

    2) Win 2000 with VC
  12. Thread: stdin close??

    by trekker
    Replies
    3
    Views
    2,089

    i think it's more proper to use something like...

    i think it's more proper to use something like this



    while (scanf("%d", &opt) == EOF && opt != -1)


    thanks
  13. Thread: cin failure

    by trekker
    Replies
    3
    Views
    1,294

    cin failure

    ...
    int choice;
    cin >> choice;
    ...


    if i enter no numerical chars a cin error occurs
    that i can't restore with cin.clear()
    i detect the error with cin.fail()
  14. Thread: stdin close??

    by trekker
    Replies
    3
    Views
    2,089

    stdin close??

    i write a pretty usual while loop like this



    ...
    while( opt != -1 ) {
    printf( "Enter option : " );
    scanf( "%d", &opt );

    // do something here
  15. Replies
    3
    Views
    947

    it's just says 'COMPILER FATAL ERROR' and that I...

    it's just says 'COMPILER FATAL ERROR' and that I should contact
    Tech Support. Well, I may do so in order to inform them about their
    'wonderful' compiler.

    Note, that MW Codewarrior compiles it...
  16. Replies
    3
    Views
    947

    VS 6.0 problem v2.0

    my odyssey with VS continues...:mad:

    i've written a simple string class of my own but i get a
    compiler fatal error when it tries to compile the first
    'friend' function i declare in the class...
  17. Replies
    4
    Views
    1,310

    thanks for your answers your solutions worked...

    thanks for your answers
    your solutions worked fine
    it's obvious that I'm using VS 6.0

    I've previously tried to use the __MSDOS__ predefined constant
    but it didn't work. Any suggestions?
  18. Replies
    3
    Views
    1,855

    software licences

    i'd like to provide me with links to help me understand
    the foggy area of software licenses.

    e.g.
    if i want to provide a software project completely
    free does the OS licence suffice?
    Do i have...
  19. Replies
    4
    Views
    1,310

    using std problem

    Whenever i'm trying to use the std C header files
    with the using statement
    in a C++ project with Visual Studio i get an error at compile time
    e.g.



    ...
    #include <cstring>
  20. Replies
    1
    Views
    1,285

    well, perhaps i wasn't clear. when i say no...

    well, perhaps i wasn't clear.

    when i say no output i mean that not even the



    ...
    fprintf( stderr, "hello" );
    ...
  21. Replies
    1
    Views
    1,285

    no output with MySQL C API

    here's my code


    #include <stdio.h>
    #include <mysql.h>

    MYSQL db;

    int main( int argc, char *argv[] )
    {
  22. Thread: Graphical C

    by trekker
    Replies
    4
    Views
    2,107

    It depends on the platform you are using...

    It depends on the platform you are using CodeWarrior.
    So, you may use Metrowerks Powerplant Framework or
    Apple's Cocoa/Carbon frameworks if you are on a Mac,
    MFC on Wintel box, Java for a...
  23. Replies
    2
    Views
    1,372

    well, it's a good FAQ but i didn't find my...

    well, it's a good FAQ
    but i didn't find my answer there.

    I managed to compile GNU getopt.c file with minor
    modifications.

    thanks anyway
  24. Replies
    2
    Views
    1,059

    ...so normal strings do have any possibility of...

    ...so normal strings do have any possibility of causing an error
    since the only zero byte in the ASCII table is the terminating null
    char.

    tnx
  25. Replies
    2
    Views
    1,059

    binary data in string

    i've been browsing through the MySQL C API reference
    and found that query strings may contain binary data such as
    the '\0' and may cause erroneous results from functions like
    strlen().

    Any idea...
Results 1 to 25 of 46
Page 1 of 2 1 2