Beginners - November 2014 (Page 3)

file IO with structure
 
I'm having a problem reading a structure from a file, but it works fine saving to a file. I get t...
[3 replies] Last: No. If you want to space it out, file>> u1.name >> u1.phoneNumber >> ... (by shadowCODE)
function output problem
 
Hey all so I got a vending machine program and I'm having trouble with this last function to calcula...
[1 reply] : duplicate post w/reply here http://www.cplusplus.com/forum/general/149... (by wildblue)
by harrie
done
 
done
[no replies]
by dean
Extending std::streambuf, how to reset the buffer once EOF has been reached?
 
Hello, I'm try to extend a std::streambuf, to forward the data over a socket. The issue I am faci...
[1 reply] : Looks like for your buffer of 4, xsputn("alpha",5) returns 3, indicati... (by Cubbi)
unordered maps
 
Hi, Is there any good example for std unordered map and std set implementation?
[2 replies] Last: unordered map http://www.cplusplus.com/reference/unordered_map/unorder... (by shadowCODE)
IF greater than this BUT less than that?!
 
How do i do this function so IF the totals are > (larger amounts) than the rest but < (less) than th...
[5 replies] Last: right guys! i manalged to do the top solution, it was error free howev... (by DriftKing13)
C programming about distance, please i need help
 
i am asked to find Euclidean distance of some cities. I will be given Latitude and Longitude coordin...
[7 replies] Last: thank youuu (by closed account DLUk92yv)
can someone please help me solve this question
 
Q. if originally x=4, y=0 and z=2, what are the values of x,y and z after executing the following co...
[3 replies] Last: x=4, y=1, z=2. and to write a program on this question you copy the c... (by nonsence90)
Reading from a file and storing the data into a structure (1,2)
 
So what I'm trying to do is to add information to each individual member of the structure with the c...
[28 replies] Last: Done, easy enough. Problem solve. Thanks for taking time out of your d... (by deathslice)
Tests c++ online
 
That's a topic I want to open, I suggest here to throw links to free online tests for C++, also prop...
[1 reply] : I'd suggest to apply for an actual job position. It usually involves a... (by dean)
Undefined reference - what changes needed in CMakeLists?
 
I have a large amount of code, so I have tried to only include the relevant parts of the code here
[2 replies] Last: This thread is also handled at http://www.cplusplus.com/forum/unices/1... (by tcs)
Array of Structs: Function calls “Undefined” even though they are declared
 
I am getting 6 errors all pertaining to my function calls in Main. It is saying each identifier is "...
[7 replies] Last: Thank you, I'm still getting a bunch of errors in main function calls.... (by JoJodoggy1)
deleted
 
Hi, I am beginner in C++ and I'm trying to figure out how to create a program to check if different ...
[13 replies] Last: How (by andromeda121)
Programming Style Question
 
I have a few variables that will be equal to powers of 10, would it be more appropriate to hardcode ...
[15 replies] Last: difficulty d when implicitly converted to an integer type will have ... (by JLBorges)
by davtk8
Counting number of vowels in a string (1,2)
 
I want to count all the vowels in a string (a, e, i , o, u) and display it as a text-based histogram...
[21 replies] Last: Yes you could, but, hmm.. if (text == 'a' || text == 'A') Mayb... (by megatron 0)
Table of objects
 
Hi! I have this kind of problem: My program should work like this: 1.Input the number of points tha...
[2 replies] Last: ok now it all works corectly but I have to think about it cuz its real... (by martin619)
New to C++
 
Hey guys, I'm new to C++, I'm reading the C++ primer book, sixth edition, and in chapter 2, listing ...
[6 replies] Last: Hi, I was referring to the function prototype. It does look like the... (by slimg00dy)
HOW TO MAKE A CURSOR (WITHOUT USING GRAPHICS)
 
List of commands: [ALL COMMANDS MUST BE IMPLEMENTED IN SEPARATE FUNCTIONS] 1. fd or forward [e.g....
[5 replies] Last: Guys i tried everything!! This project is future impossible for me!!! ... (by usman321)
program sometimes takes letters, it shouldn't.
 
When I run the program and try entering a letter it will either tell the user to re-try and enter a ...
[4 replies] Last: int input Taking note that this one is declared without definition (... (by rjvc)
by Nanyo
Exit from console
 
Hello, everyone, I’m making a program in which, at the end, the user is asked to press ‘e’ to...
[8 replies] Last: If you run the program through the command prompt, the window will sta... (by megatron 0)
November 2014 Pages: 12345... 65
  Archived months: [oct2014] [dec2014]

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