General C++ Programming - September 2016 (Page 4)

Please Help
 
I need to get the x and y center Point for this project, however, I cannot seem to understand how to get it. I tried the following //In the Struct, there...
[1 reply] : Since Point does already contain x/y you don't need it twice: ... (by coder777)
I don't understand
 
Hello all. So I'm working on an assignment and I'm having trouble as to why my code doesn't seem to be working. I'm trying to have the user input values (whic...
[1 reply] : Holy crap! Sorry, I figured it out.... if ((studentAnswers != 'A')... (by DannyD303)
by nile12
Help with incorrect output when Adding and Subtracting Time
 
The program currently adds and subtracts time correctly by not allowing the time to go into a negative number or into military time and beyond. The problem is w...
[2 replies] Last: People are significantly more likely to help when you put your code in... (by Duthomhas)
by agulbs
Random spaces and "-" being inserted in wrong spots
 
My assignment for class is to create a program that reads a user's file and formats it to 60characters per line. Each word must be evenly spaced so that "hello ...
[2 replies] Last: Thank you!! so i changed the for loop to this: for(int i =0; z ; i+... (by agulbs)
Which library should i use for my program?
 
Hello, My program will basically get prices from around 20-30 webpages on the internet of a product and i want these prices to be in my program and will c...
[1 reply] : from around 20-30 webpages,,, I want it to be done in as few lines as... (by mbozzi)
method-address longer then long long long
 
Hello there, I tried to print out addresses of class methods. But i have noted that they are greater then 'long long int'. So here is the question, how could i ...
[3 replies] Last: The problem is that pointer-to-member functions on some implementation... (by mbozzi)
How do I get rid of the spaces in my code output?
 
The code is written correctly and works but its putting spaces where spaces shouldn't go. Error results : http://prntscr.com/cknqp6 My Code: #include ...
[1 reply] : Hi, You have given a space before the first letter of your output p... (by shadder)
by denxr
Want to get file.txt from server
 
Hello :) I'm gonna write a ATM simulator, but i want to store usernames, card numbers, adresses on server. For example: User runs program -> program asks for ca...
[1 reply] : https://www.tutorialspoint.com/cplusplus/cpp_files_streams.htm (I) htt... (by closed account iGLbpfjN)
Im not sure where to even start with this assignemnt could someone help me?
 
Write a program quiz generator program to help students study for quizzes and exams. The program must call a function that reads a set of multiple choice questi...
[no replies]
Can someone please tell me what i am doing wrong. It will run but when it does they all say incorrect and 0%.
 
I have to write a program helps your instructor grade quizzes. The program will read a file containing a single student’s answers to a recently given quiz. It...
[1 reply] : Reading a whole line (needed for student names) from an ifstream and ... (by nuderobmonkey)
Breaking up a struct
 
I need to somehow get the individual x and individual y value from a struct named Point. There are three sets of x and y values each stored into ONE x and ONE y...
[4 replies] Last: Thank you! (by Univcplus)
Please help with this code
 
input: - First line:number of row and number of column. - Line 2 to n: 2 dimensional array. output: 2 Dimensional Array that is already arranged. Example:Input ...
[5 replies] Last: Lets ignore the 1-D array. How do you describe the ordering within the... (by keskiverto)
Is hacking that easy?
 
I've been dealing with computer science fields (including operating systems, programming, software, hardware and so on) since years ago and know that each field...
[4 replies] Last: http://www.cplusplus.com/forum/lounge/198358/ (by helios)
Running an underground UNIX program from c++ code and then terminating it.
 
Hi all, im designing a QT program in C++ that needs to interact with an underlying server software installed on my computer. What i need to do is to have a QT w...
[2 replies] Last: Man, you've been a great help. That is exactly what i was looking for! (by undefinedsymbol)
List<> in C++
 
Hi guys, Consider we have a list as follows: list<char> lch = { 'H', 'e', 'l', 'l', 'o' }; How to move over it (for example) to write out the elements us...
[3 replies] Last: Thank you both very much. (by closed account G1vDizwU)
NEED HELP ASAP PLS
 
Hey guys, im a newbie and im having problems with my first assignment in school . my professor wants to "Write a program that performs a sorting routine as disc...
[1 reply] : Well, reading your teacher's instructions we can see that he wants you... (by rabster)
by md1364
HELP with Input/Output file
 
Hello all! I have recently begun practicing programming using c++ for my classes in computer programming and am encountering issues producing the correct output...
[7 replies] Last: SamuelAdams and Chervil. Thank you for your help. I determined the iss... (by md1364)
by mvgnum
Simpliying function
 
I'm trying to write a function that accepts 2 integers, simplify them and return it as a fraction. Here is what i have so far: void Rational::simplify() ...
[3 replies] Last: @Arslan7041 if (positive ^ negative) I think the OP meant this : ... (by SakurasouBusters)
Compiling with obvious errors
 
So I am coding and obviously I build occasionally to make sure my program runs. I got suspicious since something that I was almost sure wouldn't work. worked. s...
[2 replies] Last: Without an example of what you are doing it is impossible to comment i... (by Duthomhas)
Help with class array output
 
Here's what i got main file #include<iostream> #include "elements.h" using namespace std; int main( ) { int StrgAmt; int number; Data bo ; ...
[3 replies] Last: How did you used the setprecision() ? (by shadder)
September 2016 Pages: 123456... 19
  Archived months: [aug2016] [oct2016]

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