
please wait
by jgg2002
Reason as to why code is malfunctioning? (Dynamic Programming)
|
The problem is quite simple really so just let me cut straight to the chase. You are given an even intenger N and N numbers following in the next line. You'll h... |
Mar 2, 2016 at 9:36pm
[2 replies] Last: How didn't I see that before o.O? I should've noticed the operator.. a... (by jgg2002)
|
by Viiarge
Classes Inheritance (School assignment / Don't spoil)
|
Hi, I'm having trouble calling the right method when looping in my vector. It should call the most specialized method, but it's only calling the parent class on... |
Mar 2, 2016 at 9:31pm
[15 replies] Last: Oh god, IT IS working ! Thanks a bunch peter ! I guess I was just tire... (by Viiarge)
|
by stmaki16
Double arrays with magic square
|
Hey guys, so I need to create a program that read in from a file. That file contains a single number on the first line and that number sets a matrix ( so if the... |
Mar 2, 2016 at 8:53pm
[4 replies] Last: @stmaki16 Interesting how to set it in a loop. Can i ask why you app... (by whitenite1)
|
Getting these errors when making |
In function `main': run.cpp:(.text+0x5): undefined reference to `test_default_1()' collect2: error: ld returned 1 exit status make : *** Error 1 #inc... |
Mar 2, 2016 at 8:08pm
[3 replies] Last: Now that you've commented out line 4, test_default_1 is clearly a memb... (by AbstractionAnon)
|
Help with "this->" |
My calculation will only return 1, and I think it's because I'm not using this-> correctly. I'm trying to turn a number from 1 to 10 into a number from 0.0 to 1... |
Mar 2, 2016 at 7:37pm
[2 replies] Last: That's probably closer to what I mean, yes, but in my actual program, ... (by itsbenbroughton)
|
Need some help with public functions/class for a "gradebook" |
I am trying to write a program that stores a list of class objects named GradeBook by using vector, and allows users to add, remove or sort objects in the list ... |
Mar 2, 2016 at 6:31pm
[6 replies] Last: I'm not going to do your assignment for you. A few additional comme... (by AbstractionAnon)
|
by umairrahim
Doubling the Dynamic Array using pointers
|
I am having issues with the dynamic arrays. I am taking one array and creating a new one with double the size. I want to keep the original elements of the array... |
Mar 2, 2016 at 6:23pm
[6 replies] Last: sorry I didn't get to say Thank You ... it helped @WakeofMisery ... ... (by umairrahim)
|
by Vidus
help for a oop newb please
|
can someone help this is i need it to call individual update but it keeps calling base class update. here is the code #include <iostream> #include <vector> u... |
Mar 2, 2016 at 5:55pm
[3 replies] Last: Not really. When you do not use pointers, you "slice" the sphere objec... (by Zhuge)
|
by shyam1086
how to call a function with arguments as structures
|
Write your question here. I am trying to call a function with arguments as v structures The c compiler. MinGW . sheeting error using function ADD(s1,s2) , c... |
Mar 2, 2016 at 5:52pm
[1 reply] : Could a minimal example that demonstrates the issue, along with the er... (by Zhuge)
|
by m0bb1n
reading from file not working-hangman game
|
Hello, For some reason, I can't seem to find out why the file won't open so I can read from it. I want to read from it, and put each line in a string for hang... |
Mar 2, 2016 at 5:07pm
[3 replies] Last: Here is a minimal example that works for me. See if this works for yo... (by mgoetschius)
|
by JLop0820
Menu driven program/file entry
|
Hello, I'm trying to create a menu driven program and so far it has gone well, except for my dataEntryForm function not displaying anything when I call it on... |
Mar 2, 2016 at 4:08pm
[2 replies] Last: Oh wow. Thanks, I went over and over it yet I overlooked that every si... (by JLop0820)
|
by K094972B
input file
|
I am very new to programming, and I have little to no idea on what I am doing... I need have a user type a input file and then I need the program to read the f... |
Mar 2, 2016 at 4:07pm
[2 replies] Last: This looks like a good start; however, you need to save the user's ans... (by koothkeeper)
|
by Harutyun
Where to go after learning C++ this much.
|
Hi, I'm learning C++ and I'm currently reading "C++ Primer" and also learning from this site:http://xoax.net/cpp/crs/console/index.php, both of which I'm finis... |
Mar 2, 2016 at 4:02pm
[1 reply] : Why don't you continue with C++ Win32 on the site you mentioned ? ht... (by Thomas1965)
|
by Arquon
How to create a 2D array inside a function and how to pass it ?
|
Hello, I have to create am int value in main function, pass it to Data function, and make it a 2D array there, but I have no idea how to pass normal int value a... |
Mar 2, 2016 at 2:12pm
[11 replies] Last: Thank you very much, everything is working now ! I love you :3 (by Arquon)
|
by futanari2
find does not seem to work properly with "</table>"
|
I have a program which searches throughout a html file line by line. I know that in the html file there is a one time mention of "</table>" and I want to kno... |
Mar 2, 2016 at 12:31pm
[3 replies] Last: @jlb I know the difference, I just made a mistake copy pasting, sorry!... (by futanari2)
|
by ajessie
Last part of code, can't seem to get conversions correct
|
So, I've been working on this code for three days now for one of my classes and I am almost done. However, I need to calculate the total rainfall (the TPCP colu... |
Mar 2, 2016 at 10:24am
[1 reply] : 9/5 , in C++, is 1. An int divided by an int returns an int. A doubl... (by Moschops)
|
Reading data from a file into a 2d array |
I can't get past this one roadblock in my program. In my program i need to have a for loop function that will read read data from a given data file into arrays ... |
Mar 2, 2016 at 9:47am
[7 replies] Last: If you have a fixed number of lines you can define your arrays like th... (by Thomas1965)
|
by rantiv
help?
|
You have a 2D array of integers, as seen in the main function. The program will prompt the user for a single integer. You must add the user's value to each of t... |
Mar 2, 2016 at 9:23am
[3 replies] Last: the coordinates of array problem (by closed account 167fizwU)
|
by shweta123
Reading data from text file
|
Hello friends, I am working on my class project, In which I have to read a text file with character separated by integer. Following is the format of the file: ... |
Mar 2, 2016 at 7:45am
[1 reply] : #include <iostream> #include <fstream> #include <cctype> int main() ... (by JLBorges)
|
by Bopaki
Overloading operator= in a class
|
Write your question here. I am trying to write a test program to overload the operator= in a class This is the definition of the member function: const... |
Mar 2, 2016 at 6:19am
[3 replies] Last: I eventually managed to write the test program to overload the operato... (by Bopaki)
|