Beginners - September 2016 (Page 16)

by Maiia
Program that counts number of characters
 
Hi guys, can't find a solution. Tha program compiles perfectly, but I don't have the correct output: number of letters and lines. Possibly I messed up with whil...
[no replies]
Validation (User Inputs Wrong Data Type?)
 
I've got a pretty simple program that calculates the area of a triangle. It works fine and returns my error message if the user inputs 0 or a negative number (...
[no replies]
by eevij
Reading in from a file to a private class member
 
Greetings! I am working on the Game of Life C++ project and I am struggling with bringing in data from my file to create a new board for the game. Here is th...
[no replies]
Exam Menu-Driven File I/O HELP!
 
Part 1:Create an examination question class hierarchy in a menu-driven program. Develop an exam class to load the exam from a file and display each question to ...
[no replies]
Can't get negative number result?
 
I am trying to scale a PWM input and output a PWM signal to an DC gear motor. The input comes from an RC receiver with a signal between 1000 and 2000. I need ...
[3 replies] Last: Thanks guys. That works good. Appreciate the help. (by thomasks)
Bring wpf window to the front with c++ application
 
So, let me first explain what am I dealing with. I have a usb card reader and c++ application, which intercepts the scan of a card and opens the WPF application...
[no replies]
Does my program follow Object-Oriented principles and structure?
 
A corporation has six divisions, each responsible for sales to different geographic locations. Design a DivSales class that keeps sales data for a division ...
[1 reply] : Not sure if it does since I only have 1 class (by mike0910)
Parrallel array sorting problem
 
HELP! it seems my output only compare 2 element. Any1 can help me fix and tell me the problems much appreciated. Write a program to read 5 person's name and ...
[3 replies] Last: THANK YOU!! i got it. that was really good explanation. #include <io... (by DesmondLee)
by darje
STRCPY
 
Write your question here. for some readon compiler makes problem with sprcpy and strcpy_S HOW TO DOLVE IT #include <cassert> #include <string> #inclu...
[10 replies] Last: i succsed .its working for me tnx man ..for helping (by darje)
Why won't I get this output?
 
I'm supposed to get disqualified for loan but instead I get qualified for $0. if ((age >= 18 && creditScore >= 650 && income >= 20000) || (age >= 18 && cr...
[1 reply] : If you had if ( homeowner == 'y' ) {} else if ( homeowner == 'n' ) {}... (by keskiverto)
by darje
link List
 
Write your question here. hey can someone tell me if its good .. my qustion is in link list no data will repeat it self 1-4-7-1-8 will be 1-4-7-8 vo...
[no replies]
BEGINNER HERE
 
Sample output : Enter employee's grade(A,B,C or D):f Enter employee's grade(A,B,C or D):a Enter the total number of working hour : 198 Normal pay 1683....
[2 replies] Last: That helps alot. i fixed the if(hour>200) . Thank you ! ( When I... (by DesmondLee)
Loan Program Code
 
Why is my code for more than 6 inputs when I only have 6 inputs set? I'm only allowed to change lines 34-57, the rest was given. #include <iostream> #include...
[1 reply] : Nevermind, I figured it out, haha. It's a bit silly but it did it by d... (by andygarc1a)
Issue with converting an if-else to a conditional statement
 
How do I convert this if-else statement to a conditional statement? /* if (n != 1) cout << "There are " << n << " items left."; else cout << "Ther...
[3 replies] Last: Oh, it was just for an assignment. Our teacher wanted us to try it tha... (by andygarc1a)
by Phil15
Copy constructor
 
Hi guys quick question on copy constructors. Lets Say there is a Vector class class Vector { public: Vector(int capacity) : m_capacity(capacity), m_S...
[2 replies] Last: A few things: a) shouldn't use 'this' inside a constructor b) operato... (by liuyang)
by rantiv
Text decoder
 
I cant figure out how to expand. Output the line again, this time expanding common text message abbreviations. #include <iostream> #include <string> usi...
[1 reply] : First of all, you'll need a table, which contains abbr. and its actual... (by liuyang)
Long multiplication Help
 
Alright so first I'll ask my question and than post what my professor wants. First I'm trying to line the numbers up on the right side just like he does in the ...
[6 replies] Last: Alright so can someone check this for me. I need to make the dashes eq... (by Unisaurus)
Interaction between cin, eofbit
 
Hello there, I'm working on Stroustrups's Programming & Principles book and came up with a question I haven't been able to solve via Google. Will cin ever fli...
[2 replies] Last: I did not know that. Thanks for the info ne555. Much appreciated. (by EtDecius)
I'm having trouble converting a string to an array of ints
 
(assuming the string is less than 10 characters) I cannot understand why this is failing thanks for any assistance! string s; cin >> s; ...
[2 replies] Last: thank you! (by johndoejohndoe)
Beginner Programming Homework
 
Hi there, I'm currently taking a beginners C++ course in college, and we were just assigned our first programming assignment. The problem is, my professor never...
[2 replies] Last: write a program that computes tax and possible totals with different ... (by closed account 48T7M4Gy)
September 2016 Pages: 1... 1415161718... 34
  Archived months: [aug2016] [oct2016]

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