Beginners (Page 61)

Big O of recursive functions.
 
Hey guys I have several functions that I'm not sure if I got the big O for them correct. Ok for th...
[2 replies] Last: They're actually all linearithmic. Besides the time to perform the use... (by helios)
Counting sort on Int array of 1 million+
 
Hello, I am trying to read a file of more than 1 million ints and use counting sort to sort it (I'm ...
[1 reply] : You can't create an array on the stack whose size is a variable or dep... (by helios)
by Jhub
loops and more loops plus a little probability
 
I have trying to write this code for days now with little success. I am trying to create a code tha...
[5 replies] Last: I finally understand what I need to do let's suppose hold at number i... (by Jhub)
by wooly
Swap 2 numbers without temp variable! Please help!
 
I am working on an assignment and I need help with swapping 2 numbers without the use of a temporary...
[5 replies] Last: Try the following example, it should work. #include <iostream> #inc... (by Victor89)
Using a char arrays that change inside class members (1,2)
 
EDITED and UPDATED On Sept 27 at 2PM I am currently trying to make a tic tac toe game that uses c...
[22 replies] Last: Mostly syntax errors like: error C2143: syntax error : missing ')' be... (by tamirat)
by Ch1156
Why is this not working?
 
Ok so I am making something in SFGUI but there is one thing that isnt working, this line: source(...
[10 replies] Last: Ok I got it working, I added CropSprite in the beginning of UserInput(... (by Ch1156)
classes and arrays combined
 
I'm a bit confused with arrays with classes in them how would I let's say we have a list of boxes ho...
[2 replies] Last: search all of them for it until you find it. Now I kinda know how than... (by Tristan101)
Divide by zero workaround not working(basic C++ calc)
 
Hi, I just started learning C++ the day before yesterday. I am attemptinng to create a basic calcul...
[9 replies] Last: Use a switch statement for your menu of selecting the operation (by novellof)
Recursive function is playing tricks on me..
 
I am trying a write a function which displays the element in an AVL_tree. struct node{ int va...
[no replies]
Need Help With Assignment
 
Hi, this is my first time taking C++, I registered for the course late and I missed a lot, trying to...
[3 replies] Last: Ganado, Thanks for your help, I got it fully functional now. I went ... (by thatfunnydude)
Random Number Generator
 
Hi, I've scowered the forums for finding how too implement the random generator function inside of a...
[1 reply] : Call srand once at the beginning of main, and use rand wherever yo... (by Peter87)
by rofler
Binary to Decimal Converter
 
Hello everyone. I've been working on a binary to decimal converter, and it works for most numbers, b...
[4 replies] Last: There is a built-in function that could be used for this, I show an e... (by giblit)
Due Tomorrow, please help quick. Converting Fahr to Cent, using only calls in main function.
 
So I've been working on this problem ALL WEEK LONG, and I cannot for the life of my figure out what ...
[6 replies] Last: You could do something like printf("...%3.3f...) the number before p... (by giblit)
Problems with struct?
 
How do i make a struct which points itself? and also contains a pointers 2 other stuct of the same ...
[17 replies] Last: I've tried implementing it as an double linked list, where instead of ... (by DrJones)
What am I doing wrong? While loop and if statements
 
This is for an assignment. I've been at it for hours and hours yet can't seem to get it right. Firs...
[3 replies] Last: Thanks! I was looking at it the wrong way. You've helped alot. (by patropatropatro)
keep track of pointers in double link list?
 
I am trying program a doubled linked list using a struct which consist of the node struct node{ ...
[1 reply] : I would maybe use a recursive insert instead. Something like this (I h... (by fafner)
by pjalli
A little help with functions
 
Can someone help me with making this look nice before I turn my project in? #include<iostream>...
[1 reply] : I tried it this way, but i get one error in it that I don't understand... (by pjalli)
Reading Files
 
Is there any way to get a specific line from a text file using f stream? Say I have a list of name...
[3 replies] Last: thanks I figured it out (by Tristan101)
Function for cout :(
 
Using a function to output values, double output(int& r1s, int& r2s, int& r3s, int& r4s, double ...
[3 replies] Last: Depending on what type r has you should either remove the * or place i... (by Peter87)
Loop question
 
I am running into a issue with the loops. I need the program to give the user two chances to enter t...
[10 replies] Last: the latest code i posted worked I was just giving it so people could s... (by smokebaca)
Pages: 1... 5960616263... 105
  Archived months: [aug2014]

Cannot post in this page. To post a new message, go to the first page.