General C++ Programming - November 2015 (Page 7)

Trouble with recursion
 
Hey all, I'm kind of in a predicament here. My C++ class was canceled because the teacher was sick, ...
[1 reply] : For recursion you need to replace the for loop with a call to the func... (by coder777)
SWAP error
 
Ok, this error comes and goes with using the swap command. I've tried changing the i to something el...
[2 replies] Last: Thank you! (by technologist)
I need help writing this!
 
I am a beginning computer science major and coming up on my final lab exam which is unknown exactly ...
[1 reply] : http://www.cplusplus.com/forum/general/179115/ Duplicate postings are... (by closed account 48T7M4Gy)
HEEEELP a student out. pleeeease!
 
Hey guys, I'm new C++ and I was handed this assignment by my professor. Who can help me with it? ...
[1 reply] : So what have you tried? By the way your size member variable doesn't ... (by jlb)
Help !
 
i want help from any body
[3 replies] Last: #include <iostream> #include <stdio.h> #include <string.h> #includ... (by adel eshtaya)
Finding UUID in text file
 
Been trying to figure this out for hours. In my code I am generating a text file by this command. ...
[4 replies] Last: Thank you, that worked out fine. (by SeeLemon)
Sorting Parallel Arrays
 
Hello, So I've been working on this program for days. I was finally able to read the text file, but ...
[6 replies] Last: You've got to user your brain now and figure out what 'swap' means and... (by Duthomhas)
How to find the longest increasing sublist?
 
I need to find the longest increasing sublist of a set of mountain elevations. I do not see why the...
[5 replies] Last: Perhaps you can explain what insert and copyList are supposed to b... (by cire)
by Sobia
Time complexity
 
What will be the time complexity for each step in this snippet? for(i=1; i<n; i=i+i) { for(j=...
[3 replies] Last: It doesn't matter what n is. What matters is n→infinity. The outer ... (by Duthomhas)
by bsc123
Tic Tac Toe help
 
My Tic Tac Toe is working almost perfect. I made the player vs player work although when I put two X...
[1 reply] : I would also like to make it replace the board with X's and O's rathe... (by Chervil)
Does anyone know a way to actively modify text output speed?
 
I'm trying to figure out a way to actively adjust text output speed. I currently have a function tha...
[2 replies] Last: Once again, my hero to the rescue. Thanks big dog! (by turtlesavage)
Population C++ Calculator
 
I would like to create a code which could simulate population growth. The way population growth is ...
[1 reply] : I'd probably start by creating a class that describes a population and... (by Shadowwolf)
by bsc123
replacing char in tic tac toe
 
how can I replace the 1-9 with X's and O's on the tic tac toe board without reprinting the grid. I w...
[3 replies] Last: Perhaps you're right, though it still isn't entirely clear to me. Some... (by Chervil)
need help to write the code for the function
 
Write your question here. print_occurs: The third task is to read in a motif from the keyboard,...
[1 reply] : I think you should read this first. http://www.cplusplus.com/forum/beg... (by Thomas1965)
sorting array!
 
Hello there, I'd appreciate you helping me figure out the mistake in my HW. The question says: Wri...
[5 replies] Last: What exactly is the plan that's driving your program? Did you prepare ... (by closed account 48T7M4Gy)
by yj1214
Good graphical math sources?
 
I'm starting to learning about drawing circles, waves etc. using OpenGL and it involves some math to...
[1 reply] : https://www.khanacademy.org/math/geometry (by cire)
Program stuck in a loop
 
I've been messing around trying to make a program that lets me talk to cleverbot through texting. It...
[1 reply] : Okay well I've figured out that for some reason the program works fine... (by Bingocat4)
by bsc123
Tic Tac Toe lag problems
 
When I run this it works but the detection for winning horizontally makes it so if I do an X in the ...
[no replies]
Windows to Mac Conversions
 
what is the equivalent of system("CLS"); on a mac? I use it all the time on windows, but it doesn'...
[1 reply] : "clear", but you shouldn't do that anyway. (by Duthomhas)
Bool functions within an Array
 
Hello, I'm not exactly sure if my code is correct in the bool 'isTriangle' (Lines 83-94) function...
[1 reply] : I'm not exactly sure if my code is correct in the bool 'isTriangle' (... (by cire)
November 2015 Pages: 1... 56789... 26
  Archived months: [oct2015] [dec2015]

This is an archived page. To post a new message, go to the current page.