- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 2
- Downvotes Received
- 3
- Posts with Downvotes
- 1
- Downvoting Members
- 3
7 Posted Topics
[QUOTE=iamsibi;1024355]I had a problem with my turbo C++ which would close itself after every execution.(Not the getch problem) After somehow solving this fault and the full screen problem, I tried out a program to check if my C++ is fine. Everything is fine except for the Output screen which seems …
If you try looking harder its very easy to find, I will not post answers as it is against the rules of these forums, but try these links... they do provide the answer [URL="http://docs.linux.cz/programming/algorithms/Algorithms-Morris/n_ary_trees.html"]http://docs.linux.cz/programming/algorithms/Algorithms-Morris/n_ary_trees.html[/URL] or [URL="http://books.google.co.uk/books?id=k0vUmjua41wC&pg=RA1-PA466&lpg=RA1-PA466&dq=n-ary+tree+height+algorithm&source=bl&ots=KLjuHJrjEI&sig=Kv6g5U2_qJgA2M4qOblD1Q4Zygw&hl=en&ei=7MDhSvGpA4_54AbGudGRAg&sa=X&oi=book_result&ct=result&resnum=10&ved=0CCMQ6AEwCQ#v=onepage&q=n-ary%20tree%20height%20algorithm&f=false"]http://books.google.co.uk/books?id=k0vUmjua41wC&pg=RA1-PA466&lpg=RA1-PA466&dq=n-ary+tree+height+algorithm&source=bl&ots=KLjuHJrjEI&sig=Kv6g5U2_qJgA2M4qOblD1Q4Zygw&hl=en&ei=7MDhSvGpA4_54AbGudGRAg&sa=X&oi=book_result&ct=result&resnum=10&ved=0CCMQ6AEwCQ#v=onepage&q=n-ary%20tree%20height%20algorithm&f=false[/URL] if you come up with a simple code conclusion/attempt feel free to post it …
you are right in sayin that the: > inbox string is a pointer[*N], > the other [N] is the array element. may I also mention this code is VERY MUCH incorrect, did yo write this? I would recommend ALOT of changes.
I reached another part of my program where I have the following statement which prints out these values on screen. printf(" %d %d %d %d %d %d %d(%.1foC) %d %d(%s) %d(%.2f) %d(%s) %d\n", year, month, day, hour, minutes, evtStart, temperature, tempDegC, checksum, basicSelfTest, bstResult, batteryVolt, (float)(batteryVolt*0.0198), powerUpCode, statusCode, timeElapsed); I …
hi, you were missing a semicolon ";" here in your else statement [CODE] else { cout<<"\n\nnumber out of range\n\n"; cout<<"try again?y or n:" ; <-include the brace as I have done } [/CODE] also, dont include ".h" in your header [CODE] #include<iostream> [/CODE] also, no matter what number I type, …
Hi, simple solution would be this boolean method... returns true if it is prime, false otherwise... [CODE] #include <cmath> bool IsPrime(int num) { if(num == 0) return true; num = abs(num); for(int i = 2; i <= sqrt(num); i++) if(num % i == 0) return false; return true; } [/CODE] …
I found Niek_e had a very nice link but try [URL="http://www.cfanatic.com/forumdisplay.php?f=15"]http://www.cfanatic.com/forumdisplay.php?f=15[/URL] hope this helps as I began here and found alot of useful links
The End.