Beginners - January 2017 (Page 4)

by altabz
unable to find iostream
 
Write your question here. when i compile c++ i was unable to find the header but when i use stdio.h it works of it's the wrong compiler right? so how would i c...
[13 replies] Last: down loading process is like a snail pace in is this normal for visual... (by altabz)
digits to words
 
#include<iostream> using namespace std; int first(f) { switch(f) { case 1: cout<<"one hundred"; break; case 2: ...
[2 replies] Last: no output.please help Yes. You don't get much output from code that... (by cire)
hollow rectangle
 
Alright, so I need help with creating a hollow rectangle. I already have a code for a filled out one but I don't know what I need to change to make it hollow. I...
[4 replies] Last: Consider using string's fill constructor. http://www.cplusplus.com/ref... (by integralfx)
C++ Class composition Question: How to set the private variables of a class that's within another class from the main ?
 
The class "Bank" has within it an array of objects of type "Account". The bank class has a getter function for the array of accounts that returns single object ...
[1 reply] : Returning a mutable reference is basically how the operator is impl... (by xismn)
by raminM
Turning a for loop to a do-while loop?
 
Hello, how can I change my for loop to a while loop? I am currently on the right path I think but the first 2 iterations are not printing the correct output. ...
[4 replies] Last: A bigger question is why you want to do this? IMO it just makes the co... (by TheIdeasMan)
derived class error
 
I keep get an error saying: error expected class-name befor '{' token #ifndef EXTCLOCKTYPE_H #define EXTCLOCKTYPE_H #include <string> class extCl...
[1 reply] : You have not defined clockType. (by Peter87)
by tNK
Looking to pay someone for help on Skype
 
Hello, I am looking to pay someone to assist me on Skype when needed for c++. Yes I am aware that just because I have someone on Skype it doesn't mean I can l...
[1 reply] : Why don't you ask your questions in public so that the information y... (by mbozzi)
by dmo
trying to implement 2 functions into my code
 
I'm trying to implement two functions in my code RequiredData() needs nmarital status, gross salary, and perecentage contribution & TaxCalculator()needs the ret...
[2 replies] Last: Hello dmo, After working on your code for awhile I found there are so... (by Handy Andy)
by waleec
how to ignore the rest of the string
 
I need a function that ignore reading the rest of a string For example if a character is "/" I want to ignore reading it and what comes after it till the end ...
[2 replies] Last: There are many ways to solve this. I show just two examples below. #... (by Chervil)
quadratic assignment problem
 
does anyone has an example of coding for quadratic assignment problem? please help me
[2 replies] Last: im sorry, i want to delete the first one but i didnt know how to do it... (by shuthairah)
What is my error? (1,2)
 
Soooo I am using SFML and I am trying to load sprites. But, when I tried to run it, it crashed. I am actually clueless at why it will not work. #include <...
[21 replies] Last: You have trolled numerous times in the past, and have actually admitt... (by helios)
by zakaa
(Game) Monster droplists
 
I am looking for a efficient way to store the data of what monsters will drop when killed. All my items are classes, using inheritance. What I was thinking i...
[no replies]
how can i walk through a array of pointer?
 
*p = (ifstream &operator >>(ifstream &in ,DATA & d); is *p the way i can access to the First DATA in the pointer array? Infile content 1 john smith 2.0 2 ki...
[4 replies] Last: Hi do you know why when i try to do the same with ostream. I got an ru... (by zeroisk)
Reading data into parallel arrays.
 
Hey guys, so I'm coding a program to read data from .txt file and sort into multiple arrays and then display in a table setting. The problem that I'm having is ...
[1 reply] : it seems to be having problems reading the file That's pretty nebulo... (by xismn)
I need some help with an assignment ASAP
 
Here is the prompt for the question that I need to answer. I am getting several error messages that will not allow me to compile. Any help would be appreciated....
[5 replies] Last: http://www.cplusplus.com/reference/ios/defaultfloat/ (by integralfx)
by pumzye
No Output on Screen
 
Hi guys , how do i get the program to display the average and standard deviation . there is no output on my screen. #include <iostream> #include<cstdlib>...
[1 reply] : http://www.cplusplus.com/forum/beginner/207129/ (by closed account 48T7M4Gy)
map - find if key exists and get value
 
I have a map and am doing a check to see if key exists and if so, get the value. Program is crashing and getting the following error from Visual Studio. "Debug ...
[3 replies] Last: Well, nevermind. Figured it out. The error was actually somewhere else... (by thomaselder84)
dynamic memory question
 
Hi guys I have a short question,I'm just wondering how come when you set a pointer to = data in dynamic memory how come you don't use &? for example ...
[3 replies] Last: Why would you? (by Peter87)
How do I get an age to not display from file if it doesn't meet a range?
 
So I have a code here that is suppose to sort out all the names in order by last name, as well as keep the age with them. I have all that. However, I seem to be...
[1 reply] : Consider creating a class or a struct called Person to store the first... (by dhayden)
by pumzye
Help - For loop not working properly
 
Hello My for loop is not adding up the numbers together but picking up single value of the array for the julian date program //Write a program that conver...
[5 replies] Last: thank you . (by pumzye)
January 2017 Pages: 123456... 24
  Archived months: [dec2016] [feb2017]

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