Beginners - October 2015 (Page 39)

need help on homework
 
1.Store the resistor colors in an array 2.Ask the user to enter three colors 3.Use a loop to find their colors in the array and convert them to their number e...
[2 replies] Last: Create integers c1, c2 and c3 to represent the color values. Then use... (by dhayden)
Tips for my beginner program in c++
 
Hi this is my first post, I'm new to programming and was wondering if I could get some tips on a program I have designed for a class I'm taking, I have complete...
[3 replies] Last: hey folks thanks for the tips and the extra references, its great hear... (by aidan8181)
help stack overflow !
 
this is my first attempt to make a text justification algorithm.. the program was working very good with small inputs but then i decided i wanted larger inputs ...
[1 reply] : Lines 74-76 allocate 6MB on the stack (assuming 32 bit integers). That... (by dhayden)
Setlocale doesn't work for the console title
 
Hello, I am writing a simple calculator in lithuanian and I have to use the letters "ąčęėįšųūž". If I write the line setlocale(LC_all, "Lithuanian"); ...
[9 replies] Last: Thank you for the help, I'll go figure it out now! (by DDomjosa)
c++14 not working
 
Hi! I just upgraded to mingw 5.2 and trying to use a lighting library which is using c++14 features, but when i try to compile i get "'make_unique' is not a mem...
[1 reply] : Just because your compiler supports the features of C++14 doesn't mean... (by LB)
How to pass 2d arrays
 
Hello i have a problem with passing the two dimensional array into printEmployee function and how would that work to get the average of age and salary, can yo...
[5 replies] Last: Okay, as an exercise, I did the code. I have two problems with it tho... (by DeathLeap)
Help with fixing this function?
 
Im just trying to get the product of two numbers but receive "2752404" as an answer for anything entered. #include <iostream> using namespace std; int times...
[3 replies] Last: #include <iostream> using namespace std; int timesN (int, int); int m... (by DDomjosa)
3 dimensional string vectors
 
I am trying to write a text rpg game. I'm going in the of multi-dimenional vectors to load the Monster data. I have a text file I will be reading from. I though...
[1 reply] : Monster → vector < vector < vector <string> > > Monster → vector... (by MiiNiPaa)
Newbie here needing some help
 
Hi everyone. I am new to C++, and I have an assignment I could use some feedback on. This program is basically a simple math tutor program that lets you practic...
[7 replies] Last: @ AbstractionAnon Thanks... I should either put the crack pipe down,... (by pearlyman)
What does "[Error] expected primary-expression before 'int'" mean?
 
Erm... Im beginning to program today and i was just trying to make something very simple. This is probably a very simple and stupid error but help is appreciate...
[2 replies] Last: That's because you can't suddenly reverse input and output operators f... (by YFGHNG)
by ladwer
Please check my logic for this assignment.
 
...
[3 replies] Last: Yeah we can see you edited your post. If you're trying to get out of p... (by YFGHNG)
Calculate tax
 
hi guys this is my first post on cplusplus here is my problem .. when i run it. it doesn't calculate the tax. if someone help with this that would be grea...
[9 replies] Last: It doesn't any more. Well spotted. (by closed account 48T7M4Gy)
Trouble understanding error and fixing program
 
The lecturer made an OO Zombie game in C++, I was following it along fine in class. However I decided to take a look at the code when I got home as I wanted to ...
[1 reply] : So I think the culprit here is Character.h. and the enum CharacterStat... (by solidMGSsnake)
String.cpp
 
I'm a beginner and for homework we were just assigned a lab in which we have to develop and test a lab incorporating myStrLen, myStrCmp, myStrCpy, myStrSwap, my...
[2 replies] Last: That makes sense, thank you so much! (by harrystyles)
Class Object, Display Speed of Vehicle
 
Prompt written below. Current problem; all displayed current speeds are negative and incorrect. Prompt: For this program I need to demonstrate class in a pro...
[4 replies] Last: Got it! Thankyou for the help. (by CrazdKC)
Logical Error!
 
Hey guys! So I executed this program and for some reason, whenever I input valid values for areacode, exchange, etc. it returns as an invalid statement and asks...
[4 replies] Last: Thank you so much guys! Appreciate all the help! (by cher1201)
Marking a node as deleted
 
I have a remove function on a tree but I'm trying to use lazy deletion to get rid of it, how would I go about marking nodes as deleted so that when I'm traversi...
[2 replies] Last: Yeah, I had a brain fart while I was working on it fixed up the tree b... (by Dlazyguy)
Math formula help
 
Hey Guys, I think something is wrong with this line of code. It works with most of the number that Ive tried. But when a = 1, b = 0, c = 9 it gives me -21474836...
[1 reply] : 10 10 is greater than 2 31 , so of course it won't fit in a 32-bit in... (by LB)
Loops
 
So I have been trying to solve for a long time. But,without any luck. Any help is appreciated. Write a function PrintShampooInstructions(), with int parameter...
[2 replies] Last: Thank you so much for your help! Sorry, I will use the code tags next... (by gulfboy9526)
by Dazzer
Operator overloading basics
 
Hi peeps, I'm really struggling to get my head around operator overloading. Please consider the following code: class Cents { private: int m_nCents; ...
[3 replies] Last: Line 16 is just a normal function definition, the only difference bein... (by LB)
October 2015 Pages: 1... 3738394041... 57
  Archived months: [sep2015] [nov2015]

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