General C++ Programming - July 2017 (Page 5)

by zesan
How to handle multidimemsional array ?
 
Sorry, the code is removed due to some internal reasons :(
[6 replies] Last: [quote=mbozzi]Once this has a reply, can it be deleted? Oh, that wasn... (by mbozzi)
by stav
problems reading binary file
 
hello I'm trying to read the first 6 bytes of a file, but its giving me wired results and i cant seem to figure out what im doing wrong. this is my code, th...
[7 replies] Last: This worked for me with a bitmap file. file.get((char*)&block, siz... (by Thomas1965)
help with a unity/c# basic game bug
 
So, whilst im on my summer hols i have been programming small games, basically just to keep stuff in my head, and in one of my games, a snake like, i have a bug...
[no replies]
by i773
Executing *.dll methods from command prompt, print to window?
 
I am writing a unmanaged plugin for Unity3D and I can't keep starting the process to test the code, so I am just looking to execute my tests directly in a comma...
[3 replies] Last: try this: OutputDebugString(_T("Hello world")); // #include <tchar.h>... (by Thomas1965)
ctime(time_point::min()) throws exception
 
Nicolai Josuttis has given an example in his book "The C++ Standard Library", to print 4 special timepoints of a clock, as calendar time (pgs 152-153): 1) a cl...
[6 replies] Last: #include <chrono> #include <ctime> #include <string> #include <iostre... (by JLBorges)
by RezaAb
Strange problem with a Destructor which crashes memory
 
Hi All, I have a strange problem with my code! I have defined several 2D vectors in my function. It is a long function. In debugging mode, I found that there i...
[6 replies] Last: It sounds like heap corruption earlier in your program. The problem wi... (by dhayden)
by ebii
projects
 
so hey all after studying by my self c++( for the past 6 mounths. (ive been doing this last few days exams from serval university's exasm that i found online...
[1 reply] : Keep in mind that knowing the language is actually a small part of wha... (by dhayden)
by zesan
How to handle multidimemsional array ?
 
Sorry, the code is removed due to some internal reasons :(
[1 reply] : Don't reply here Use http://www.cplusplus.com/forum/general/218900/ f... (by closed account 48T7M4Gy)
by zesan
How to handle multidimemsional array ?
 
Sorry, the code is removed due to some internal reasons :(
[1 reply] : Don't reply here SEE:http://www.cplusplus.com/forum/general/218900/ (by closed account 48T7M4Gy)
Issue with overloaded output operator
 
Hi everyone! I'm writing a BigInt class (now with a vector containing the digits, instead of a string), and my program crashes when I try to use the overload...
[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 string), and my program crashes when I try to use the overload...
[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 Directories " to "D:\work\test\ConsoleApplicationTest\Consol...
[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 be changed so that it becomes a substring of B, and its guar...
[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; p1->data = 12; p2->data = 34; p1->next = p2; p2->next =...
[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 as strings. I got stuck when writing the addition function, 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 more various types? Couldn't we just stick with: int, char un...
[2 replies] Last: Thank you for the explanation, very comprehensive. (by landlord2017)
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 microcontroller. The 165s are easily selectable with the CE p...
[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 condition of the snake not going in the opposite direction of wha...
[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 this help message." to the terminal window. How can I make it ...
[1 reply] : There's no standard way of doing it. On Linux you can use ioctl to ge... (by Peter87)
July 2017 Pages: 1... 3456
  Archived months: [jun2017] [aug2017]

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