Beginners - February 2016 (Page 45)

Help with reading in a line of string
 
Hello, Thanks for your help. line of code user enters: Hi + Henry = polite is it possible to stor...
[2 replies] Last: i need to store the operand for later use..because the user has the o... (by nameishi)
expected initializer before '*' token
 
getting error as-expected initializer before '*' token. <static NI_6289 *NI_6289_0;> ...
[3 replies] Last: What are you trying to do? Are you trying to create a static NI_6289-p... (by Moschops)
typeid and dynamic_cast implementation
 
Hi, as you see I'm having problems figuring out the implementation of these 2. I read on StackOverfl...
[no replies]
Need help with reading from file line by line.
 
I have an assignment to create a quadratic formula program. I need to read from a file and calculate...
[1 reply] : To read a file line by line, you could read the entire line as a strin... (by Chervil)
What is the logic in finding the highest and lowest of n?
 
Okay so I have been learning C++(obviously beginner) for a few monthsand my Prof. gave me a problem ...
[1 reply] : Your code is good but you need to first enter q and then to check if i... (by naaissus)
Need help with struct and class
 
I want a complete example on the use of a struct inside a class. I want to know how to initialize it...
[14 replies] Last: Yes I want to initialize a value on line 11. I know you can use a cons... (by Stalker)
Help with free fall code (distance, velocity, etc.)
 
The goal here is to write a code that will calculate whether or not a water balloon can be dropped o...
[6 replies] Last: My opinion is that you should develop the algorithm first, then write ... (by mido70)
PROBLEM WITH FILE HANDLING IN C
 
hello i am new to c and practice on file handling in c.... and program of how to merging two txt fi...
[7 replies] Last: @Chervil...thanku for your help...actually i want to change in first s... (by sachinmm)
Multiple Types for templated vector
 
Why do all vector types have to be homogeneous even when using templates. I have tried having multip...
[5 replies] Last: #include <iostream> #include <vector> #include <functional> struct w... (by JLBorges)
one-to-many association
 
I have to create a one-to-many association for one of my practice assignments with Employee and Mana...
[14 replies] Last: Hi, There are some of my comments from my last post that still apply:... (by TheIdeasMan)
place value of an array
 
Is it possible to change the place value of a value in an array. I have a char array and i want to t...
[3 replies] Last: Use string streams. #include <iostream> #include <string> #include <... (by xismn)
Stuck on lab assignment.
 
I require assistance on my code, I'm new to using iterators, and in the my lab today we were instruc...
[4 replies] Last: hmm I see, thank you! Any suggestions on where to look for to get a be... (by WhatHaveIChoosen22)
getline problems
 
I'm asking the user to input 4 values in this order: int int int and a string The string t...
[1 reply] : Ok I found the solution, I put cin.ignore() right before I did getline... (by alex067)
Help me create this program
 
Create a small game using C++ that has you fight one monster. Your fight must be turn based at least...
[2 replies] Last: I recently did a similar code for a little text RPG I did. I took out ... (by stealthboy)
MessageBox Error
 
I am getting these errors when I create a messagebox. The errors are below my messagebox code. Me...
[5 replies] Last: Okay thanks. I used MessageBox::Show("message", "title"); and it w... (by Tomoko Kuroki)
by m0bb1n
How to go to another function
 
Hello, I want to run another function after an if statement. The problem is the function I want ...
[2 replies] Last: either that, or just call it recursively (by RUNNER PRO AGARIO)
by skhjr
Reading text file into an array
 
Can someone tell me how to create a function to read a text file into an array? The function main m...
[2 replies] Last: Something like this if the text file has numbers infile >> array ; f... (by Stalker)
Accelerated C++ istream problem
 
//This is from <<Accelerated C++ >> Chapter 4 or 5 //This is a program reading and calculating Stud...
[4 replies] Last: @Peter87 Thanks ,That's the answer I want ,It makes sense (by sail456852)
Initialization Lists
 
Do initialization lists get called before or after the function logic. template <class T> myA...
[3 replies] Last: Also note that the variables are initialized in the order they are de... (by keanedawg)
Calculating
 
I have been learning about C++ for a couple of weeks, and I have done the most basic operators so fa...
[4 replies] Last: Note: I'm not very familiar with C++ syntax. Because of that lap time ... (by naaissus)
February 2016 Pages: 1... 43444546
  Archived months: [jan2016] [mar2016]

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