No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hi, I'm having problem with my linked list. The program I'm making should read in positive and negative numbers and put them into two separate lists. The numbers should be in rising order in the list. example: input: 3 5 1 -6 -2 -1 printing out the lists: pos: 1 … | |
Hi, I've used getline and pushed back a text row into a vector. The vector is of string type and I want to sort out the numbers and store it elsewhere. in my vector: The man is 67 years old and driving an Oldsmobile Rocket 88 I want to sort … | |
Hi guys, I'm trying to find a way to read a chosen line from a text file. Like I want to read line 2 and then the program will find the second text line for me to read. Any tips? :) | |
quick description: f(n)=n/2 if even f(n)=3*n+1 if odd with given start value it can step back and forth between the two eqtns. Example: f(7)=22, f(22)=11, f(11)=34, f(34)=17 You enter two start values. first and last start value and the program should generate all values in between. With a given max … | |
Hi, I've just started with c++ and I have no clue how to do this. Right now I have a code that just printing out the text lines in my file and how many lines there is just to check that i can read from my file... But what I … |