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, and the school server is now down so I can't access the lect...
[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 else in case it was due to some sort of internal name collisio...
[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 what it will be covering. I know that I really do not unders...
[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? Define a class called Set that stores integers in a dynamica...
[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. system(wmic csproduct get uuid > test.txt); It prints in...
[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 now I'm having trouble sorting arrays. I can sort one array,...
[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 program isn't working, can someone help guide me in the rig...
[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=0; j<log i; j++) { x++; } }
[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's or two O's in the same row, it lags for like 30 secs. I h...
[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 that outputs text, letter by letter, with a slight delay in bet...
[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 calculated is like this: 1. Begin by assigning 6 organisms...
[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 want it to replace the 1-9 when I enter the number. I have it...
[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, which is a short pattern of DNA. You will write a function...
[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: Write a program that uses a two dimensional array to show the s...
[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 draw these stuffs and I want to know if there is any source...
[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 uses TextNow to get and send messages and triple clicks mes...
[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 same row as another X or an O in the same row as another O i...
[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't work for apple exactly.
[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. I want to be able to keep the user from going any further ...
[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.