Beginners - November 2013 (Page 63)

for Loop second interval
 
I have a question (hopefully its easy). I have a for loop with just a dot. I want to basically loop that for loop every 2 seconds(for example) so it'll b...
[1 reply] : #include<windows.h> //for Sleep() for(int i = 0; i < 5; i++) { c... (by Chriscpp)
Declaring void functions into another variables
 
have an enteroption function. In my main function im trying to declare the result of enteroption into a new variable. int EnterOption() { //Tell use to...
[4 replies] Last: I g have it solved manga.I deleted the EnterOption() in the beginning ... (by fahmankhan75)
need help starting this For Loop
 
this is the only thing i have as code distance = speed * time write a program that asks the user for the speed of a vehicle( in miles per hour) and how many ...
[3 replies] Last: [quote=djjuu16]how do you figure out the speed of a vehicle? [quote=d... (by cire)
Can't write objects to binary file .
 
HI! My program runs correctly , but I think instead of writing objects itself , it writes their address , Because when I run functions "SaveToBinary" and "LoadF...
[3 replies] Last: You absolutely must NOT write non-POD types to a file in this manner. ... (by Disch)
Amount of each letters in a book
 
The title sums it up. I need to know how many letters of each letter, uppercase and lowercase are in a book. This is what I have now. I need it so it doesn't pr...
[11 replies] Last: could anyone please help me? (by Joshcannon)
Pseudo Random Numbers in While Loop
 
Hey guys, I'm trying to create a simple game that is a duel between a user and dragon. The idea stemmed from the codecademy challenge and I decided to add a hit...
[2 replies] Last: It appears you forgot to set the random number seed. At the beginning ... (by CplusplusAcolyte)
What is wrong with this code for reading binary files?
 
What is wrong with this code for reading binary files? It compiles OK, but will not print out the file as planned. #include <iostream> #include <f...
[2 replies] Last: In the case of the first code, it shouldn't compile. There is no over... (by cire)
Complier Error on void
 
What is wrong with my int function? I'm trying to do a while loop but whenever ido it, it gives me an error saying "While expected before." I'm getting an error...
[5 replies] Last: I got my solution now :) Thanks guys :) (by fahmankhan75)
help
 
hello i need a programe using for loop to draw a lozenge pleas help
[no replies]
While Loop Confusion (help)
 
I'm trying to do a calculator, I have done the functions for the operators(+ , - , / , *) .. My question lies in my main() function in the while loop. AT t...
[4 replies] Last: Thank for the reply! I fixed it by doing it like this: while (optio... (by odannyc)
by Mayah
Output sorted array
 
Hi, I am writing a program where the user is asked to input values that should be stored in an array (a range of min 0 values and max 100 values). After user...
[2 replies] Last: Aceix, Thank you so much! Based on the global variables at the top, s... (by Mayah)
please help me --
 
Write a function multiple that determines for a pair of integers whether the second integer is a multiple of the first. The function should take two integer arg...
[8 replies] Last: I'm sorry but I don't see what i can comment. The code is so simple. I... (by lockandstrike)
Need help using a function in Main
 
I have created a function to identify if a number is prime or not. I need to then use the return value ( it's a boolian statement ) in my main program. How to I...
[19 replies] Last: You probably dont get 2 as a prime because of line 19. It should retur... (by giblit)
by Ausha
counting words in string and printing out longest word
 
In this task you can enter whatever sentence, words separated only with spaces, thats the task given to me, and then program counts how many words ar there in a...
[1 reply] : I believe I should use find function to find position of spaces, but s... (by Ausha)
Help with a decimal to binary issue.
 
Ok, this is an assignment question. I am not asking for someone to do my work. I have only been learning c++ for 7 weeks now. So i have this code to work o...
[5 replies] Last: Well, here I'm reiterating my first answer: std::string result; ... (by Chervil)
by algo89
Problem with float array
 
I have some problems with an array of type of float. I'm trying to program the Gauss elimination algorithm, but I get the problem that my compiler for some reas...
[no replies]
which better?
 
/// Lets say that I have a class "myClass" that containes a lot of funtions class myClass { /* Functions */ }; so I want to use these...
[2 replies] Last: Thanks Helios Still opened for more info (by closed account 28poGNh0)
by JAAFAR
does a dll created with VC++ 2010 EXPRESS work on target machines with no C++ installed in them ?
 
Hi all - New to this forum and to C++ I have just downloaded VC++ 2010 Express edition and I am planning to write a simple dll which will contain/export a coup...
[4 replies] Last: Can you not statically link your project? maybe useful/maybe not: htt... (by mutexe)
by amc246
Sum of prime numbers function
 
I need to write a function that gives the sum of prime numbers between 1 and N. Then a program that uses this function to output the sum of prime numbers bet...
[3 replies] Last: Here is a version that does not need the math.h header Simple program ... (by Yash8976)
by Fliize
Binary I/O
 
Hi. I am in the need of using binary I/O in C++ and as I've never done this before, did some searching to find information on the subject. After a while of sea...
[1 reply] : Assuming you have int Width , then after reading it from the file, yo... (by Chervil)
November 2013 Pages: 1... 6162636465... 80
  Archived months: [oct2013] [dec2013]

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