Beginners - November 2012 (Page 45)

Initializing Variables
 
The title says it all. I just want know what this means and how you would use it. Thank you.
[2 replies] Last: Thank you. (by closed account LN7oGNh0)
by Hotice
I call bools**t (1,2)
 
I had code that was working, when the loop was more complicated (I thought dragging in windows.h would improve the user experience. (Boy was I wrong, at least f...
[28 replies] Last: This solved the problem! I got too much into the analysis, and started... (by Hotice)
Help with Baseball Program
 
Hey all I'm having some real trouble wrapping my head around how to go about this assignment. I have to create a baseball program that shows a baseball players ...
[5 replies] Last: Those numbers are just examples the numbers will be something can be c... (by Raioner)
by skarla
sdl
 
As everyone knows,i am code 3 weeks in SDL and some few months in c++. I have shown many games that i have made here.Today i made a pacman game. So i would li...
[4 replies] Last: Yea sure. But do you want to make programs together and i can share yo... (by skarla)
so where should what linker setting find my header and/or source files
 
i need to learn to put my code into headers and source, just i have no idea how to use the linker, i managed to get SDL to work, but i dont know how i did it, b...
[2 replies] Last: i might do but i dont kno the words :/ (by devonrevenge)
help with my code
 
i tried to write a program that ask for number (int) and digit (char) and brings back how many time the digit appears in the number. for example: the user put 1...
[2 replies] Last: thanks a lot! (by ly712ig)
Can anyone tell me whats wrong with this code
 
So I finished it but it wont run. This is the code I have. #include <cstdlib> #include <iostream> #include <math.h> using namespace std; int main...
[2 replies] Last: #include <cstdlib> #include <iostream> #include <math.h> using names... (by skarla)
who can help me? :(
 
i have these header files: #ifndef __LEAGUE_H_ #define __LEAGUE_H_ #include <iostream> #include <string> #include <vector> #include <cstdlib> #include...
[no replies]
output from strtok
 
I have string say "Hello How are You". After I apply strtok() function to it in want to store it in and array such that Array ="Hello"; Array ="How"; and s...
[16 replies] Last: Thank You Very Much (by Farrukh12)
by drix93
What happens if a DO WHILE statement doesn't meet its conditions?
 
I wrote a program and a small section of it contains a do while statement, it is supposed to search a file for matching strings then grab that information and o...
[no replies]
Binary tree element insertion
 
So I'm having problems with inserting new nodes into a binary tree. What I need to do is depending on inputs add a left or right node to a specific parent node....
[3 replies] Last: Thanks, works like a charm now :) Wasn't familiar with the concept of ... (by Scimitar)
Newton's solve equation
 
How to create A program that has algorithm that can be used to solve an equation of form f(x) = 0 using a sequence of approximation eg. To get the next term in...
[11 replies] Last: how to solve in the situation it compiles but doesn't give the right s... (by princesslumy)
Counting the occurrence of an element within an array using recursion
 
Define a function int occurrences(int A , int size, int key) that counts the number of times a key value occurs in an array. Write one version of this function ...
[2 replies] Last: Thank you so much for your help! (by ThirdAge)
Unexpected behavior from strcpy/strtok?
 
Hey folks, I have a program that is meant to read in lines from a text file, and split them into tokens around ", " using strtok(). So for instance, "WSAD, 1234...
[6 replies] Last: Because C++ turned up with new in the eighties, and also brought wit... (by Moschops)
any one help me to solve this programme
 
1. Write a program that fill two arrays rad and len by random generator. Rad array represents the (radius) of Cylinder, and array len represents length of t...
[1 reply] : Do you have anything coded so far? If not what don't you understand ab... (by Raezzor)
visual studio is not compiling..
 
hi! i started my programming studies not a long ago. we work on c++ and somehow the program is not compiling on my computer. the software is legal, i installed ...
[4 replies] Last: yes!!! this is it!! thanks a lot! (by lior mor)
inFile and outFile from while loop
 
I am attempting to write data to a file from a while loop and then read the file back to the output screen. All three loops write to the file BUT it is only the...
[2 replies] Last: There are a couple of errors that stand out above. 1. the file is clos... (by Chervil)
Linker Error-Network Program
 
I made a network program for a server but my compiler is reporting linker errors for every winsock function.can someone help me,here is my program #include...
[14 replies] Last: OK problem solved (by Pter0dactyl)
Writing/Reading data to/from a file from a while loop
 
I am attempting to write data to a file from a while loop and then read the file back to the output screen. All three loops write to the file BUT it is only the...
[6 replies] Last: May I ask, when you share your code, please use the code tags, using t... (by Chervil)
Need a C program for following question ?
 
You have ten boxes, each of which contains nine balls. The balls in one box each weigh 0.9pounds;the balls in all the other boxes weigh exactly one pound each....
[1 reply] : http://cplusplus.com/forum/beginner/1/ (by Fransje)
November 2012 Pages: 1... 4344454647... 75
  Archived months: [oct2012] [dec2012]

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