General C++ Programming (Page 4)

Issue with overloaded output operator
Hi everyone! I'm writing a BigInt class (now with a vector containing the digits, instead of a st...
[1 reply] : There is no way for the condition i >= 0 to be false because std::s... (by Peter87)
Issue with overloaded output operator (previous post didn't submit)
Hi everyone! I'm writing a BigInt class (now with a vector containing the digits, instead of a st...
[5 replies] Last: Since you are converting the integer to a string, you end up putting e... (by doug4)
"additional include directories" does not work in VS2015?
I create a project, and I set "Properties>Configuration Properties>C/C++>General>Additonal Include ...
[3 replies] Last: I'm running an older version of Visual Studio but this probably still ... (by Alrededor)
by Kalcor
Comparing 2 strings
Hello today I came across this: Given 2 strings a and b find the indices of the characters in A to ...
[10 replies] Last: @lastchance thank you <3 (by Kalcor)
compiler question
In a build (Eclipse in this example) how do I make sure the build is static and not dynamic library?
[no replies]
Please tell what will be displayed by following code.
class Node{ public: int data; Node * next }; Node *p1 = new Node, *p2 = new Node, *p3 = new Node;...
[1 reply] : Why should we? Some whitespace-delimited numbers. Why don't you make ... (by keskiverto)
BigInt as String
Hey everyone! So I'm writing my own BigInt class and i came up with the idea to store the numbers a...
[9 replies] Last: #include <iostream> #include <string> #include <cctype> #include <alg... (by JLBorges)
What are UChar_t, wchar,UInt_t... ?
I know "u" means "unsigned". But why does C++ have these types? what for? when to use these mor...
[2 replies] Last: Thank you for the explanation, very comprehensive. (by landlord1984)
Is there no chip select/clock enable on 74xx595?
I have a project where I have a bunch of stuff, including 74HC595 and 74HC165, on the SPI bus of a m...
[no replies]
Prevent multiple keys pressed at same time SFML
I was making a snake game in SFML, and whenever someone presses more than 1 key at a time, the condi...
[14 replies] Last: Is there any difference between doing 4 actions interspersed with rend... (by TwilightSpectre)
cout according to terminal size
I want to print something like this: "help().............................................Display thi...
[1 reply] : There's no standard way of doing it. On Linux you can use ioctl to ge... (by Peter87)
directory vague to me
Please help with a very basic question. More often than not when I am setting up the properties of a...
[4 replies] Last: libraries are usually compiled code that is pulled into an executable ... (by jonnin)
where do remainder header files go (static build)
I've been learning a lot lately about IDE's, their options or lack thereof, and have some specific q...
[3 replies] Last: Where can I add #include<stdio.h> #include<stdlib.h> #include<iostre... (by technologist)
by Elize
clarification on "proper" way to handle information hiding
I have a class whose purpose is to store a lot of data for access by other classes. This data is sto...
[13 replies] Last: A named class declared at namespace scope has external linkage unless ... (by JLBorges)
by TheArk
Any idea why the while loop exits the program rather then continue on to the coomand after it is fin...
[2 replies] Last: any idea why the while loop exits the program rather then continue on... (by AbstractionAnon)
SelfType in Macro.
some days ago, I write a macro that needs '(*this)' type. #include <iostream> #include <type_tr...
[4 replies] Last: I want to get the current type of the current specific type in a macro... (by Wu zhen hai)
How do I run code in the terminal on a MacBook?
This is probably a dumb question but I am new to Mac and I'm trying to figure out how to run a .cpp ...
[1 reply] : You can compile a file named 'foo.cpp' in the current directory into a... (by mbozzi)
How to find if a template argument has a nested structure?
Hi, Given a template: template<typename MetaFn, typename ...Args> struct is_metafunction_class :...
[11 replies] Last: My apologies JLBorges - it wasn't clear to me. I will take a deep look... (by JUAN DENT)
c++ maps doesnt work
for(auto it = x.end();it != x.begin();it++) { if(location >= 4){ if((it->fi...
[3 replies] Last: NetBeans and C++11 support question - NetBeans Forum (by FurryGuy)
by TheArk
Okay I'm back. I am writing a program on averaging test scores of students. I am trying to use loops...
[5 replies] Last: One way to do it: #include <iostream> using namespace std; int mai... (by Thomas1965)
Pages: 123456... 15
  Archived months: [may2017]

Cannot post in this page. To post a new message, go to the first page.