General C++ Programming - September 2016 (Page 5)

User Changing Char Values in a 2D Array
 
I really would only like help on my last function in this program, I can handle the rest on my own, I'm simply stumped. The function void do_step is supposed to...
[3 replies] Last: Thank you very much, but yes I know that I have yet to use my function... (by juiceyjuicekid)
compartor function in sort
 
Can someone please help me with the sort comparator function? I am getting below error: In file included from /usr/include/c++/4.9/algorithm:62:0, ...
[6 replies] Last: Read: http://www.cplusplus.com/reference/map/map/ (by keskiverto)
I need help for this!
 
how to create for example enter your name: Charlie and when press enter in the program see: C Ch Cha Char Charl Charli Charlie on another name.
[1 reply] : Why not start doing your code? If you get stuck in some section, feel ... (by closed account iGLbpfjN)
detect if user input is a number or no
 
Hey everyone, I was recently making a project that requires user input some numbers, however if you type in a char or some random words it goes all crazy. pleas...
[13 replies] Last: your example is too complicated, and it is too long. Why do you think ... (by closed account oNA4216C)
by Tarbal
TNT library cannot multiply matrix times vector. Please Help
 
I figured out a workaround
[no replies]
by Faz777
vector
 
Then, I delete the pointer to get the second element in the line where I put it in the pointer. My function compiles, but, when I run it, it gives me a segment...
[2 replies] Last: Thank you for your very good input. Apparently, you have an advanced ... (by Faz777)
HELP with Structs and arrays
 
I am new to structs and I am a bit confused. what I am trying to do is pass values from a txt file into a structure, and then passing the struct into an array. ...
[17 replies] Last: The txt looks something like this 02 3 2004 Paul 4 1 22 I'm guessing... (by Chervil)
how to use this C / C++ source?
 
I use a bruteforcer (ncrack + visual c++) and someone told me to use this code to open more threads,this is the code,i don't know how to use it can someone show...
[no replies]
by Faz777
Separating values
 
Hello all, I input data from a file into an array of strings, where each string represents a complete line from the file(the elements in each line is separate...
[4 replies] Last: Great!! Thank you so much. (by Faz777)
check for duplicates in array
 
Hi. I'm trying to check for duplicates and prevent them from being added in my array. I wrote a loop in the addin function to check if a name is a duplicate and...
[6 replies] Last: #include <iostream> #include <cstring> using namespace std; void ch... (by closed account 48T7M4Gy)
Median, mode, range, average calculator
 
I made this program that makes you enter some numbers and then puts the mumbers in order. It also calculates the median, average, range, mode. I would like you...
[3 replies] Last: Either the header #include <cctype> or the header #include <clocale>. (by SakurasouBusters)
Formatting output a certain way
 
My question is, how do I get my output to display like the photo below? If you run my code, you'll see that everything works, but the numbers don't have the ...
[15 replies] Last: If you are required to have 8 columns per line then what you see is wh... (by closed account 48T7M4Gy)
Time value manipulation with time_t and date_t
 
I am receiving a date structure in "24-9-2016 13:30" format. Now I want to convert time value to specific timezone, I am doing calculations and have number of h...
[no replies]
DataSet / Datatables in C++
 
Hello People, I need to Parse XML file and put the parsed data into datatables but I am new to C++ and I dont know how to create this. While serching this on go...
[no replies]
cropping pgm file with 2d vector
 
I attempted to write a function that crops a pgm file which is stored in a 2d vector that is passed to the function. The rectangle starts at row r and column c ...
[no replies]
Can't get output to display 8 numbers per line
 
I've literally been trying to figure this out all night, but I can't seem to get my output to display 8 numbers per line, so 8 columns of numbers. I can only ge...
[12 replies] Last: @Duoas Thank you, I really appreciate it. All I was wanting was a br... (by LullaBelle)
template class: how can initializate a typename?
 
see these code: template <typename T> class property { public: T PropertyValue; std::function<T(void)> getf; std::function<void(T)> setf; p...
[no replies]
Input errors
 
My program is having a hard time reading an input. Whenever I run the program, the output file becomes a mass of symbols, Can anyone please tell me what I'm doi...
[6 replies] Last: Using the getline conversion worked. Thank you (by garretmorion)
Having trouble using/implementing one of my functions properly
 
Figured it out.
[no replies]
by cmisip
Reading serial port when data available, not getting data
 
Is there something conceptually wrong with this piece of code. I seem to be able to parse the start character and the sensor ID but I get no data bytes. x is ...
[5 replies] Last: Here are the images: https://postimg.org/image/7j9f25as1/ https://po... (by cmisip)
September 2016 Pages: 1... 34567... 19
  Archived months: [aug2016] [oct2016]

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