Beginners - September 2014 (Page 47)

Not sure what my errors mean or how to fix,
 
This is my first lab in my object orientated programming course and im having a lot of issues so far...
[2 replies] Last: use double quotes for string. a.setName("Henry","smith"); ... (by shadowCODE)
Filling an array with random numbers
 
Back again with another question. I do not understand how to input random values between 1 and 100 ...
[1 reply] : Question has been answered here http://www.cplusplus.com/forum/beginne... (by shadowCODE)
Arrays, looping, random numbers and output
 
I'm struggling with a particular function I'm being tasked with. Severe beginner here, trying hard ...
[1 reply] : #include <iostream> #include <cstdlib> //for srand() #include <ctim... (by shadowCODE)
Help with non homework problem
 
I've been a little rusty over the years and I've seem to forget most of C++. I have a problem here t...
[2 replies] Last: Finally, write the function WriteData ( ) that:  Prints a title lin... (by rb26dett26)
by Tekane
reinterpret cast problem
 
I'm reading from a file and I came across this in a function. While(infile.read(reiterpret_cast<cha...
[3 replies] Last: Assuming "infile" is open in binary mode and "sizeof(studen)" is a typ... (by Computergeek01)
by h4ever
links doesn't work
 
ARRAY links on the right doesn't work: http://www.cplusplus.com/faq/sequences/arrays/ where can I ...
[1 reply] : Those links don't work because that's a work in progress. I'm certain ... (by Computergeek01)
Issue with strings and vectors
 
I'm trying to make a small program to convert a basic text file to XML without using any other libra...
[18 replies] Last: I still can't figure out why it isn't finding the eof right. (by Monobus)
c++ network programming
 
which is better for c++ network programming , boost.asio or socket programming
[1 reply] : Your question doesn't make any sense OP. Please rephrase. (by Computergeek01)
by h4ever
Problem how to calculate size of "Array"
 
From different languages I am used to arrays, here in C/C++ it is a bit harder. Can you help? I am w...
[3 replies] Last: Any time you see type * you are looking at a pointer to type , whi... (by Duthomhas)
output showing 2.34777e-317 on the note pad
 
#include<iostream> #include <stdlib.h> #include<fstream> #include<string> using namespace std; ...
[8 replies] Last: thanks guys for help :) (by Jenneyman96)
by nasser
can't understand the header <sstream>
 
i have read it a lot on this site but can not understand the header <sstream> I know many of basics...
[1 reply] : This header is required for stringstream: http://www.cplusplus.com/re... (by coder777)
Code::blocks data file
 
i use Code::blocks to compile my C++ programs how ever in this program of mine the Data File Codes d...
[3 replies] Last: Anything? Does the file get created? If yes, is it 0 bytes long? I ... (by keskiverto)
Problem with looping (for)
 
Hey, another question. In this program I'm asking the user to input a word at least 5 characters, th...
[2 replies] Last: Thanks Helios :) (by Wulfinite)
'\n' vs "\n" vs "endl"
 
I know this has been questioned several times and I have already read some of the related previously...
[5 replies] Last: Thank you all for your comments. I get the point now. (by OmidMech)
by eltee
select the value stored, decide if its invalid
 
unable to build file and run file... any ideas? #define PI 3.14159 #define MAX_I 1000 #include <...
[1 reply] : Are you using a c++ compiler to build it? (by giblit)
Please help me understand this part
 
Hi Everyone, I want to start off by stating I decided to learn c++ as my first programming langua...
[2 replies] Last: Thank you norm b!. Inserting also the cout command to display index1 a... (by LightningBlaze)
by gingy
Function to Print Iterations of a List Not Doing So
 
I have a simple program that, for now, initializes a list of class objects with variables in the con...
[11 replies] Last: I apologize for the confusion. The problem turned out to be what coder... (by gingy)
by weee
help understanding 'T (&)[N])'
 
i came across this snippet, couldn't understand some part of it template <typename T, size_t N...
[1 reply] : It is a reference to an array. Normally there would be the name of the... (by LB)
Help with sorting an array of strings
 
I'm having trouble sorting an array. I need to sort an array of five names alphabetically but am not...
[5 replies] Last: Ok, so I finally got my code sorted out! Thanks Yanson, that include ... (by eladage)
September 2014 Pages: 1... 4546474849... 51
  Archived months: [aug2014] [oct2014]

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