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;
Type: Posts; User: Solarwin
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;
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...
seconds are good for me.:)
I checked with stopwatch.
because it showed my 0.00123 seconds. But it doesn't show me the right result anyway:/
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(){
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...
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;
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...
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...
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();
This could be the way:
rand() % 2;
but i dont know how to mix it with this program.:/
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?
if (age>=10 && age<18)
{
cout<< "Your age is between 10 and 17!";
}
Sounds good, i am not sure how to do that.any suggestions?
How I could not imagine that.thank u both! :)
1.ok i will check that.
i dont get it, didn't i inicialized array like this?:
char koord[3][3]={{0,0}};
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...
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;
...
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...
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] -...
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...
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...
THANK YOU very much u helped alot, Cat.:)
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){
Thanks, but i dont get it what do i have to do with my if to solve second issue.