Beginners (Page 63)

by HG319
Inserting element in vector of vector of type class
I have a vector<class>v1 and vector<vector<class>> v2; I ask the user how many vectors they need th...
[2 replies] Last: for(int i=0; i<=printers ; i++) { v2.push_back(v1); } I see tw... (by AbstractionAnon)
Using Array To Hold Five Class Members
I want to use an array to hold five vehicle class members. Am I writing the array correctly? ...
[2 replies] Last: vehicle .setALL("Unicycle", 1, 1, 80); and etc. This is how I ended up... (by joshuatz)
by Danky
Need help returning an index of a vector
Ok so what this does is puts in crimes of non violent, violent, and domestic crimes. Part of this is...
[2 replies] Last: THANK YOU SO MUCH!!!!!!!!!!!! (by Danky)
Linked List Selection Sort duplicating value
This is for an assignment which involves using selection sort to sort a linked list. The linked l...
[6 replies] Last: You're welcome. I would double check on the requirement to perform a f... (by closed account D80DSL3A)
by enesdl
Setting string to set number of charecters
Hello, I have some homework and I needed some help with finishing my code. The question is this: ...
[6 replies] Last: Hello so quick update I am able to make each sentence a set number of ... (by enesdl)
Basic math always returning a value of "0"
Hey guys, I'm sure I'm making a silly error somewhere, but every time I run my code, I'm getting bac...
[2 replies] Last: I see that you are trying to calculate totalZ on line 4, before the ... (by Moschops)
by mmgh
Unknown data type
Hello, I have defined a new data type in MyClass, but the compiler complains when I use that data t...
[3 replies] Last: Thank you so much. The problem is solved. (by mmgh)
Putting 2 points in to point-slope form
I am attempting to write a program that will allow you to enter 2 points and it will place them in t...
[1 reply] : Lines 7-10. You do create four variables, but do not set their values.... (by keskiverto)
I created different style of program this time, but they give me error::/tmp/cczAJxFX.o: In function...
[6 replies] Last: but i already included the formula inside my class declaretion On wh... (by keskiverto)
by InVain
dynamic casting while initializing a class list
I'm trying to initialize a list of derived/base class pointers to a base type(Employee) head from a ...
[1 reply] : A dynamic_cast<T*>( foo ) returns either * a valid T* pointer only ... (by keskiverto)
Problems with arrays for a program to grade a multiple choice test
I have a few questions about my code below. I am trying to write a program that grades the answers t...
[3 replies] Last: I've made the changes for the user input to be converted to upper-cas... (by xismn)
Need help on how to load an array by using a file
This is the file arraydata.txt 1 23 45 92 50 88 32 75 84 34 23 0 99 42 50 108 45 21 12 9 72 93 55 ...
[3 replies] Last: What specific problems are you having? If your answer is everything, t... (by chicofeo)
Got an assignment that's due in the very near future not exactly sure as to why the program will not...
[1 reply] : @AyakaSorii To fix the first problem, add a right curly bracket at li... (by whitenite1)
std::string vs QString
I am writing an application which will eventually be connected to a Qt GUI. In this application, I h...
[8 replies] Last: I introduce a string element in all derived classes. Both the console... (by helios)
error in program due today!!
Assume a class Window with accessor method getWidth that accepts no parameters and returns an in...
[2 replies] Last: THis is a programing lab question usually only have to do the main pro... (by ChungTong)
simple math program.
I am trying to write a simple program that takes a start and end number and determines the largest n...
[no replies]
Problem with data not storing to be displayed.
Hello, I am a beginner programmer currently in class, and I'm having some trouble with an assignment...
[no replies]
by mmgh
Undefined symbols for architecture x86_64
Hello, I have a linking problem. Would you please help me understand what is going wrong here? ...
[6 replies] Last: Oh! that was the point. thank you so much. It is compiled now. :) (by mmgh)
Converting shared pointer to object
Write your question here. Hi guys. I am working on an assignment and I only have to convert a shared...
[1 reply] : You can't convert a shared pointer to an object. You can use the share... (by Moschops)
Function Help
Hey everyone, I need some help with functions. I was instructed to add on to existing code (my addit...
[1 reply] : The computer isn't necessarily ignoring your function. You have just n... (by Tom56785)
Pages: 1... 6162636465... 78
  Archived months: [mar2016]

Cannot post in this page. To post a new message, go to the first page.