Search:

Type: Posts; User: robid1

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: memcpy strange

    by robid1
    Replies
    5
    Views
    1,153

    Thanks that works now, yes your right the -1 was...

    Thanks that works now, yes your right the -1 was not ment to be there, i copied a stub from somewhere else in the code nice job :) saved me lots of headaches.

    edit: salem your on the money 99% of...
  2. Thread: memcpy strange

    by robid1
    Replies
    5
    Views
    1,153

    Thanks for the input, but that seems to make it...

    Thanks for the input, but that seems to make it worse, now only displaying 1 random number and following 0's. Is there a way to copy one element at a time and just loop it?
  3. Thread: memcpy strange

    by robid1
    Replies
    5
    Views
    1,153

    memcpy strange

    Here is the code:



    // set the array with values of 0
    for (int index = 0; index < NumElements -1; index++) {
    OriginalArray[index] = 0;
    }

    // forget about pure random at the moment
  4. Replies
    15
    Views
    2,082

    my random.h consists of one line the same as the...

    my random.h consists of one line the same as the first post. Its just a prototype of one function, exactly the same code has given me 3 different errors, on the one line where i call the function....
  5. Replies
    15
    Views
    2,082

    Update: When added a comment to your code and...

    Update:

    When added a comment to your code and tried to recompile it died - Just for reference, future problems.

    [Linker error] undefined reference to `__gxx_personality_v0'

    resonable...
  6. Replies
    15
    Views
    2,082

    Thats insane it works when you code it. Ill just...

    Thats insane it works when you code it.
    Ill just keep going with these files.. heh thanks mate *scratches head*
  7. Replies
    15
    Views
    2,082

    Thanks but nah does not seem to work, this has me...

    Thanks but nah does not seem to work, this has me totally baffled. Ill just use the painful unix box untill i can figure it out dont have time to keep playing with it at the moment, thanks for all...
  8. Replies
    15
    Views
    2,082

    Project actually, this is the first time ive...

    Project actually, this is the first time ive needed to use more then one file (if you get me) and i did it as a project. ill try it another way
  9. Replies
    15
    Views
    2,082

    Argh, Uninstalled 4.9.9.0 and reinstalled it,...

    Argh,
    Uninstalled 4.9.9.0 and reinstalled it, same problem
    Went back to 4.9.8.0 and it has the same again.
  10. Replies
    15
    Views
    2,082

    Dev-C++ 4.9.9.0 the latest version, i might need...

    Dev-C++ 4.9.9.0 the latest version, i might need to go back one coz i just tried it on a solaris 5.* box and it had a few warnings like double lined comment? (dunno?) but compiles... weird
  11. Replies
    15
    Views
    2,082

    problems with header files

    I have 3 files
    main.cpp
    random.cpp
    random.h

    they contain this:

    main.cpp -
  12. Replies
    1
    Views
    1,321

    never mind, good old tutorials helped me out.

    never mind, good old tutorials helped me out.
  13. Replies
    1
    Views
    1,321

    inline functions

    Quick Question:
    Can inline functions 'use' a protoype?

    E.G.



    inline func(blah);
    ...
    code
  14. Replies
    2
    Views
    942

    Thanks for that in-depth reply, Much clearer.

    Thanks for that in-depth reply, Much clearer.
  15. Replies
    2
    Views
    942

    Memory Allocation

    In my lecture notes it says


    double array[1000000]; //should take 8Mbytes

    When in fact this does not make an executable of 8mb, this it tells me though it does not say why and i was not at the...
  16. Replies
    1
    Views
    5,231

    cin.fail() function

    Ill throw my code at you first



    int menu(int &answer)
    {
    do {
    cout << "----Menu----" << endl
    << "1 something" << endl
    << "2 something" << endl
  17. Replies
    6
    Views
    1,327

    Yep that works thank you.

    Yep that works thank you.
  18. Replies
    6
    Views
    1,327

    Yeah i cant use getline :( This is homework given...

    Yeah i cant use getline :( This is homework given to me.
    Thanks for your help though, i know how the board feels about homework i just need a kick in the right direction this function in relation to...
  19. Replies
    6
    Views
    1,327

    cin.get problems

    I have searched the board but cant seem to find my problem sorry if im repeating old problems.

    I can not seem to get the first cin.get(numerator); to get its input, seems to like.. skip it.. i...
  20. Replies
    2
    Views
    847

    Thank you.

    Thank you.
  21. Replies
    2
    Views
    847

    do,while problems

    here is my code:



    int menu(void)
    {
    int answer = 0;

    do {
    cout << "----Menu----" << endl
  22. Replies
    0
    Views
    2,152

    Australian Uni (Wollongong)

    More specific to Wollongong UNI, I was wondering what the costs are these days for a person to attend the uni in the course of Computer Science? Besides the books etc the cost of the course is what...
  23. Replies
    7
    Views
    1,575

    Windows Xp Dev-C++ 4.9.8.0

    Windows Xp
    Dev-C++ 4.9.8.0
  24. Replies
    7
    Views
    1,575

    I only hear bad things about scanf... thanks for...

    I only hear bad things about scanf...
    thanks for all your help though... :)
  25. Replies
    7
    Views
    1,575

    here is my new code, if anyone has any more help...

    here is my new code, if anyone has any more help thats great, if not no worries.



    #include <stdio.h>

    int main()
    {
    char username[9], /* user names can not exceed higher then 8 characters...
Results 1 to 25 of 48
Page 1 of 2 1 2