Beginners - May 2013 (Page 63)

*s vs s in a function
 
In the "myPrintf" function below (which runs correctly when called), I don't understand how it takes...
[1 reply] : 's' is a name of variable that is a pointer. The va_start and vprintf... (by keskiverto)
how to return to beginning of the case if user press wrong Character?
 
Write your question here. #include <string> #include <cmath> using namespace std; int ma...
[1 reply] : while ( cin >> answer && ! ('a'==answer||...) ) { cout << "You ... (by keskiverto)
Encryption program
 
Hello forum people.... I am trying to make an encryption program with various kinds of encryptio...
[7 replies] Last: now thats what i call an encryption program......:):):) thanks a lot ... (by KanhhaSS)
Program skips if statements
 
For some reason the if statements at lines 52 and 109 are ignored. Also in the battle function, the ...
[4 replies] Last: Your line 54, the: enemyH = enemyH - atk; can be replaced with: ... (by Ispil)
quick sorting a dynamic array
 
no one seems to want to talk about how to work with variable length arrays so im having trouble figu...
[1 reply] : Wait, what are you sorting here? If it's numerical, I know that there'... (by Ispil)
How Can I sort 2D Array?
 
I know there is a function called sort from algorithm, and how do i make it sort a 2D array? how abo...
[2 replies] Last: Well, I don't believe you can sort a 2D array using the sort function ... (by Ispil)
Trouble with arrays: Finding the lowest number
 
Some notes before I describe my problem. I am writing a gradebook program. The setup for the p...
[5 replies] Last: tempSum += tests ; You never actually assigned any values to the ... (by Ispil)
random numbers in an array
 
I'm having trouble putting random numbers into an array. this is what I have so far. #include <io...
[1 reply] : There is no such thing in your code called "values." There is an array... (by Ispil)
by liz99
im lost
 
write a program to manage employee information for a company . you have to solve this assignment b...
[3 replies] Last: Lol seriously? You aren't even asking you're giving us your demands so... (by giblit)
Changing Array Values
 
Hey guys I have a question.. If I had an array with values such as this: decade = 1 decade = 2...
[4 replies] Last: sweet thank you all for the suggestions I got it working with a string... (by youngnito)
va_start
 
In the explanation for va_start parameters, it mentions that the second parameter is the "Name of th...
[no replies]
Try/Catch not Working as Expected
 
I am working through examples in Chapter 14 of Malik's "C++ Computer Programming". This chapter deal...
[4 replies] Last: This online compiler is using GCC version 4.7.2: http://www.compileon... (by Alrededor)
by zmlink
I need help with this .. completely lost.
 
i have to convert these 2 algorithms to match my files .h and additional .cpp program i just dont un...
[no replies]
File output with a switch statement
 
I am working on a project where I have to take a string from a file (in1.txt) and then run it throug...
[no replies]
by yasha
Help with last function please
 
hey guys I just need help clearing up my errors in my last function thanks! #include <iostream...
[8 replies] Last: I tested out your program with the fix I mentioned. The new error is n... (by Daleth)
by Hoop22
A question about const
 
Here is the codes. Basically I am not sure the difference between the 'const' in front of the functi...
[1 reply] : I have done it by myself.... I need to allocate some space for the po... (by Hoop22)
Tic Tac Toe Game 2D Array
 
My code runs, but it doesn't print out anything in the board. I'm pretty sure i have done a couple o...
[no replies]
by liz99
help please
 
Write a program which analyzes the Amsterdam stock exchange market situation on 18th January The pr...
[5 replies] Last: http://www.cplusplus.com/forum/articles/1295/ Please do not repost to... (by Zaita)
Double or float?
 
I am creating a new big data program that may or may not become very large. All data is stored in th...
[1 reply] : Just use float since you'll never need a double. Memory management is ... (by Aceix)
Shared_ptr exercise.
 
Kinda confused if I'm going about this exercise right. - Write a function that returns a dynamica...
[10 replies] Last: ne555, do you mean this? I am curious about this, too. void Fill... (by Daleth)
May 2013 Pages: 1... 616263646566
  Archived months: [apr2013] [jun2013]

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