Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: TheLionKing

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Re: problems with passing std::multimap as a parameter

    you are very right! my bad! those small small things are what will get you.
    what do you mean by i should learn to ask questions the "smart" way?
    we all do start from somewhere you know???
  2. problems with passing std::multimap as a parameter

    am passing an std::multimap<int, int> (a global variable) as a parameter to a function.
    In the function itself (function first_rumble() ) the map behaves well..all is ok..size not zero after being...
  3. Thread: file i/o

    by TheLionKing
    Replies
    10
    Views
    438

    Re: file i/o

    ok will put code in code tags next time. sorry.
    std::vector<int>cont2;
    std::vector<int>values_to_play;

    are global variable declared up there somewhere....
  4. Thread: file i/o

    by TheLionKing
    Replies
    10
    Views
    438

    Re: file i/o

    sir since you're online now..can you help me with this lil problem?

    am getting error undefined reference... :(


    /home/mike/Dropbox/C++/Rolling Real.o||In function `extract_pos_wins()':|...
  5. Thread: file i/o

    by TheLionKing
    Replies
    10
    Views
    438

    Re: file i/o

    ok ok loads of thanks for the clarification :)
  6. Thread: file i/o

    by TheLionKing
    Replies
    10
    Views
    438

    Re: file i/o

    thanks 2kaud the code works..and there was no need to change string elem to int elem...
    you could have told me sstreams are used to convert int to strings for input..but i read about it and i got it...
  7. Thread: file i/o

    by TheLionKing
    Replies
    10
    Views
    438

    Re: file i/o

    Hi 2kaud..thanks for the quick reply...
    but there are some stream objects I've never used before and reading about them on cplusplus.com has given me some idea but things are not just clear yet......
  8. Thread: file i/o

    by TheLionKing
    Replies
    10
    Views
    438

    file i/o

    i want the maching to be inserting numbers itself from a name.txt file (no problem here)
    but lets say i have the numbers this way

    23 24 25 26
    27 28 28 30
    31 32 33 34

    in my name.txt file
    ...
  9. Replies
    27
    Views
    1,059

    Re: why is this code crashing?

    just don't mind :)
  10. Replies
    27
    Views
    1,059

    Re: why is this code crashing?

    vladimirF that was by the way..we're here to talk messed up code.
    Paul mckenzie..I find your code too heavy though..i didn't even know you could call a function in a struct like that..like how you...
  11. Replies
    27
    Views
    1,059

    Re: why is this code crashing?

    thanks paul! anyway is not homework...is me wanting the machine to do some daunting repetitive task for me...i got this part time job to put some numbers in order...and am trying to find a way to...
  12. Replies
    27
    Views
    1,059

    Re: why is this code crashing?

    given this
    4,34,32,34,56,
    76,4,98,3,4,
    3,5,3,4,5,
    6,7,55,67,65,
    67,19,57,12,45,
    ...
  13. Replies
    27
    Views
    1,059

    Re: why is this code crashing?

    and you are right Paul! i need to use the STL more! but is not my fault..am in third year computer engineering...should be taking my degree in a couple of months...we were only taught how to program...
  14. Replies
    27
    Views
    1,059

    Re: why is this code crashing?

    my numbers are natural numbers...in cont3 there must be no repeating natural numbers...the pairing is insignificant in cont 3... but the rule is that i have to take the first two numbers of every...
  15. Replies
    27
    Views
    1,059

    Re: why is this code crashing?

    2kaud! :) of course with this explanation the code will surely crash!!! and it may crash still too if i use just int * pointer if my vector is moving about in memory...i have to read and go at the...
  16. Replies
    27
    Views
    1,059

    Re: why is this code crashing?

    oh a moment, i just learned something new...so with vector::iterator..pushback destroys the pointer? wow! so i may as well not use a vector::iterator but an int * chk2 no? anyway am gonna read on...
  17. Replies
    27
    Views
    1,059

    Re: why is this code crashing?

    i don't get your point, paul mckenzie, std::vector<int>::iterator chk1 and chk2 don't refer to a particular vector...the should be free to point to anyone, no???
    and anyway... what the code is...
  18. Replies
    27
    Views
    1,059

    Re: why is this code crashing?

    am searching for materials again on debugging..hope to be able to do it soon! thanks
  19. Replies
    27
    Views
    1,059

    Re: why is this code crashing?

    yes man! unfortunately i've not been able to successfully learn how to debug with code::blocks..or with any IDE for that matter.I mean i haven't been able to find a step by step instruction on how to...
  20. Replies
    27
    Views
    1,059

    why is this code crashing?

    #include <iostream>
    #include <vector>
    #include <fstream>

    /* this short code has to do this,
    give an array of lenght 50, position (0,1) ,(5,6), (10,11), (15,16) and
    so on till (45,...
  21. Replies
    18
    Views
    6,511

    Re: array matrix problem

    HI master 2Kaud...I needed to use this code you wrote for me last time...mmm trying to read it again I couldn't understand a step...
    am gonna post the code and write in the comments...
  22. Re: [RESOLVED] writing to file and newline( endl and '/n'

    HI 2kaud...good evening master...please...i don't get what you mean by if(i+1)%70....in words...if i plus one divided by 70 gives no remainder??? is that what you mean?
  23. Re: [RESOLVED] writing to file and newline( endl and '/n'

    I notice the k<70 error...am gonna try it again..thanks
  24. [RESOLVED] writing to file and newline( endl and '/n'

    am having problem asking for a new line when writing to a txt file...not working with std::endl and not with '\n'...i COMMENTED IN THE CODE BELOW WHERE THE PROBLEM ARISES....


    #include <iostream>...
  25. Replies
    18
    Views
    6,511

    Re: array matrix problem

    Am sorry guys but maybe i didnt make my self clear...because after trying to use the code of mckenzie and not getting the desired result plus GCDEF's comment make me understand that we're not...
Results 1 to 25 of 31
Page 1 of 2 1 2


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center