Search:

Type: Posts; User: vril

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    903

    Is there any source code of the game, bacause I...

    Is there any source code of the game, bacause I cannot find any?
  2. Replies
    6
    Views
    903

    You, guys, are awesome! At first, I couldn't...

    You, guys, are awesome! At first, I couldn't figure out how the floodfill algorithm can answer my decision problem (whether there is a connected area on my board), but I came up with an idea: I could...
  3. Replies
    6
    Views
    903

    Are you sure? I could not find any function...

    Are you sure? I could not find any function called "floodfill". Can you link me please? As I understand, this kind of code concerns graphics. Is it certain that it can also apply to my problem?
  4. Replies
    6
    Views
    903

    determine if adversary pawns are captivated

    Hey everyone. I am trying to write a simple application that resembles the game "Computer Co", but I am stuck with this problem: If the board is represented by a dimensional array, with what...
  5. Replies
    16
    Views
    10,282

    How come? I had run it before and worked fine....

    How come? I had run it before and worked fine. How about that?

    res="$( last | grep -v "wtmp" )
    users="$( echo $res | awk '{print $1}' | sort -u )"
    for user in $users; do
    totmin=0
    ...
  6. Replies
    16
    Views
    10,282

    Sorry, you are right. $res holds the output of...

    Sorry, you are right. $res holds the output of "last".

    res=$( last )
    Anyway, let's focus on the other problem now.
  7. Replies
    1
    Views
    1,069

    copy list of arguments

    Hi. I am trying to copy a list of arguments that are separated by spaces and follow a specific flag (eg -l) to a string. How can I achieve that in bash? Thanks in advance.
  8. Replies
    16
    Views
    10,282

    Let's say there are the dates " April 1 and March...

    Let's say there are the dates " April 1 and March 31". If I use sort in day number field to hold only one occurence of each date, March 31 will be put prior to April 1, which is wrong.
  9. Replies
    16
    Views
    10,282

    users="$( last | grep -v "wtmp" | awk '{print...

    users="$( last | grep -v "wtmp" | awk '{print $1}' | sort -u )"
    for user in $users; do
    totmin=0
    qq=$( echo "$res" | grep "$user" | grep -v "still logged in" | awk '{print $NF}' | sed...
  10. Replies
    16
    Views
    10,282

    Thanks a lot! Problem solved! Now I would like to...

    Thanks a lot! Problem solved! Now I would like to deal with another problem if I don't bother. How could I show the number of sessions for the past 10 days? An approximation would be, at first, to...
  11. Replies
    16
    Views
    10,282

    No, it has to be in bash. Thanks anyway.

    No, it has to be in bash. Thanks anyway.
  12. Replies
    16
    Views
    10,282

    Thanks, but I need to find the total login time...

    Thanks, but I need to find the total login time of every single user displayed by "last", not of particular one.
  13. Replies
    16
    Views
    10,282

    total login time of each user in last

    Hi everyone. I would like to write a script in bash that displays the total login time of every single user shown by unix "last" command, regardless of any different machines he connects from. How...
  14. Replies
    7
    Views
    2,112

    How do you compile for release? From Project->...

    How do you compile for release? From Project-> Properties, as I have already done? Why, then, do I get the exact same error?
  15. Replies
    7
    Views
    2,112

    As a matter of fact, an executable file is...

    As a matter of fact, an executable file is generated in the Debug folder, which shows up an error window when I double-click it.
    What do you suggest? Compile it as release? I changed the...
  16. Replies
    7
    Views
    2,112

    Well, I followed the steps, but I got the error...

    Well, I followed the steps, but I got the error "PDB 'vc90.pdb' was not found with 'BFLib.lib(BF.obj)' or at 'C:\Users\USER\documents\visual studio 2010\Projects\database\Debug\vc90.pdb'; linking...
  17. Replies
    7
    Views
    2,112

    inserting a library in Microsoft Visual C++

    How is it possible to insert a .lib file in Microsoft Visual C++? Thanks in advance.
  18. Replies
    6
    Views
    3,493

    Well, I had to test another compiler simply...

    Well, I had to test another compiler simply (Microsoft visual C++ 2010).
  19. Replies
    6
    Views
    3,493

    I am using the Dev C++. I have also provided the...

    I am using the Dev C++. I have also provided the virtual functions implementations along with the child class definitions. I just removed them, when posting the code.
  20. Replies
    6
    Views
    3,493

    errors with virtual functions

    I have declared these classes, as below, but I get repeatedly the following compile errors. Could you explain to me what is wrong?


    class A{
    public:
    virtual void f1();
    };
    ...
  21. Replies
    12
    Views
    2,025

    I found it once again. It was because of...

    I found it once again. It was because of advance(it, n), which result in deleting the end node of the list. I corrected it with advance(it, n-1).
  22. Replies
    12
    Views
    2,025

    You were right. For some reason assertion...

    You were right. For some reason assertion fails...
    edit: I found it! When a passenger witout ticket disembarked, I forgot to decrement total passengers. I fixed it and the program doesn't crash...
  23. Replies
    12
    Views
    2,025

    I prefer to keep it as std::list . Is...

    I prefer to keep it as std::list<passenger *>. Is there any idea what causes the access violation and how it can be avoided?
  24. Replies
    12
    Views
    2,025

    I am not sure I fully understand you. How shall I...

    I am not sure I fully understand you. How shall I implement the copy constructor and assignment operator of the waggon class and how does this relate to the access violation errors? Could you show me...
  25. Replies
    12
    Views
    2,025

    Since n ranges from 1 to number of passengers,...

    Since n ranges from 1 to number of passengers, therefore within the limits of the list, there is no need for such an assert. I used std::advance, but I still get access violation. :(
Results 1 to 25 of 40
Page 1 of 2 1 2