Search:

Type: Posts; User: Goldrak

Search: Search took 0.00 seconds.

  1. Thread: Clear Screen

    by Goldrak
    Replies
    1
    Views
    898

    Clear Screen

    Hi!

    Any ideas on how to make a clear screen function without using the system("cls") command?


    Thanks
  2. Replies
    3
    Views
    3,029

    Hi! The program resumes to this: Parking...

    Hi!

    The program resumes to this:

    Parking Lot.

    The surface of the park becomes damaged over time, having holes on it. To repair this event and cover the holes, a machine is used to cover them...
  3. Replies
    3
    Views
    3,029

    C++ in linux problem (long program)

    Hi

    A program i made runs well in windows but when i run it in linux it doesn't work properly. Any ideas??

    Thanks



    #include<iostream>
    #include<fstream>
  4. Replies
    7
    Views
    1,685

    :D Hhehehe. It worked!!!Just inserted a...

    :D

    Hhehehe.

    It worked!!!Just inserted a flush in the right spot:



    if(c.cod_seg == cod)
    {
  5. Replies
    7
    Views
    1,685

    Hi! I went throught the code, listing the...

    Hi!

    I went throught the code, listing the values of the writed line of the test2.bin file and they are changed, but after the program closes (fa.close and fb.close) and i list the whole file the...
  6. Replies
    7
    Views
    1,685

    This seems to work just fine. The function runs...

    This seems to work just fine. The function runs and changes the test1.bin file but doesn't change the test2.bin one.

    :(
  7. Replies
    7
    Views
    1,685

    Problem with file writing

    Hi!




    void test (int cod)
    {
    fstream fa, fb;
    sSeg s;
    sCon c;
  8. Replies
    4
    Views
    3,257

    Great!! Thanks :)

    Great!!

    Thanks

    :)
  9. Thread: Need Help

    by Goldrak
    Replies
    17
    Views
    1,750

    Great!! It worked just fine. Thanks :)

    Great!!


    It worked just fine.

    Thanks

    :)
  10. Replies
    4
    Views
    3,257

    char vs int - program crash!!

    Hi!

    How do i prevent a program to crash if it expects and int and receives in the input a char?

    and vice versa?

    Thanks
  11. Thread: Need Help

    by Goldrak
    Replies
    17
    Views
    1,750

    In a menu code as the following: void...

    In a menu code as the following:




    void menu()
    {
    char opcao;

    do
  12. Thread: Need Help

    by Goldrak
    Replies
    17
    Views
    1,750

    yes, you're right!! This was the problem,...

    yes, you're right!!



    This was the problem, i was appendind the fa and fb files instead of truncate them.

    Thanks a lot!!

    :)
  13. Thread: Need Help

    by Goldrak
    Replies
    17
    Views
    1,750

    I identified where the problem seems to be: ...

    I identified where the problem seems to be:



    fi.clear();

    fi.seekp(0);
    fa.seekg(0);
    fb.seekg(0);
  14. Thread: Need Help

    by Goldrak
    Replies
    17
    Views
    1,750

    Hi! Well it's this way: the program takes a...

    Hi!

    Well it's this way:

    the program takes a file:


    0192837465

    breaks it in half, copying it to an array each:
  15. Thread: Need Help

    by Goldrak
    Replies
    17
    Views
    1,750

    Hi again! Suppose i have a function to sort a...

    Hi again!

    Suppose i have a function to sort a file.
    I copy half the file to an array and the other half to another array.
    Then i sort the arrays (with bubble sort) and copy each of them to a...
  16. Thread: Need Help

    by Goldrak
    Replies
    17
    Views
    1,750

    Close. I'm Portuguese. :)

    Close.

    I'm Portuguese.

    :)
  17. Thread: Need Help

    by Goldrak
    Replies
    17
    Views
    1,750

    Yes, that's right. Would never got it on my...

    Yes, that's right.

    Would never got it on my own!

    Thanks a lot!!!

    :D
  18. Thread: Need Help

    by Goldrak
    Replies
    17
    Views
    1,750

    Need Help

    Hi!

    I'm writing a program but i'm having some trouble in a function.
    My problem is that when the function goes into the bolded cycle below a second time it doesn't enter the cycle and doesn't...
Results 1 to 18 of 18