General C++ Programming - October 2019 (Page 9)

AMMUNATION
 
How to create an online gun store...And the billing system with it?
[8 replies] Last: Sorry for the late reply.Thank you for your idea ,Jonnin. Well, the pr... (by DNA WARLOCK)
by TerryG
C4430 error building DLL
 
I'm trying out DLLs for the first time and have a previously written text function program I'm converting to use as a DLL so other programs can use the function...
[4 replies] Last: Sorry, it didn't. It had: using std::string (by TerryG)
Vehicle Control Software
 
Rob and Jason are joined by Philipp Schrader. They first discuss some post CppCon news and the LLVM 9.0 release. Then Phil talks about the work he’s doing at ...
[1 reply] : Relevant and interesting site, but this ought to be posted in Lounge. (by kbw)
Help! Fixing missing ")"
 
My professor gave me the following lines to work with in a CPP for a header file: bool operator< (const GroceryItem & lhs, const GroceryItem & rhs) { if ( au...
[3 replies] Last: @coder777: see https://en.cppreference.com/w/cpp/language/if (If State... (by ne555)
how print enums?
 
see these enum: enum TokenType { ID=0, KeyWord=1, Operator=2, Expression=3, String=4, Number=5, ...
[5 replies] Last: thank you so much for all you make work contracts("Disclaimer: ...." w... (by Cambalinho)
by Ganado
How does a debugger break code?
 
I'm wondering what the mechanism is that actually lets the debugger stop the program being debugged at a per-line or per-instruction basis. Let's say I'm debug...
[4 replies] Last: Ah, that must be what the "Debug programs" privilege in User Rights Ma... (by Ganado)
Appending a dynamic array
 
Create a dynamic array of int with a initial space of 4. Write a function ‘append’ that appends a given value to this array. At any stage, if this function ...
[6 replies] Last: and then you need to work with two vectors and the global code crumble... (by ne555)
by Jdog17
Error Reading Characters of String
 
I am currently using command line inputs in conjunction with several hardware inputs from my io ousb board... I am trying to execute code where my second com...
[3 replies] Last: Each operator, like ==, has to be defined for its operands and no such... (by lastchance)
Adding vectors and applying rotation matrix using quaternion
 
I am unsure about your data structures, because choice of structure makes a huge difference when doing this kind of thing. Also, you need to learn more. Go...
[2 replies] Last: Spam cross posting: https://gamedev.stackexchange.com/questions/17610... (by deleted account xyzzy)
2d Vector with text file
 
Hello All, I have text file which has only number as below, i'm not able to read the floating point nubmer in vector. 1.2 3 2.3 5.1 3.4 15.9 Can anyo...
[1 reply] : show us what isn't working? (by jonnin)
Create a program that prints a 20 by 20 block. Print "[ ]" for an open space. Print [X] for closed space
 
Hi, I am very new to C++ and for our homework we have gotten this as a problem. I would usually assume that we would use an array for this, but he wants us to u...
[2 replies] Last: Flatten your array to 20x20=400 positions. Choose, by random selection... (by lastchance)
Picking random chars from char array?
 
Hello! I'm very new to C++ and have a pretty daunting assignment due this week. I won't get into too much detail about it as I don't want work done for me, ...
[8 replies] Last: It looks to me like you trying to simulate the game Boggle . The sug... (by doug4)
by HSafy
is there a built in method for detecting outliers ? (1,2)
 
Hello everyone, I am new to c++ and I need your help :) When I was using a matlab, I was using the method "filloutliers". I was wondering if there is somet...
[37 replies] Last: Right, don't do anything until you fill the buffer is one approach. I... (by jonnin)
by dbdcd
Expected unqualified-id error on "for" loop line
 
//Function Declarations void placeMarker(); void checkWin(); void board(); //Value Declarations std::string square ; boo...
[5 replies] Last: I clicked on the code thing in the format section but it did nothing... (by Ganado)
1d and 2d dynamic arrays
 
hey everyone, I was wondering if I can add fixed values to a 1d or 2d dynamic array like static ones. For instance int arr = {0, 1, 2, 3}; <-- that's sta...
[8 replies] Last: Ah, thank-you for the explanation, @coder777. (by lastchance)
My application stopps working beacuse map loader.
 
I have problems with my game engine. I made a basic map loader that loads maps. But its not loading maps its stopps working apps. Here the code: #pragma...
[1 reply] : You allocated space for a 30x30 array, but you're trying to access map... (by Ganado)
I have the following error.
 
#include <iostream> #include <cstddef> void doAnything(std::nullptr_t ptr)// variable or field 'doAnything' declared void // 'nullptr_t' is not a member o...
[1 reply] : PLEASE, do not double post. http://www.cplusplus.com/forum/general/26... (by deleted account xyzzy)
I have the following error.
 
#include <iostream> void doAnything(int *ptr) { if (ptr) std::cout << "You passed in " << *ptr << '\n'; else std::cout << "You p...
[3 replies] Last: PLEASE, do not double-post. http://www.cplusplus.com/forum/general/26... (by deleted account xyzzy)
If dynamic memory is deallocated when program terminates, what is the point of destructors?
 
Destructors, in my understanding, are used to de-allocate any dynamic memory once an object is destroyed. They are used to prevent a memory leak from affecting ...
[12 replies] Last: @Niccolo- Actually you answered my question quite well by essentially ... (by vaderboi)
Advice on IPC
 
I've created a server program that scrounges data from various web sources and stores the data internally. I would like to create a client program that's able t...
[3 replies] Last: I decided to use UNIX Domain Sockets to send messages across two progr... (by VMsrVT2Tyc)
October 2019 Pages: 1... 78910
  Archived months: [sep2019] [nov2019]

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