General C++ Programming - March 2016 (Page 12)

can not figure this error out
 
if (questType == "TF"){ //True/False Questions QuestionTF QuestionTF(); myTestBank = QuestionTF; /*error__cannot convert'QuestionTF()' to ...
[3 replies] Last: Post the actual error message(s), and enough (formatted) code to judge... (by tipaye)
Sum of unknown amound of even and odd variables
 
This is my assignment Write a program that reads a set of integers and then finds and prints the sum of the even and odd integers. Assume that the input comes ...
[2 replies] Last: Thanks that helped a ton. And I will remember to use the code tags nex... (by g0ldt1g3r)
window stop working
 
Can help me to find problem with this code? this is the segment code but this is the problem because went i delete this, my program works properly but the valid...
[1 reply] : &username If username is a char-pointer or a char array, that looks... (by Moschops)
by skiian
.txt file into an array
 
I need to know how to store numbers from a file into an array, but we don't know how many numbers will be given. what can i do to adjust the array depending on...
[2 replies] Last: Can you give more information about the problem. Do you have to use an... (by Nick Schuck)
by skiian
Array storage
 
How can I make a loop that will store values from a .txt file into an array. Also, it needs to be universal. Note: my instructor hates vectors.
[4 replies] Last: From the code posted above, it seems that the number of items in the f... (by Chervil)
Cannot Inherit from a class
 
I'm trying to inherit from a parent class and I get the Error that the name specified is not a class or struct. The code is as follows WeirdBot.h #inc...
[3 replies] Last: Firstly, that looks like C sharp, not C++. While there are similariti... (by MikeyBoy)
Catching exceptions
 
Let us assume my friend has designed a library. I am using this library in my code. Now this library may throw exceptions. As a person who is using it, I ma...
[6 replies] Last: How do you recover? When a library throws an exception, it means it c... (by Cubbi)
image processing
 
Hello I wanna make a c++ code for image thresholding.The format of the image is ppm or pgm and and I have to use only the standard library. I wrote the read an...
[6 replies] Last: Please don't beg for code. This forum is for learning, not begging. (by Verideth)
Floats are represented in one word ?
 
What does it mean by floats are represented in one word ?
[4 replies] Last: Yeah sorry :p. Alphabet. I mean it has nothing to do with word like sa... (by EnigmaticZee)
Help! Nested looping program help!
 
Despite all I have read and researched, I am finding it extremely difficult to complete this program. Anyone that can help me in any way would be most appreciat...
[9 replies] Last: Look at your code. if ( i == 9) { cout << endl; system("pause"); r... (by Moschops)
Is it considered bad practice to use older versions of C++?
 
Is it considered bad practice to use older versions of C++ for programs that will be distributed? Say, if I wanted to make a GUI app for my company that used th...
[10 replies] Last: I'd use C++11 if possible. It has some really nice features that aren'... (by dhayden)
Help Getting the Sum in Arrays
 
Hi, I need some help trying to get the sum from an array. Here is my code so far: #include <iostream> #include <string> using namespace std; float * g...
[2 replies] Last: I think u should declare the array as static to return it i mean getS... (by sylphsang)
Dell XPS 13 Developer Edition Laptop syunning features
 
What is this? This isn't a site for advertisement.
[1 reply] : Please don't reply to spam. If it is reported straight away, the whol... (by TheIdeasMan)
codes for update and delete pls.
 
UPDATE AND DELETE from text file please help with using if else statement
[1 reply] : UPDATE AND DELETE from text file please help with using if else state... (by Calcushtag)
I need some help in this exercise
 
Hello , so this is the exercise :Write a program that lets the user enter the total rainfall for each of 12 months into an array of doubles. The program should...
[1 reply] : Can we cheat a little? (Just to get started.) into an array of double... (by keskiverto)
Geometry Calculator Help
 
My program is not working and I can't figure out why, any help/suggestions would be greatly appreciated!!! This is my program..... #include <iostream> #incl...
[1 reply] : The first two warnings are pretty self explanatory. You're doing a ty... (by AbstractionAnon)
...................
 
give me the solution plz 1 write a c++ program that display n numbers from user and display all positive and and negative number...
[1 reply] : I think you should read this first. http://www.cplusplus.com/forum/beg... (by Thomas1965)
Arrays
 
I'm creating an array that will be used to represent the products selected by the customer (program user). Can anyone help me out with this? Not really sure how...
[4 replies] Last: I'm making an array of the products So what is your product type? ... (by Moschops)
Trouble in study time program
 
the question is Write a program that computes the average number of hours a student spends on programing and on Biology over a long week end. Your program s...
[1 reply] : design from beginning: you have many days many students and two subjec... (by Calcushtag)
Do while loop
 
I'm trying to make a do while loop so if the user enters y or Y the program repeats from the begging but if the user enters anything else the program stops #...
[2 replies] Last: Thank you, that solved it. (by overlord49)
March 2016 Pages: 1... 1011121314... 23
  Archived months: [feb2016] [apr2016]

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