Beginners - February 2014 (Page 42)

by Duan
Error of Redefinition of formal Parameter "X"
 
I am trying to make a payroll calculator, and I have made the code section where it compares the gross income and then returns the correct value back to the ma...
[1 reply] : nTax function receive an int parameter which has the same name - x do... (by rich1)
prime numbers
 
hi i am not sure what is wrong with the second part of the code. can someone please help what wrong with it. // Program to test if an integer is a prime num...
[5 replies] Last: Thanks for the help. I still cannot get the numbers to the file but th... (by billyjoe)
by Larry2
Understand a program logic when it becomes heavy
 
Hello, I was reading a large code (apache web server). With all those inclusions, I would like to understand how one can make his way into this furious me...
[3 replies] Last: Thanks a lot, Your points of view were very useful to me. I have got... (by Larry2)
Recursive alternative for a counter.
 
I recently completed a HailstoneSequence program I was assigned. In this this program we had to prompt the user for an integer and display the Hailstone sequenc...
[1 reply] : first remark you forgot the return type of the function this is a nor... (by JewelCpp)
Creating and writing to file
 
I need to output all of the data I get to a text file. How would I go about doing this? I've read and re-read the chapter in my old C++ book but I can't figure ...
[1 reply] : Well, all your program does is checking with some IFs, and some for lo... (by MatthewRock)
by sky3
Reading in integers to an array
 
I cant figure out why my read in array wont work :/ This is a predetermined lab and so its a bit weirder to work with. Dont i need an int number so that i can r...
[4 replies] Last: How can the following be an endless loop? for (int v = 0; v < 10; ++... (by MikeyBoy)
by ASQ19
illegal, left & right operand has type 'double *'
 
I'm getting this error, illegal, left & right operand has type 'double *' double temp1,val=0.0; int count=0; double _k,phi,delP,b,miu,h,Pw,Pi,rw,ri,ct...
[1 reply] : Please use code tags when posting code, to make it readable: http://w... (by MikeyBoy)
Recursion Problem
 
I have a program designed to calculate the power of a number in 3 different ways, defined by 3 different functions. power1 works just fine, but power2 only ...
[2 replies] Last: I'm new, I know I suck. But thanks for the input. (by fizanimtiaz93)
Hello World
 
I have wrote the following code yet when I compile it, i fail to get the desired outcome. #include <iostream> using namespace std ; \\ A C++Program to ...
[3 replies] Last: [quote=kugi]and you can delete his endl here: cout << "Hello World!" ... (by MikeyBoy)
by kugi
CMD screen upade
 
Hello everybody! I am writing in C++ 2 months and I don't know, how to make, that cmd upade his creen. for example if I want to make a game (like tennis) in c...
[no replies]
sscanf string in float array
 
Hallo, ich habe ein Problem... und zwar möchte ich aus der input-Zeile zB ("101 0 0 9 5.4000e+01 0.0000+e01 3.5000e+02"...
[5 replies] Last: Wenn die Anzahl nicht dynamisch ist, spricht nichts dagegen das so zu ... (by coder777)
by jwilt
getline to array
 
How can I use the getline function to get a string of numbers 30 digits long, and store each digit in one spot of the array?
[4 replies] Last: I would use cin.getline http://www.cplusplus.com/reference/istream/ist... (by Yanson)
Overloading Prefix and Postfix Operators
 
Hello! I've been working through some examples on how to overload operators, and I managed to create a program with a simple class, circle, that has overloade...
[2 replies] Last: thanks for your reply! the reason I have to use int * is for a program... (by geniusberry)
Is this scenario possible
 
Hello guys, I have a weird question. Given this scenario: we have a base class called letters; and three derived classes, called A, B, and C that all shar...
[3 replies] Last: Thanks you guys for the responses, now I have a good starting point. (by bookLearnin)
error C1083 in MSVS 2010
 
Hi.I've written a code in MSVS 2010 and it works fine,but I decided to separate function definition in a separate header file -sud.h and here is the problem.How...
[17 replies] Last: Ok.Thanks (by fitipaldi)
Read Strngs with spaces
 
Hello, i'm using C and i don't ever programed in C++. Now i'm doing a program that needs to read strings with spaces but when i use "scanf" funcion it cuts the ...
[1 reply] : #include <string.h> #include <stdio.h> int main() { { e... (by JLBorges)
How to ask a user to reenter an input.
 
Hi, It is my second week already in my C++ plus and still getting a good grasp of C++ So as I was experimenting with my project, I came to a problem on ho...
[1 reply] : hmm you could do it several ways, with a while/for loop or even a swit... (by sky3)
"Bubba Add Program" - Arrays
 
I've been working on this program most of the day. My professor spent a total of 30 minutes discussing arrays, so I'm very unclear on them. Here are the instruc...
[6 replies] Last: There are several ways to do it. The easiest way in my opinion. int... (by heyyouyesyouiloveyou)
problem with numbers
 
Hey all. Worlds worst programmer here again. My inquisitor.........er I mean my professor has an issue with my program. The basis of it is that I have to hav...
[2 replies] Last: Oh. Well I was trying to increment the yearly value that the populati... (by jackbruns28)
Linked List Issues
 
Hello, I have a program that requires me to create an object, populate it with information, and then append that objects info to a linked list. I was able to do...
[2 replies] Last: Hello firedraco, thank you for your response. So what you're saying is... (by unsensible)
February 2014 Pages: 1... 4041424344... 60
  Archived months: [jan2014] [mar2014]

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