Search:

Type: Posts; User: Solarwin

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    8
    Views
    1,447

    c++ binary tree

    hi, there.
    I am not sure how to build the tree with values:



    struct Node *root = 1 root->left = 2
    root->right = 3
    root->left->left = 4;
    root->left->right = 5;
  2. Replies
    2
    Views
    2,308

    menu with conio.h help needed

    Hey guys,
    I am trying to make cool main menu,but i am not sure how to do this correctly.
    so i am trying to make something like this:



    I hope you get the point. ;)
    This is what i have done so...
  3. Thread: elapsed time

    by Solarwin
    Replies
    14
    Views
    2,065

    seconds are good for me.:) I checked with...

    seconds are good for me.:)
    I checked with stopwatch.
  4. Thread: elapsed time

    by Solarwin
    Replies
    14
    Views
    2,065

    because it showed my 0.00123 seconds. But it...

    because it showed my 0.00123 seconds. But it doesn't show me the right result anyway:/
  5. Thread: elapsed time

    by Solarwin
    Replies
    14
    Views
    2,065

    I made this. What do You think guys? it starts...

    I made this. What do You think guys?
    it starts counting when user enter enything.

    #include <iostream>
    #include <ctime>
    #include <cmath>

    using namespace std;

    int main(){
  6. Thread: elapsed time

    by Solarwin
    Replies
    14
    Views
    2,065

    elapsed time

    Hi,
    I am looking for a function or any example that shows elapsed time in seconds and minutes. I didnt find any solution for both OS Win and Linux. I am looking for example that works for both - win...
  7. Replies
    3
    Views
    926

    I made it ''by hand", but i have question: Why...

    I made it ''by hand", but i have question: Why it starts from 98 instead of 99 if i write a line - cout<<endl; in my for loop?





    #include <iostream>

    using namespace std;
  8. Replies
    3
    Views
    926

    linking/mixing for loops?

    Hi,
    I am reading Alan's book and i was trying to make this problem solving exercise. This might be called as nested loops, but i dont understand them. Anyway, i am trying to write program that...
  9. Replies
    15
    Views
    1,544

    No, i didnt write by myself thats why i dont know...

    No, i didnt write by myself thats why i dont know how to change this. If it wouldnt be my homework i wouldnt do anything so advance for myself at the moment. I am reading Alans book and trying to...
  10. Replies
    15
    Views
    1,544

    Thanks for ur explanation but i dont get it...

    Thanks for ur explanation but i dont get it really i tried smth like
    currentTurn = rand() % 2;
    if(1 == "user")
    {
    PlayerTurn();
    0 = "pc";
    }
    else
    {
    ComputerTurn();
  11. Replies
    15
    Views
    1,544

    This could be the way: rand() % 2; but i dont...

    This could be the way:
    rand() % 2;
    but i dont know how to mix it with this program.:/
  12. Replies
    15
    Views
    1,544

    it might be too hard to change, but i have...

    it might be too hard to change, but i have another question.-How to determine who will start to play first by random number generator?
  13. Replies
    4
    Views
    1,063

    if (age>=10 && age

    if (age>=10 && age<18)
    {
    cout<< "Your age is between 10 and 17!";
    }
  14. Replies
    15
    Views
    1,544

    Sounds good, i am not sure how to do that.any...

    Sounds good, i am not sure how to do that.any suggestions?
  15. Replies
    15
    Views
    1,544

    How I could not imagine that.thank u both! :)

    How I could not imagine that.thank u both! :)
  16. Replies
    15
    Views
    1,544

    1.ok i will check that. i dont get it, didn't...

    1.ok i will check that.

    i dont get it, didn't i inicialized array like this?:


    char koord[3][3]={{0,0}};
  17. Replies
    15
    Views
    1,544

    some help needed :/

    This little game almost works good , but i dont know how to make it visually better and another problem is my program doesn't show who wins, the game never ends:/

    Hope for your help:)
    This is my...
  18. This is how far i am. Looks like months are...

    This is how far i am. Looks like months are working, but my if statement is not right in the main. What is the mistake or how to make it right?:/


    #include <iostream>


    using namespace std;
    ...
  19. This is the correct assignment. It's my school...

    This is the correct assignment. It's my school homework. My teacher wrote that.
    Seems like my teacher also thought that just the day and month are important.
    Could u write me a line for function...
  20. Maybe i could use array like this: int months...

    Maybe i could use array like this:

    int months [12] = {31 , 28 , 31 , 30 , 31 , 30 , 31 , 31 , 30 , 31 , 30 , 31};

    and make function with similar meaning to :


    month [3] -...
  21. 1.As i am total newcomer about functions, could u...

    1.As i am total newcomer about functions, could u give me example how excatly i need to call it in main?
    2.I dont think so, for example, my previous birthday party :D was in 2012 not 2013 which is...
  22. function to find out for many days have passed since last birthday.need help.

    Hello,
    I have to write a c++ program with my own function which consists of two parametrs (day, month). Function have to return number of days since the begining of this year. Using this function i...
  23. THANK YOU very much u helped alot, Cat.:)

    THANK YOU very much u helped alot, Cat.:)
  24. I am very new to this, i tried many ways all of...

    I am very new to this, i tried many ways all of them ended with -1.:/

    int cikCipari (int skaitlis){

    int cik = 0;
    //int skaits = 0;
    skaitlis = 0;


    while (skaitlis != 0){
  25. Thanks, but i dont get it what do i have to do...

    Thanks, but i dont get it what do i have to do with my if to solve second issue.
Results 1 to 25 of 50
Page 1 of 2 1 2