General C++ Programming - November 2014 (Page 24)

char to hex help
 
Having trouble converting char to hex. according to here http://www.asciitable.com/ รด in decimal i...
[2 replies] Last: thanks bro that worked! you're the best (: (by ShinAngel)
Need help for two dimensional array with vector
 
#include <iostream> #include <cassert> #include <vector> using namespace std; vector<int> fl...
[4 replies] Last: Inspired by a thread http://www.cplusplus.com/forum/general/147137/ t... (by prestokeys)
std::array<T> vs C style array performace
 
I'm implementing a container with special access to its elements. Under the hood I store the element...
[4 replies] Last: @jib - max_size is likely implemented like so: template<typename T, ... (by closed account 3hM2Nwbp)
"::ctime" has not been declared (SFML + C++11 in Code::Blocks)
 
I started a project and I'll use SFML and threads. When using sf::Thread, everything is fine. When I...
[2 replies] Last: No, it's wrong. Just ctime messing up. :| (by iQChange)
how to draw lines with different colors
 
I want to write a function called DrawLineSegments.This function must change the color of lines at e...
[1 reply] : I'm not at a PC right now, so no code, but you can write it really eno... (by Duthomhas)
Whats wrong?
 
Show how to implement the main queue functions Enque() and Deque() using two stacks S1 & S2 You a...
[4 replies] Last: nope actually the code is just a try of mine (which failed) the proble... (by Ali Tamim)
Assignment Operators
 
Does anyone know how to implement these header declarations? Set(Set); // Copy constructor operat...
[1 reply] : Set::Set(const Set& rhs) { /// do copy } ///...or if the copy constru... (by closed account 3hM2Nwbp)
Read from txt to vector
 
Hell there, What is up? void Equipa::alocaDirector (istream &isV){ string _name; string _age...
[6 replies] Last: Any help guys? Deadline is tomorrow and I really need this. (by Verance)
HELP
 
I CAN'T FIGURE OUT WHATS WRONG WITH THIS PROGRAM. ANY HELP APPRECIATED. /* * File: fillShapes.c ...
[1 reply] : Why do you think there's something wrong with it? Can you please use ... (by kbw)
Stacks. C++
 
Thanks
[1 reply] : If by stack you mean std::stack or if the stack has a properly impleme... (by Peter87)
stack implementation by struct?
 
can someone just tell me how this code actually works, and how can i let the user enter numbers, whi...
[no replies]
Ignoring negative values in array
 
I need to ignore negative values in an array, but not exit the function. For example if the user e...
[1 reply] : #include <iostream> std::size_t read_positive( int* array, std::size... (by JLBorges)
by zakels
Inserting user-input string to an array
 
I'm trying to code the program that will store item data. And I'm having problems to receive user-i...
[6 replies] Last: Ha ha I figured it out. InfinityCounter was right. Somehow I thought... (by zakels)
C++ Help
 
a. Write a function to judge two lines in the coordinate system being parallel, perpendicular, or ...
[5 replies] Last: The three cases need to be a 3-way if/then/else. Note that I've also ... (by dhayden)
having hard time with a few functions
 
part A void student_data() { } part B void findHighestScores(int) { } ...
[1 reply] : Alright let me try to understand what you wrote. I am just going to go... (by InfinityCounter)
Mario Sunshine paint effect
 
Always more theory based questions to see how people would do things! What do you guys think would ...
[6 replies] Last: Right, I think the images are 512x512 and there are several for each "... (by Hippogriff)
by a k n
Cryptographic security of std::random_device
 
Is it safe to use it for cryptography purposes say generating a salt ? std::random_device::entropy(...
[4 replies] Last: Okay , thanks . (by a k n)
Initializing n-dimensional std::array with a list of components
 
InitializeNArray<4, bool, NARRAY>()(narray, {1,2,3,2}, true); is supposed to initialize a 4-dime...
[7 replies] Last: Thanks for your explanation. Here is the full solution to my original... (by prestokeys)
by sebz92
sort a string array alphabetically
 
hello, i wish to sort a string array alphabetically and im not sure if i am doing it right. for exam...
[2 replies] Last: wow it worked. that was so simpleee !!! thank you very much! (by sebz92)
Cone Volume Calculator program
 
I'm working on below program and I want the program to do the same thing, but with not one main() fu...
[6 replies] Last: Thanks NT3 for the solution. However, I cannot use a 1 anywhere since... (by learner1234)
November 2014 Pages: 1... 2223242526... 32
  Archived months: [oct2014] [dec2014]

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