General C++ Programming - June 2018 (Page 6)

Force Null Pointer Derefs to Crash?
 
Hello there! So if you dereference a null pointer accessing a function of class for example like: ...
[3 replies] Last: Wrapping it in my own pointer class wouldn't be feasible with an exist... (by Spirrwell)
Skipping whitespaces when reading a numeric text file
 
I am trying to read (and output) a numeric text file filled with thousands of numbers (around 8000),...
[3 replies] Last: There's no need to skip whitespaces since the stream will do it for yo... (by Thomas1965)
How To Create Multiple Range-Based For Loops?
 
I am back again... :D I am trying to figure out if it's possible to implement multiple range-based ...
[2 replies] Last: Thank you very much Mr. Repeater for your response. I overlooked this ... (by kindgnice)
LNK2019 unresolved external symbol __imp___CrtDbgReportW after adding a vector
 
Full error code:Error LNK2019 unresolved external symbol __imp___CrtDbgReportW referenced in functi...
[2 replies] Last: smallest reproducible example. (by poteto)
Comparing and merging numbers
 
Hello everyone, Let's say I have a file with this content: 6 8 9 12 15 20 22 30 I ...
[3 replies] Last: Hmm I forgot to ask but by any chance, do you know how to also print t... (by inourss)
Reading and sorting words by 3rd letter in C++
 
Hi guys, I have a problem to solve and wanted some advice on the choices that I can make here. The...
[13 replies] Last: @jonnin, The bucket sort is a great idea. I think it's the way to go. (by tpb)
by Aldo33
Need a solution with this Dijkstra Algorithm
 
Hello guys i really need help to complile my program due today midnight. It want Write a program, wh...
[3 replies] Last: I changed my code into something like this but it doesnt read from tex... (by Aldo33)
by zytsly
Help with pizza order program please!
 
I'm writing a program that can output the price of pizza, I had already written the beginning, but I...
[2 replies] Last: Thank you!!!! (by zytsly)
Question about struct sizes
 
Hi all, Basically been writing some code and I came across a funky error when reading a a file and ...
[1 reply] : It's padding to make sure the types are align correctly. A primitive t... (by Peter87)
C++ indentation and some request for help with C++ error
 
Hi, I'm trying to "resurrect" old Turbo Vision library to use it on Linux/Solaris/*BSD. I know that...
[8 replies] Last: Are you mostly using it for C? Have you had any problems with C++ for... (by dhayden)
Multiple inheritance and virtual functions with differente signature bu same name
 
Dear experts, I have the following code which does not compile: #include <iostream> using names...
[7 replies] Last: my problem is that preD::foo needs to access something initialized in... (by dhayden)
problem with pointers
 
I want to implement the mutual-avoidance iteration with c++. The method consists to generate random ...
[6 replies] Last: The code from the relativisticobserver page has the same error that yo... (by doug4)
by Lex33
Can Signal
 
I have also another problem with a task,perhaps somebody can tell me how I should paint it in 1)? 1...
[5 replies] Last: I have also painted the Can Signal for 0xB5 Is it right ? https://www... (by Lex33)
problems with strings
 
I have to take a name that is in the format of Last, First Middle and give output that takes the str...
[4 replies] Last: Good that you got it working. I think there's an easier way. void i... (by Thomas1965)
How Will I Compute The Normals at Vertices using 3D Object? (1,2)
 
Hello Professionals, Good day. I would like to ask about the 3D aspect of my previous post recently...
[22 replies] Last: Thank you very much to those who shared their insights and especially ... (by kindgnice)
by kokudo
C++ Arduino Coding
 
Hey guys. I'm very new to C++ coding and am stuck on a problem with my arduino code. I'm wondering ...
[1 reply] : it looks like you need more checks. something like if(high) pattern ... (by jonnin)
by Pickle
How to replace a part of .txt file with fstream
 
Hello, I tried to modify the content of .txt file using code below: (part of function) std::stri...
[1 reply] : You cannot simply insert into the middle of a text file; you could pos... (by Repeater)
by Dani90
Need help!!!!
 
Hello ..how to calculate complexity for this algorithm f=1; x=3; for (int i = 1; i <= n; i*=2) ...
[3 replies] Last: @tpb disgusting (by Dani90)
by Lex33
Task C++ Difficult help please
 
Hello I have a little Problem with this task . Some I have already implemented in the code: I will...
[15 replies] Last: Some Ideas Guys ? (by Lex33)
Adding Windows.h library in eclipse
 
Hi, I use compiler, which is minGW. Then, I installed opencv library through cmake and compiler wit...
[1 reply] : windows.h should come with your compiler you don't need to do anything... (by Yanson)
June 2018 Pages: 1... 456789
  Archived months: [may2018] [jul2018]

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