Search:

Type: Posts; User: bvkim

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    2,164

    How to fill a line of character?

    As you know, in C++ you can use setfill(char c); and setwidth( int length) to fill a line of a character.
    It's line making a line of a character for output



    NAME DEPARTMENT ...
  2. Replies
    6
    Views
    4,310

    Oh, I've figured it out ... Problem solved!

    Oh, I've figured it out ...
    Problem solved!
  3. Replies
    6
    Views
    4,310

    wow, u're such a great teacher just lighted up my...

    wow, u're such a great teacher just lighted up my mind for knowledge :))

    But I'm still having 2 more questions to ask if you don't mind ^^!

    1. Base on your explanation above, I guess the...
  4. Replies
    6
    Views
    4,310

    Something I'm curious 1. why do i need to cast...

    Something I'm curious

    1. why do i need to cast from void* to char*?
    2. how can I compare the values in those `base` memory while I don't know what kind of type they are?
    3. Would you mind giving...
  5. Replies
    6
    Views
    4,310

    Generic Programming in C?

    As you know that GNU-C provides qsort() function in <cstdlib> in this prototype



    void qsort ( void * base, size_t num, size_t size, int ( * comparator ) ( const void *, const void * ) );

    ...
  6. Replies
    1
    Views
    4,629

    Wow, Problem solved! I've found my stupid...

    Wow, Problem solved!
    I've found my stupid mistake -_-;;
  7. Thread: %(Modulus)

    by bvkim
    Replies
    19
    Views
    104,056

    It's kinda of calculating remainder, it's like 3...

    It's kinda of calculating remainder, it's like 3 % 2 = 1; 100 % 10 = 0; 5 % 2 = 1; 19 % 4 = 3
    and it has nothing to do with random(), which is used to generate a random value ( it should be rand()...
  8. Replies
    1
    Views
    4,629

    bubble sort for array of double

    Here's my code for bubble sort with double type


    #include <stdio.h>

    void swap_double( double *a, double *b )
    {
    double _t = *a;
    *a = *b;
    *b = _t;
  9. Replies
    4
    Views
    1,261

    @all, thanks, I've got it. When I insert a...

    @all, thanks, I've got it.

    When I insert a character, the string size (or capacity) is increased; however, my iterator at end and beginning is const, that is, it causes conflict in memory between...
  10. Replies
    4
    Views
    1,261

    error from string insert

    I try to insert a character into a string at every position that modulus 3 == 0.



    #include <iostream>
    #include <string>

    using std::cout;
    using std::endl;
    using std::string;
  11. Replies
    18
    Views
    4,115

    basic answer: it's all in memory, loaded in...

    basic answer: it's all in memory, loaded in run-time; destroy after finishing.
  12. Replies
    7
    Views
    2,312

    it just a leak of memory.....gr

    it just a leak of memory.....gr
  13. Replies
    5
    Views
    3,527

    machine only understands number, you got that?...

    machine only understands number, you got that?
    therefore, in order to represent a character, each unique number is assigned to a character. Example: 0x41 is char 'A', so whenever you print out 0x41,...
  14. Replies
    10
    Views
    3,439

    fflush(stdin)

    fflush(stdin) <--- undefined...
    no need.
  15. Here sample...you have to modify, use at your own...

    Here sample...you have to modify, use at your own risk ^^



    /*
    * @author bvkim
    * @date 19 August, 2009
    * @file sample.c
    * @note
    */
  16. Replies
    3
    Views
    1,679

    you don't understand because you have no idea...

    you don't understand because you have no idea about network structures. If you code network through "raw sock", the code is 3-4 times longer than through "stream sock". Of course, you have to handle...
  17. Thread: semtex wargame

    by bvkim
    Replies
    7
    Views
    2,001

    Wow....so funny...Your TITLE & FIRST POST is...

    Wow....so funny...Your TITLE & FIRST POST is SEMTEX

    But from 3RD POST, IT's VORTEX...

    They're 2 different wargames, man.....
    Well, the first levels of them are basically the same, except the...
  18. oh man....offsetof

    oh man....offsetof <---- a so good macro

    after reading from top post .... now I'm confused, too. o.O;;
  19. Thread: If statements

    by bvkim
    Replies
    12
    Views
    2,516

    there you gooooo #include int...

    there you gooooo



    #include <stdio.h>

    int main()
    {
    int speed;
    int ret;
  20. Thread: GUI programming

    by bvkim
    Replies
    6
    Views
    1,834

    A good Gtk+ programming tutorial series as well: ...

    A good Gtk+ programming tutorial series as well:

    - Prison Code Breaker Diary -: Gtk+ Programming Tutorial
  21. Replies
    12
    Views
    2,392

    linked list?

    linked list?
  22. Replies
    8
    Views
    17,230

    nothing much.. #include ...

    nothing much..



    #include <times.h>

    srand( time( NULL ) );


    srand() not srandom()...
  23. Replies
    9
    Views
    1,282

    int compare( const int a, const int b ) { return...

    int compare( const int a, const int b ) { return (a - b); }
  24. Replies
    6
    Views
    2,447

    better visit codeproject.com :)

    better visit codeproject.com :)
  25. what a loooooooooong intro ... :D out =...

    what a loooooooooong intro ... :D



    out = (char**) calloc( i+1, sizeof ( char* ))


    p/s: i'm not good at thinking or programming....
Results 1 to 25 of 60
Page 1 of 3 1 2 3