General C++ Programming (Page 6)

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)
by CVRIV
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)
by CVRIV
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)
by IanTG
School capstone project
 
Hello, I am writing a code for my school project about a camping simulation, but I need to...
[10 replies] Last: ofstream will erase any existing contents of the file! (by seeplus)
Need help
 
I rechecked it and fixed two of the errors now it is just an error on line 82 the initiating the mod...
[3 replies] Last: Paste the actual text of the error message. In function 'int main()'... (by salem c)
by c1885
Initializing an arrary of strings ?
 
I have been studying sorting algorithms for strings. I have a question about initializing arrays. ...
[5 replies] Last: Thank you Ganada and kesklverto, This is a good reminder. This toggl... (by c1885)
by puia
Converting an OpenGl rendeing project into dll
 
Hello i have implemented a rendering tool with opengl ( 32 bit - Release - C++ - console applicati...
[7 replies] Last: can it be becasue of the wrong marshalling of the data while using th... (by helios)
Red lines in code (in VS), but code compiles fine?
 
I am trying to get started with an existing project in Visual Studio. When I view the code, I get...
[6 replies] Last: Good things to note, thanks. (by Ganado)
Pages: 1... 4567
  Archived months: [apr2021]

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