Beginners - March 2014 (Page 70)

Identifying objects
 
Hi guys, a quick question. If I have a Base class, and say two derived classes A, and B with some virtual functions, and set things up thus. std::ve...
[3 replies] Last: std::vector<Base> base; This creates a vector of Bases, no A or B ca... (by Cubbi)
Structures Help
 
Hello, I have this code where I have finished and have tried reopening the project and running it again before I submit it for college. When I run the code in C...
[8 replies] Last: You are the best person I have talked to about this!!! Thank you so mu... (by AlvaJames)
having trouble on assignment can anyone help?
 
so I have a homework assignment that im working on that im having trouble with. I have found someone else doing it on here but they used arrays and we haven't l...
[1 reply] : If you do expect an unknown number of values in unknown order, then yo... (by keskiverto)
Positioning Functions
 
I want to display these two functions as two columns next to each other. Ex: Column1 Column2 8 9 10 ...
[2 replies] Last: I can't get rid of the "Heading" function (my teacher wants two functi... (by banmail2)
Number sequence
 
please can i get some assistance. I need to write a code to display a given number sequence based on the amount of terms the user wants. The number sequence is ...
[2 replies] Last: it starts at 100 and ends ar zero. but will only display the number or... (by yusufseedat)
by ckratz
altering output based on newline check
 
I am doing an assignment that requires me to read lines of data, of various data types, from a text file which represents phone lines on an account. My text fi...
[4 replies] Last: Zhuge: That is essentially the idea but unfortunately I can't seem ... (by cire)
Help with Homework assignment
 
I have been looking at this til my eyes are crossed. The assignment is to convert an "alpha" phone number into the corresponding digits allowing the user to en...
[3 replies] Last: OH..thank you!!!..I was really getting a headache. (by tdenning)
How TO Convert Integer To String?
 
for string to integer is "stoi" function what about integer to string?
[1 reply] : http://www.cplusplus.com/articles/D9j2Nwbp/ (by unsensible)
by wolfv
return stringstream from a function?
 
How to return a stringstream from a function? There are many examples online of passing stringstream into a function; but I did not find anything about retur...
[3 replies] Last: Thank you again Catfish666! (by wolfv)
by aju33
Exercise in Array Processing
 
Hello! I've been posting for a little while. I truly appreciate the help I find here at cplusplus. THANK YOU!!!! Ok, I have to learn about arrays, and wha...
[1 reply] : Now save it in the input file in binary using object serialization. ... (by pukol)
by pukol
Sentinel value
 
How do i end the for loop once i press enter.. It's a log-in password so once i press enter it should proceed to the next step but it doesn't. please help ...
[no replies]
writing multiple records to a file and displaying them all
 
My program compiles but doesn't actually work. It seems to only display the last record entered where I want it to display all the records that are entered. I ...
[2 replies] Last: MiiNiPaa! Thank you! I can't believe it was that simple. I kept try... (by mathisona)
Count controlled loops and functions
 
Im writing a program that reads numbers and either classifies them as prime or prints their prime divisor, for a class. Im trying to understand what is being as...
[no replies]
Stock Trading Database
 
Hi. i'm new to the forum and am new to c++. I am looking to work on some programs while waiting for classes to open up at my CC. I have an idea for a stoc...
[4 replies] Last: how about libcurl? is that something I would have to download and link... (by chamburger)
Max until Sentinel
 
Ok so I've been assigned a code to write that seems fairly easy but I'm having trouble figuring out one thing. I understand iteration and while loops but I don'...
[5 replies] Last: Haha, I just solved it right after entering the question again...this ... (by RobGillespie)
Library String and String Literals are different
 
What do they mean when they say this in my book? "String literals are not standard library strings"
[2 replies] Last: Thank you L B. (by closed account EwCjE3v7)
Programming "q"to quit
 
The program generates triangles continuously. I want when the user inputs the letter "q" that the program will terminate. How do you program this? And if the us...
[11 replies] Last: Thanks a lot! Appreciate it! Have heard of this atoi however was unsur... (by JasonMcG)
Linked-List struct data type
 
How do I declare an instance of the linked list with the data type of a struct. For example... class DVD { private: struct disc { int length; strin...
[4 replies] Last: Thank you I will try that! (by Lilspree)
by cyter
how's result 7?
 
How's the result 7 in the following code? void foo(int i){ if(i>1){foo(i/2);foo(i/2);}cout<<"#"<<endl;}
[1 reply] : What do you mean? 7 what? (by Peter87)
having issues with arrays of structs
 
So i keep trying different things to get an array to hold my structs and my latest has me trying to use pointers but kinda at a lost and need to be pointed in t...
[5 replies] Last: Haha, i am not sure i fixed that right before i saw this post! It is w... (by robozzz)
March 2014 Pages: 1... 6869707172... 79
  Archived months: [feb2014] [apr2014]

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