Beginners - April 2013 (Page 36)

by suraya
random number generation
 
hey guys, my question is quick and simple. how do i generate random numbers but between 1 and 52? i know how to generate numer between 0 and 52 but no idea h...
[4 replies] Last: Try this #include <iostream> using std::cout; using std::endl; #in... (by eyenrique)
by elmurp
How do I make a function that produces a linked list?
 
How would I go about making a linked list by using a void function? I'm receiving my input from a text file, and I can manually go through and make the linked l...
[2 replies] Last: > How would I go about making a linked list by using a void function? ... (by JLBorges)
by Aceix
Simple SFML problem here
 
Hi all, I know that this problem is a bit simple but I still havn't fixed it. Now what I'm trying to do is to draw a circle not by hard-coding but based on mous...
[3 replies] Last: Thanks, Working on it. Aceix. (by Aceix)
by gladi
insertAt front in a duobly linked list
 
Hi Everyone, I tried to insert a node at front in doubly linked list and I think I did the first part when the list isEmpty(). But the second part I was trying...
[1 reply] : Why do you have to go till end for adding in front of the linked list.... (by writetonsharma)
by KevinP
Using a string array and int array together.
 
I have a list 51 locations and there populations and I have the names of the states going into one array and the populations going into another array. I am usin...
[1 reply] : You need to save the index of the highest and lowest populations. #i... (by Yanson)
Error message
 
This error message pops up, im confoused fatal error: iostream: No such file or directory compilation terminated. #include <iostream> using namespa...
[2 replies] Last: have u checked your source file extension? make sure it is .cpp and no... (by GaGoKoYa)
by SlatA
Wav file to stereo file. HELP!
 
I was wondering if anyone could help me with a wav file. I need to change it into a stereo file. Please help
[5 replies] Last: Does yours resemble this at all? I'm pretty confused. #include <ios... (by melissa9675)
Converting a mono wav file to stereo
 
Help Please! Here is the file... I know that I have to create 2 channels and a processor that can handle a stereo signal but I'm not sure what the exact code...
[no replies]
by tomazi
For loop adding to a variable
 
I am trying to create a loop that adds 1 to a int variable every time the if statement is true But while testing the code even though the if statement is tru...
[7 replies] Last: If all we want to do is increment left_jab_count when the if statement... (by Karla)
by jc4bs
Using a Loop to Call a Function From Class Objects Stored in a Dynamic Array
 
I am writing a code that utilizes a dynamic array to store objects of a class with various functions and variables. Let's say that I wanted to make a loop to ca...
[1 reply] : array .function() is right, your other logic must be off (by Zaita)
no match for operator
 
Hi, somebody please help me solve this, I get an error when compiler looks at while statement. (I've created the file and it is in the same directory, so i...
[4 replies] Last: What is the new error then??? Also, you didn't initialize sum to 0, a... (by fg109)
Class Multiple Inheritance
 
So I have gotten a lot of help from this forum. I want to thank you ahead of time. I am in the last parts of my C++ class and we are into Multiple Inheritance o...
[4 replies] Last: So this is just an idea of passing down the public from class to class... (by Michael Kane)
claculator
 
Hi, I've got a problem, on my calculator: jastek JASCG1, i didn't find how to do an algorithm. If someone know how to do it or know if a manual exist please rep...
[3 replies] Last: Sorry but i try to find an english forum where i can explain my probl... (by Danny Toledo)
Cast from char to int loses precision
 
I have those program and everything I want to cast a char to ASII I get an error #include <iostream> #include <cstdlib> using namespace std; void conve...
[2 replies] Last: It all looks a bit odd. OriginalChar is an array of characters. Whe... (by Chervil)
Need help with program
 
I'm trying to write a simple bowling program and cannot figure out how to give a char a value. For instance, user inputs x for strike and then 30 (for now) is c...
[4 replies] Last: Right, but there's no way for a user to input x and then the computer ... (by jsmith1)
Begginger help, strings.
 
I need help writing a function, we'll call it NumDouble. It takes a string S as an argument and returns the number of times there is a double-letter inside it.....
[4 replies] Last: What you have is a good basis - you're working your way through the st... (by jim80y)
Help with String Functions. almost got it...i think
 
I'm working on this string function but i cant get it to work. I almost have it but i'm getting these errors.... 1 error C2065: 's' : undeclared identifier 2 ...
[11 replies] Last: for(unsigned int nd=1; nd<s.length( ); n++); { if (S[nd-1]==S ); ... (by agnophilo)
What is the biggest data type?
 
I'm trying to write a code that converts a number to scientific notation. For this I need a bigger data type than int that can store large numbers + large decim...
[2 replies] Last: For future reference (scroll to the chart): http://cplusplus.com/doc/... (by agnophilo)
Binary Tree
 
I am writing code for a binary search tree that gets input from a text file and sorts it into a binary tree.. I have a pre-order, post-order, and in-order funct...
[no replies]
Need help with simple recursive function
 
Hey all, I am looking for help in understanding how recursive functions work. What I want is a function to be given two integer paramaters x and n, where the re...
[7 replies] Last: I'm working on another recursive function. I want to use ONLY recursiv... (by maniacle)
April 2013 Pages: 1... 3435363738... 83
  Archived months: [mar2013] [may2013]

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