Beginners - October 2017 (Page 14)

Help with Gross pay
 
I need help with this when i do the problem for homework everything works find except the total gross pay just doesnt add up right for some reason it adds up al...
[5 replies] Last: There's an example in the tutorial: http://www.cplusplus.com/doc/tutor... (by Chervil)
by Backx
stuck on initializer problem with assignment
 
Hello! I have to make an assignment that can code and decode an input text file. I'm at the early stages of the beginner class so I probably made alot of mis...
[7 replies] Last: Wow Andy thats alot of thought you put in there, thank you very much. ... (by Backx)
why this coding dont work
 
when i input 1 hrs and 0 mins, sec. it come bk 1, but it should be 3600 #include <stdio.h> #include <math.h> int secs(int, int, int); /*function prototy...
[2 replies] Last: printf("Enter a Number of hours: "); scanf("%d", &hr); printf("E... (by Golden Lizard)
Initializing a struct array
 
Hello, I am having trouble initializing a struct array. Here is a simplified version of my code: struct Rect { int width; int height; public: ...
[3 replies] Last: Thank you very much for the help! (by skipper)
by chuvak
Printing errors
 
Say I have the following constructor: Date::Date(int yr, short mt, short dy) { errCode = 0; do { inRangeYear(year) ? year = yr : errCode = 2; inR...
[1 reply] : If you want to abort the loop if errCode is anything other than zero,... (by Repeater)
by Bopaki
There is something seriously wrong with my C++ compiler today
 
In everything program that I try to compile I get there errors: Even with a simple one line program like the one below. 40 0 C:\Program Files\Dev-Cpp\MinGW6...
[1 reply] : reset your compiler to default in settings. ensure that it is reading... (by closed account 1vf9z8AR)
DUNGEON CRAWLER(whats the problem?)
 
Write your question here. #include <iostream> #include "windows.h" #include <time.h> using namespace std; //variables const char HEIGHT = 16...
[1 reply] : What's the problem? You tell us. Does it not compile? If so, what ... (by AbstractionAnon)
Reading File Output HELP
 
The code below reads my file that has 5 names. How would I get the output to show all the names and tell me "The first person is..." and "The last person is..."...
[4 replies] Last: #include <iostream> #include <fstream> #include <string> using namesp... (by lastchance)
by Efalir
How to used a integer in a loop if
 
Hi all, i need to add another possibility In the code ( cf below) . There is 3 cases here : - good beta = -4/3 - not good beta = -5/3 - fairly good beta...
[11 replies] Last: Hi Handy Andy, Thanks for your answer! It works well ;) HI Jonnin, Th... (by Efalir)
Math tutor program
 
I have been able to get the program to put out the random numbers for the addition problem and tell the user if they're correct, but I have been unsuccessful in...
[14 replies] Last: Thanks So Much. This is really what I need (by jessicawhite)
Help with hot plate
 
Hello, For my class we are doing a hotplate lab. The part I am having trouble with is reading in a file called Inputplate.txt, and using the information in tha...
[1 reply] : The code you have above runs and gives a plausible answer. So your pr... (by lastchance)
confusion about parameter name
 
the code says that I omitted some parameter name, I checked nut couldn't seem to find the problem. #include <stdio.h> int main() { int secs(int, int, int...
[1 reply] : You need to go back and read up on defining functions. Your secs fu... (by Duthomhas)
Cannot initialize reference in a function.
 
I am stuck when trying to initialize my double variable in my function transaction(drink, int, double&), can someone please explain how I can initialized it? ...
[5 replies] Last: I have figured it out. thank you all for helping me out. I will post w... (by hunt555)
by SasuKe
Search Function
 
I have to create a search function for a binary tree. The tree is given below: 5 4 8 11 13 4 7 2 1 These are the specific instructions: 1. A function to searc...
[2 replies] Last: ok I've modified it and now it's returning the left nodes correctly. H... (by SasuKe)
while loop
 
i have to create a code that will take the sum of the numbers between 0 and any number. example 0 to 5 = 15. my code is saying that i is not initialized. ...
[6 replies] Last: So I only changed two things from your most recent code(see bold text)... (by femtopwn)
When using commas in commandprompt, it goes crazy.
 
So, I'm making this calculator that can calculate everything from addition to squareroots and logorithms. It is a console application, and I've constructed it s...
[1 reply] : You want to change the locale. https://stackoverflow.com/questions/... (by Hippogriff)
by MadEye
Rectangle Area using functions
 
There is s silly mistake in my code, i cannot find it for the life of me. As of right now it only returns the area as 0, which i take to mean it isn't receiving...
[3 replies] Last: Thanks so much guys! Can't believe i missed that lol (by MadEye)
convert a fasta file into a pair with T1 and T2 being strings
 
Should be a simple problem. I have a fasta file with n rows, and now I need to put it in a pair with the first row being T1 and T2 should be the second until th...
[1 reply] : I fail to see how that may work for the second line, as you are just r... (by ne555)
Missing brace somewhere and cant find
 
Im getting an error on visual studio that the left brace on the very top is unmatched at the end of the file. I am so confused and dont know what its talking ab...
[5 replies] Last: Don't indent your code. That superfluous white space is not understood... (by ne555)
by jsbd29
Please can someone Help me with my first function program
 
I need to Create a function inVowel to count the number of vowels the user entered.Can someone help me find what is wrong that keep This program displaying "Ple...
[4 replies] Last: thank you! (by jsbd29)
October 2017 Pages: 1... 1213141516... 33
  Archived months: [sep2017] [nov2017]

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