General C++ Programming - February 2015 (Page 11)

i want to learn more
 
Welcome dear friends, I want to be learn more about c++ . I am boring in DOS. I dont have any source about for Windows Api. I am interested in c++ and da...
[1 reply] : Install Visual Studio as development IDE and MSDN as documentation. Bt... (by Konstantin2)
Why is there no std::to_string() for string?
 
Hey guys, I have a Method that prints a Tree. I have a Tree where the Keys and Values are std::strings and a Tree where the Keys and Values are int's and i w...
[4 replies] Last: Okey thanks for the information, so std::to_string really was only sup... (by Gamer2015)
[C++/SDL2] Player not moving constantly
 
Hello guys Im using SDL2 but I'm encountering an unexpected error. I have implemented the same method to move as in my old Projects, but the Player appears t...
[9 replies] Last: I'm glad i could help :) no Problem (by Gamer2015)
I need help with my assignments. Please they are due 2/18/15
 
My teacher hasn't really taught me how to do these and I can't get ahold of him and I need a good grade. Hopefully someone will understand and help me. Thanks! ...
[1 reply] : http://lmgtfy.com/?q=C%2B%2B+beginner+tutorial however, your assignme... (by Gamer2015)
Image to 2D array
 
A few months ago I wrote a simple neural network using back propagation algorithm. It's input is a 2D array of any given size and type. I tried to make it learn...
[1 reply] : As for how you get the RGB values from an Image you could try this Gen... (by Gamer2015)
Vector int sorting
 
Hi all, I'm new here, so I apologize in advance if I do anything noobish. Nice to meet you all. I want to sort a vector int in ascending order, but when I...
[2 replies] Last: int sorted (vector <int> a) when you call this function, a is passed... (by tipaye)
Tree data structure to represent category and subcategory of products
 
Given a product category and sub­category representation: a. Come up with a tree data structure to minimally (in terms of storage) represent this b. Write ...
[5 replies] Last: some one please tell me the running code of this problem its urgent (by kash6)
by Dkob1
continue(y/n) loop problem?
 
#include <iostream> #include <iomanip> #include <string> #include <cctype> using namespace std; int main() { char c, response; int Uc = 0, Dc=0...
[13 replies] Last: nvm counted wrong, thanks for all the help. (by Dkob1)
Simple implementation to code
 
lll
[2 replies] Last: The code seems to be reading character frequency, not making replaceme... (by Zhuge)
improve your muscle with best supplement
 
I think you kind of ate that stuff and went mad and forgot where to post such things... :)
[2 replies] Last: You are right bro.... :) (by HabibAurangabad)
by sly858
Stuck on a challange
 
Stuck on a challange to have user input a value and determie if it is a palindrom; I tried reversing the checks and still the same and the cout's for each line ...
[1 reply] : Hmm looks like you're having some fun learning! here are some handy r... (by ultifinitus)
Error on assigning new char value from struct
 
Well I tried to assign a new char value from a struct to another char variable but I got the "Cannot convert 'int' to 'char'" error when compiling. I've tried s...
[1 reply] : Please use [/co de] tags. Also, please indicate where the error occu... (by Zhuge)
by Aman03
random dice roll help
 
#include <iostream> #include <ctime> #include <iomanip> using namespace std; int main() { srand((unsigned)time(NULL)); int die1, die2, total; c...
[3 replies] Last: Thank you Peter87! (by Aman03)
Quadratic formula loss of significance and simplification
 
Professor asked us to write codes that could solve a quadratic formula, and my codes are like this: #include <bjarne/std_lib_facilities.h> int main() { ...
[2 replies] Last: I figured question B out by myself else if (a!=0 && d>0 && x1*x2!=c/a... (by lckwswws)
waking up after two days
 
http://www.reddit.com/r/fayer/comments/2w42qg/
[3 replies] Last: @ gamer2015 - Please do not reply to spam. Doing so makes it impossi... (by AbstractionAnon)
by tmason
Using std::greater and std::sort with objects ...
 
Hello, So I am attempting to use an std::sort algorithm with a vector that has pointers to my objects. So my vector definition is like this: std::vecto...
[3 replies] Last: Clarification: no. See: http://www.cplusplus.com/reference/functional/... (by keskiverto)
No such file directory for 3rd party software
 
I am trying to use the KiFMM3D software with my code. I am compiling code in C++ and everything looks fine but I am getting an "no such file or directory" error...
[2 replies] Last: If you look at Line 5 of that first error you'll see that the director... (by Computergeek01)
Can some one change this code for me to match the HW assignment?
 
ooo
[no replies]
Visual Studio and c++11
 
I go back and forth between two computers: one with Windows 7 and one with Windows XP. On Windows 7 I have VS 2012, on Windows XP I can have only VS 2010. My...
[11 replies] Last: Thanks, I'll have a look at all this. (by Clint Westwood)
operator overloading
 
#include<iostream> using namespace std; class A { int i; public: A(int ii = 0) : i(ii) {} void show() { cout << i << endl; } }; class B { i...
[1 reply] : B::operator A() const { return A(x); } is a user-defined conversion fu... (by Cubbi)
February 2015 Pages: 1... 910111213... 26
  Archived months: [jan2015] [mar2015]

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