Beginners - November 2018 (Page 17)

File and a while loop
 
Q. Consider a text file named "Data.txt" which contains an unknown number of positive integers. Write a C++ program which reads the numbers from the files and d...
[3 replies] Last: Thank you, it perfectly works! (by Anasdaham)
Printing unknown number from a file
 
Write your question here. -- Q. "A restaurant distributes a form to his customers to get their feedback on the food quality and the services. The customers have...
[3 replies] Last: How about now? is there any part I missed? #include<iostream> #inc... (by Anasdaham)
Infinite loops caused by string value
 
I am creating a simple program (sum of two numbers) in which program ask user to input integer value if he adds wrong value the program gives error and starts p...
[3 replies] Last: Found it using while(getchar() != '\n'); after scanf :P (by azhabalouch)
Help me with this "while" loop
 
Write your question here. "Q. Write a C++ program that asks the user to enter the name and time for 5 athletes, then prints the name and time of the winner. Al...
[5 replies] Last: Oh yeah it's much better now, thanks #include<iostream> #include<s... (by Anasdaham)
by Bopaki
There is something seriously wrong with my C++ compiler today
 
Can I be helped with these errors that I get with private members in my program: I get errors with first , last , and count protected: int count; /...
[7 replies] Last: Thank you very much to everybody. The program worked very well after p... (by Bopaki)
how to solve rand issue and if-else code not running?
 
// question: /* The use of computers in education is referred to as computer‐assisted instruction (CAI). Write a program that will help an elementary school...
[4 replies] Last: A separate function should be used to generate each new question. Thi... (by keskiverto)
C2259 Cannot Instantiate
 
Hello, I am a beginner with C++. I ran into the error C2259 cannont instantiate class. I have check with the other reports on here of this error, but did not...
[14 replies] Last: Your picture shows part of a file CHertzMindlin.cpp The error is state... (by lastchance)
=/== in IF statements
 
I am not able to figure why i need to use == to make my statement work, isnt == the same as not equal? if i use = it works the other way, making my statement f...
[8 replies] Last: Không gian xanh đẳng cấp tại Chung cư N01 T6 Ngoại giao Đ... (by alfredabbe76)
Singly Linked List Delete At A Certain Location
 
Whenever I run this code, I try to make it delete the first node and it doesn't. if the user chooses to delete at a certain location it seems that it reads the ...
[1 reply] : > but then now this happened. ¿what happened? http://www.eelis.net/... (by ne555)
Errors From Functions
 
So i'm writing a code that will take an input of an array and then separate the negative and non-negative integers into two different arrays. For some reason it...
[3 replies] Last: I dont know how i missed that, thanks so much! i feel so silly. (by greygriff)
by Majosh
programme to output students grade
 
Write a Program to output the following: Name of Student Course Grade (Based on the marks entered) marks grades 80-100 A 75-79 ...
[5 replies] Last: You had a thread http://www.cplusplus.com/forum/beginner/245567/ It en... (by keskiverto)
Need help with this c++ project
 
http://cs.uky.edu/~kwjoiner/cs215/proj/proj3/proj3.pdf
[2 replies] Last: Hello kwl1314520, With what little I read I would start by creating ... (by Handy Andy)
by Drac0
Inputting File information into a array
 
I have an assignment due, basically it is asking me to have 2 input files that the user chooses, in one file is a list of names of shapes, the other file is the...
[4 replies] Last: Would I just need to make a while loop to to count the amount of numbe... (by Drac0)
C++ array issues
 
I have the code working but it is not what the instructor is wanting. Here is what I am having to do: Write a C++ console application that asks the user to ...
[7 replies] Last: OK I will see what I can do. I have to use headers because that is wh... (by natewill2)
Calculating the percentage of each of the numbers in the matrix
 
Hi there. In college I got this task "Input integer matrix 3x5 with elements from 0 to 9. Calculate the percentage of each of these numbers in the matrix." I...
[2 replies] Last: int a ; ... map<unsigned short, unsigned short> b; for (int j = 0; j... (by Konstantin2)
by Majosh
code to grade students
 
consider the following statements in which grade is a variable of a type char i need a code to complete my grading please help me complete it ...
[2 replies] Last: thanks it really helped but here is the rest of the question (by Majosh)
Error: (A) not declared in this scope
 
Hey, I try to start the program, but it says that a variable is not declared in this scope, even though I did initiate it. Any help? #include <iostream> #...
[10 replies] Last: You're welcome! Glad it helped, and I hope the explanations made sens... (by MikeyBoy)
Need help with Y/N loop with functions
 
I've got this program to prompt for current time in 24 hour format. I use functions to convert the time and print in 12 hour format. I got all of this code work...
[2 replies] Last: Thank you so much! It works! (by Maxster)
inFile with multiple files
 
I have a coding assignment that has multiple file options to be opened and read, however if a file that isn't one that my teacher has given us tries to be input...
[2 replies] Last: @OP I don't mean to be rude, but - how on earth did you think your lin... (by MikeyBoy)
by quete5
How do you change the appearance of the output?
 
Hi, I'm trying to figure out how to display input backwards, uppercase, lowercase, and display the middle letter of the input without using the tolower() met...
[3 replies] Last: there are a bunch of ways to do these things. lookup tables, for ex... (by jonnin)
November 2018 Pages: 1... 1516171819... 24
  Archived months: [oct2018] [dec2018]

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