Beginners - December 2016 (Page 26)

Explain istringstream
 
Hi you all, I have a part of a code that I'm trying to understand. The program lets you put in a start and a end time(hh:mm), and then calculate a price depend...
[9 replies] Last: I don't want anyone to do the thinking for me. I just haven't found an... (by markusfurst)
Trouble with Dynamic Array
 
I'm building a flat-terrain generator for DX, and I need to make the size of the terrain according to passed-parameters. I have a working algorithm, which uses...
[5 replies] Last: Ok, I think I got it. The problem was, in fact in the v_buffer loader.... (by pharoah0110)
HELP!! Randomly assigning passwords
 
I,m trying to create a code that takes to .txt files with names and passwords to create usernames and then randomly assign them passwords. I keep getting errors...
[no replies]
Getting wrong output when outputting Odd array
 
Hi, I wrote this code to first get an array from input. Then move odd numbers from this array to the odd array and Even numbers to the even array. All is work...
[4 replies] Last: Thanks Chervil. This actually cleared a few questions I had about init... (by iamMali)
by Cipota
CLASS inheritance....GOING LOCO!!!!!
 
C++ ....CLASS inheritance.... why am I getting this one error in my code???? it is driving me CRAZY!!!!!! PLEASE HELP....going loco!!! sleep deprived + suck at...
[2 replies] Last: The colon should be before public . class employeeType : public ... (by Peter87)
by years
Function to "reset" a variable
 
This is probably a stupid question, I just started C++ like a month ago so forgive me. So basically, I don't know how to create a function that allows me to res...
[6 replies] Last: [quote=boost lexical cast]I did the above for nothing... ... and if y... (by Peter87)
by Scuffz
to_string() only working for small numbers
 
trying to input a credit card then convert it to a string so I can work with each individual number, now when i do a number like 323213 it works, but if I do a ...
[5 replies] Last: This blog tests 16 (yes, SIXTEEN) different ways to convert int to str... (by gunnerfunner)
by Stylx
Default constructor for std::regex_iterator
 
Dear all: How does the default of constructor of std::regex_iterator "know" where the end address of the sregex match is ? For example in the code below: M_e...
[2 replies] Last: I already read this but didn't got it then. But I think I understood i... (by Stylx)
How to work on convolution programming ?
 
Hi guys , please help me .. i need to blur an image on pgm format . but i dont know how to do it .. i done do the output file ,, and try to work on it , but...
[2 replies] Last: [quote=Golden Lizard]You should open and treat it as binary. Or just u... (by boost lexical cast)
weird output when i was filling an array HELP
 
when i do this for (int i =M+1;i<=E;i++) //filling up the left Side { L[K++]=int(A ); cout<<L <<endl; } i get this in which 419...
[2 replies] Last: thanx ^^ (by zeroblank)
Need help printing out elements in an array
 
Here is the problem I've been given to work with. Write a for loop to print all NUM_VALS elements of array hourlyTemp. Separate elements with a comma and spac...
[3 replies] Last: #include <iostream> using namespace std; int main() { const int ... (by boost lexical cast)
Error:conversion from 'double' to 'int', possible loss of data
 
There is an error conversion: Error message : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data warning C4244: '+=' : conversion ...
[6 replies] Last: @boost lexical cast @keskiverto thanks for the response. I managed to ... (by DesmondLee)
need help with sort in alphabetical order.
 
I need to have it sorted in the add function by alphabetical order. (not using vectors). so say the input is c a b then output would be a b c. right not it outp...
[2 replies] Last: Didn't change your code base. The code does what you want now. #inc... (by boost lexical cast)
Why does this program displays not responding at end of input?
 
I made this program as a project but it does not respond at the end of input loop.Can anyone help me fix this and explain whats wrong? main.cpp #ifndef PLA...
[3 replies] Last: There are a lot of inconsistencies. There are constants const int N_P... (by Chervil)
Array Struct help please :)
 
For my project I have to follow this outline Objectives To learn to code, compile and run a program containing an array of structures. Assignment Plan and c...
[2 replies] Last: The problem stems for printallsortedincome() which is passed the array... (by gunnerfunner)
Trouble Understanding Dynammic Programming: Best Increasing Sublist
 
So for one of my assignments we've been told to find the BIS based of the users std input. The link to the assignment (along with the algorithm for BIS) can be ...
[14 replies] Last: yea kinda of, did u test it and see if it works on the test file he ga... (by zercool364)
conditionals QQ
 
Hello. I was testing conditionals, It work but doesn't work properly. I cant figure out what i did wrong #include <iostream> using namespace std; int m...
[2 replies] Last: Oh right. Thx (by mary9734)
by Boker
Strict weak ordering with Coord structure
 
I'm trying to implement A* but am getting getting error C2678 because i am using std::set with my coord structure: std::set<Coord> closedSet = {}; std::s...
[1 reply] : > getting error C2678 no idea what that is. ¿didn't your compiler pro... (by ne555)
Transfer Variables between Windos Forms
 
Hello all I am new to windows From concert and I am having one problem with my application. I am creating a rather complex GUI via windows form and I want...
[3 replies] Last: You can see the main form as a kind of controller and the child forms ... (by Thomas1965)
C++ project
 
So I am a beginner C++ student and I have been working on this assignment for about a week now. Listed below is the question given to us by the professor. Yo...
[1 reply] : This is my cc file /**************************************************... (by David0001)
December 2016 Pages: 1... 2425262728
  Archived months: [nov2016] [jan2017]

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