General C++ Programming (Page 6)

by x01337
Data transfering between two programs C++
Hi everyone. I just had a question about data transfering between two programs. I currently have a w...
[3 replies] Last: Thanks so much! :) (by x01337)
Read words
Write a program that reads words and arranges them in a paragraph so that all other than the last o...
[4 replies] Last: Read the text one word at a time. If the word can be added to the curr... (by seeplus)
So I have to write a nested loop with asteriks and forward and backslashes. [//Write a program wit...
[3 replies] Last: Hello faizankhan40, PLEASE ALWAYS USE CODE TAGS (the <> formatting ... (by Handy Andy)
How to count up values from a while statement?
#include <iostream> using namespace std; int main() { int numberOfItems; int count; //loop ...
[9 replies] Last: The input can fail. Therefore, it should be tested and one has to deci... (by keskiverto)
std::list, object pool, leaks and performance
Hello everyone!.. I made a very simple Object pool exmaple using std::list. I think the implementat...
[10 replies] Last: I was, I suppose, answering how you can use a list (or 'any') containe... (by jonnin)
Conjugate gradient using MPI
Hello everyone. I wrote a C++ MPI code for solving Ax=b equation using conjugate gradient method. A...
[4 replies] Last: If my_rank isn't zero, I don't see any code that would generate any o... (by lastchance)
Variable diagrams
Hello all! So I have a question regarding this. It says to draw a series of variable diagrams ...
[1 reply] : I haven't come across variable diagrams either. However I think that i... (by seeplus)
Solution to having to scroll all the time to find variables
After my program has reached a certain size, there are simply too many variables to remember. Especi...
[10 replies] Last: your IDE should assist with this. This. (I presume. Don't use IDE my... (by keskiverto)
Variable initialisation
I've come across this C++ 'teaser': How many different ways can you find to define and initialise...
[2 replies] Last: just change the names lol. int32_t word long you can also exploit en... (by jonnin)
Working on Project almost done
After a bit of a wake-up call, by a certain jerk, I was able to rework my project c++ code, However,...
[5 replies] Last: Without seeing the code you have already, how on earth do you expect u... (by MikeyBoy)
How can I pass a unique pointer as a function parameter?
I have a very simple code just to illustrate what's going on: #include <iostream> #include <memory...
[3 replies] Last: Ok I understand now!.. I appreciate the help and thanks a lot for the ... (by brianbathorycpp)
C++ function overloading class
Can anyone link me to a basic example or show me what this is. I think I get it, It is combining cla...
[2 replies] Last: I see I see. I thought so. Thanks for clearing this up for meh. (by TangentJay)
Using container modifiers with containers declared with custom classes?
I'm... thinking no, but what do I know. I created a vector using a custom class that has it's own pu...
[5 replies] Last: It's a good idea to have a data model that separates the object from a... (by againtry)
Comment out a line of code from a compiled .exe?
I license a game engine so have to use a compiled exe to run my app. I know about a line of code ...
[5 replies] Last: there really isnt a sane answer to this. Either you need the code, o... (by jonnin)
by parian
wostringstream vs ostringstream
Preview not working (again) for me so excuse if this is a mess... I noticed today that the followin...
[4 replies] Last: Fixed the [ stuff. Ummmmm, no, you didn't. Learning to properly use... (by Furry Guy)
Undefined reference to vtable
I have to make a Chain of Mountains that contains other chains or simple mountains. For that reason ...
[2 replies] Last: Typically the error means that you have declared but not defined the f... (by mbozzi)
SDL not loading texture
Can someone plz tell me whats wrong with this code. its running just fine, there are no errors. but ...
[3 replies] Last: Yup, just like Helios said, you just declared load media but never act... (by brianbathorycpp)
by IanTG
Thumbs up
I'm having issues with this code, I want to put thumbs upon at the end of my code, this is what I ha...
[2 replies] Last: Never mind, I solved it haha. (by IanTG)
Initializing an array with unknown size.
I'm having an issue. I googled this topic and can't seem to find the right solution. I want to wor...
[10 replies] Last: an array instead of a string a string is a wrapper for an array, of s... (by jonnin)
by cmisip
Can you comment on this Serialport code? (1,2)
Arduino : start bit, ID, data (2 bytes) uint16_t buff ; uint8_t MESSAGE_START=0x7f; uint16_t ...
[21 replies] Last: Here is a two byte version with delay of 4 milliseconds that also work... (by cmisip)
Pages: 1... 4567
  Archived months: [apr2021]

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