Search:

Type: Posts; User: Benzakhar

Page 1 of 7 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    18
    Views
    8,089

    What about using getline() and then appending the...

    What about using getline() and then appending the terminating character to the string?
    or
    use
    istream& get ( char& c ); // or
    int get(); and write your own function to read in a line which will...
  2. I tried running the extractTheRequest() function...

    I tried running the extractTheRequest() function and it seems to have returned everything in the quotes properly.
  3. Replies
    6
    Views
    3,438

    a pointer is simply an address in memory. Its the...

    a pointer is simply an address in memory. Its the same as an address for where you live, and the memory is what is there. For example you can say at address "103 placeName M3M2K4" there's a chuchu...
  4. Replies
    23
    Views
    2,921

    Another solution: class viewPort { . ....

    Another solution:



    class viewPort
    {
    .
    .
    .
    public:
  5. Replies
    6
    Views
    1,848

    You can also output to a really simple format and...

    You can also output to a really simple format and use php to convert it to html with the colors you like.

    example log file


    player.cpp:decide:32:warning: Mouse is out of bounds...
  6. Replies
    7
    Views
    7,418

    Yes I made a mistake copying the error, it is ...

    Yes I made a mistake copying the error, it is "multi-character". Putting the MAKEID macro into the "case" statement gives



    case MAKEID("posx"): ./* Line 8 */
    obj.pos.x = conf->data.i;...
  7. Replies
    7
    Views
    7,418

    I'm using gcc. For the conf->item.id I want the...

    I'm using gcc. For the conf->item.id I want the id's of objects be "names" and integers at the same time. To create the 'id' I parse a file of "name=value" pairs and the first 4 letters are used.
    ...
  8. Replies
    3
    Views
    1,217

    I think "the return value cannot be ever...

    I think "the return value cannot be ever changed" makes sense. Does "(a+b) = 7;" make sense to you? The "const" helps prevents people doing something like that by accident.

    I think you can make...
  9. Replies
    7
    Views
    7,418

    "warning: multi-line character constant"

    The code below works but gives the warning "warning: multi-line character constant" for each character constant I have in the switch-case statement.



    int GObject::configure(const ConfEl* conf){...
  10. Replies
    4
    Views
    1,074

    Perhaps also GD depending on what you want: ...

    Perhaps also GD depending on what you want:

    OpenGL - good for showing photos
    SDL - Good for showing photos and custom manipulation, could mix with OpenGL: Tutorial
    GD - I like using this for...
  11. Replies
    12
    Views
    9,009

    One thing that doesn't seem to make sense is the...

    One thing that doesn't seem to make sense is the following 2 declarations:



    static char *Token[MAXSYMBOLS];
    ...
    char g_symbols[MAXSYMBOLS];


    As it appears to me you are using MAXSYMBOLS...
  12. Replies
    13
    Views
    3,041

    I appoligize Yes you are right, I was compiling...

    I appoligize Yes you are right, I was compiling in C++.
  13. Replies
    13
    Views
    3,041

    I have 4.0.3 I should upgrade.

    I have 4.0.3 I should upgrade.
  14. Replies
    13
    Views
    3,041

    I appoligize I should have looked at the link...

    I appoligize I should have looked at the link provided first before making that post. There doesn't seem to be anything wrong with the sample code in the tutorial as I see it, except the need to...
  15. Replies
    13
    Views
    3,041

    the compiler won't compile this because you have...

    the compiler won't compile this because you have a potential error. The way to tell the compiler you know what you are doing is to change this
    conductor->next = malloc(sizeof(struct node)); //...
  16. Replies
    3
    Views
    1,416

    All the memory (for a function call) is allocated...

    All the memory (for a function call) is allocated at once regardless of if the loop is executed or not.
    No the loop does not allocate and deallocate things every itteration. Why? Effiecancy and its...
  17. Thread: Rotation

    by Benzakhar
    Replies
    4
    Views
    1,712

    trigonometry lets say you have a pixel at x , y....

    trigonometry
    lets say you have a pixel at x , y. where (0, 0) is top left. (w, h) is width height. (a,b) = (x-w/2, h/2 - y)
    where m is the length from (0, 0) defined at center of image to pixel
    x'...
  18. Replies
    3
    Views
    1,744

    Perhaps the problem is imagepixels or TrackBar2...

    Perhaps the problem is imagepixels or TrackBar2 is pointing to data that is not proporly owned by your program. Check and make sure imagepixels is within bounds of the memory you allocated, similarly...
  19. Replies
    3
    Views
    1,744

    Do you want to fade into the second image? Well...

    Do you want to fade into the second image? Well first get all the pixels of the image, you may want to use DIB (Device indipendant Bitmap) as in this case it would be faster doing calculations on the...
  20. Replies
    5
    Views
    1,411

    I realized my final solution was poor and I...

    I realized my final solution was poor and I edited last minute before I saw your post :).

    Wow what fast posting :D
  21. Replies
    5
    Views
    1,411

    In the while loop string tmp; ...

    In the while loop


    string tmp;
    while(!name.eof())
    {
    name.get(ch);
    name >> words;
    }
  22. Replies
    10
    Views
    1,308

    If he is in school then marks will likely be...

    If he is in school then marks will likely be deducted
  23. Thread: Motivate me.

    by Benzakhar
    Replies
    49
    Views
    10,575

    I remember laughing in my physics class alot :)...

    I remember laughing in my physics class alot :) because it was fun :cool:
  24. Replies
    2
    Views
    1,146

    windows file sharing

    Ever since I pluged in a new laptop to the lan network of my router the older windows machines don't allow anyone to access their files for file sharing. Is their anyway I may fix this or any program...
  25. Replies
    19
    Views
    2,255

    Also to add at the very beginning void...

    Also to add at the very beginning
    void transferTime ( int hddSpeeds[], float sizeOfDir, float transferRate[] );

    does not match the function at the bottom.

    for var = argv ....
    a sollution is:...
Results 1 to 25 of 163
Page 1 of 7 1 2 3 4