Beginners - March 2016 (Page 44)

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...
[2 replies] Last: How didn't I see that before o.O? I should've noticed the operator.. a... (by jgg2002)
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...
[15 replies] Last: Oh god, IT IS working ! Thanks a bunch peter ! I guess I was just tire... (by Viiarge)
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...
[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...
[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...
[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 ...
[6 replies] Last: I'm not going to do your assignment for you. A few additional comme... (by AbstractionAnon)
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...
[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...
[3 replies] Last: Not really. When you do not use pointers, you "slice" the sphere objec... (by Zhuge)
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...
[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...
[3 replies] Last: Here is a minimal example that works for me. See if this works for yo... (by mgoetschius)
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...
[2 replies] Last: Oh wow. Thanks, I went over and over it yet I overlooked that every si... (by JLop0820)
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...
[2 replies] Last: This looks like a good start; however, you need to save the user's ans... (by koothkeeper)
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...
[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...
[11 replies] Last: Thank you very much, everything is working now ! I love you :3 (by Arquon)
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...
[3 replies] Last: @jlb I know the difference, I just made a mistake copy pasting, sorry!... (by futanari2)
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...
[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 ...
[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...
[3 replies] Last: the coordinates of array problem (by closed account 167fizwU)
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: ...
[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...
[3 replies] Last: I eventually managed to write the test program to overload the operato... (by Bopaki)
March 2016 Pages: 1... 424344454647
  Archived months: [feb2016] [apr2016]

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