General C++ Programming (Page 2)

by MTorp
How do i check if a vector contains garbage?
So i have this code: if (get_brick_at(Position(row, column)) == NULL) Where get_brick_at is...
[5 replies] Last: If we also add 'null behaviour' for the null_brick, it becomes the nul... (by JLBorges)
by I3ck
Thoughts on my 2d geometry library? (MIT licensed)
[no replies]
Generate sha256 hash using X509 certificate
Hi, I want to generate sha256 hash using X509 certificate information. But I do not know the orde...
[5 replies] Last: Hi, I solved my problem. In certificate there is a section call " tbs... (by dushantha12)
How to read xml file contents in CPP
I need a sample program to read contents of any xml file using CPP. Any kind of guidance will be h...
[2 replies] Last: WHich XML parsing library do you use? If you did not select one, do th... (by MiiNiPaa)
Problem with creating a circular linked list
Hello. I've been making a circular linked list and I'm trying to assign each list a "name" and its n...
[4 replies] Last: ohhh I get it. I feel sorry for myself not being able to fix such prob... (by Dolichan)
CMakeLists.txt Help!!!
I am trying to configure my CMakeLists.txt file... Right now, I have a folder called "build" wher...
[1 reply] : solved!!! file(COPY <directory> DESTINATION <destination directory>) (by theironlion23)
VGA Text mode using Word addressing mode?
I'm building an emulator which implements a VGA card. As far as I know each address is incremented b...
[2 replies] Last: But according to the odd/even mode, which is set during text mode, all... (by superfury)
by thrys5
Help with Thoughtcrime Detector
You are to write a program that is a thoughtcrime detector. Your program will take in as input the n...
[1 reply] : You make it to complicated: bool is_book_acceptable(ifstream& f, vecto... (by coder777)
Need help approaching some coding assignments.
-Write a program using while loops that prompts the user for a set of integers. -Your program will a...
[2 replies] Last: Here I have come with a bit of the changes #include <iostream> ... (by HabibAurangabad)
Generating poisson arrivals
There is something I didn't understand. I use the sample given from the cpp reference to generate nu...
[1 reply] : > std::poisson_distribution<int> distribution(4.1) ; > This outputs:... (by JLBorges)
Audio Input/Output
So I want to start working on a project I know will take awhile. I want to create some effects for m...
[1 reply] : There are a bunch of audio libraries around that you can use - look th... (by NT3)
by Sh0es
Interface.obj Not Found, LNK2019
I'm getting a LNK2019 error in my code pertaining to iostream . When I try to get more details it s...
[no replies]
How do you count repeated numbers in an array?!
So I already gave this a go and will post my code below. The question is about the last loop before ...
[1 reply] : see (by sujitnag)
Snake Trouble
Hello, I have been working with a group of friends to create a snake game and we are at a stand stil...
[4 replies] Last: hello? can anyone help me? The source of my problem in in line 161 of ... (by jasonwynn10)
by tbl99
Pennies for pay
#include <iostream> using namespace std; /* Program calculates the salary of a person over a peri...
[4 replies] Last: The loop at line 17 will never exit. What is its purpose? Right now ... (by dhayden)
by Ulutay
Need help please, Traversing a linked list.
Hi, first of all im no expert, so i have been trying to create a linked list of "Minions" where eac...
[3 replies] Last: ohh it worked now by adding the reference, i though passing a pointer ... (by Ulutay)
Sorting integers without arrays
Hello, thanks for reading. I have been tasked with sorting a text file with some numbers in it. ...
[5 replies] Last: > How do you read in the file in pairs? Something like this: // Pass... (by JLBorges)
Fill in code
I am completing an assignment and I am trying to fill in my missing pieces of code. I have competed ...
[8 replies] Last: Variable. How does one declare a variable? How does one change the v... (by keskiverto)
error C1004: unexpected end-of-file found & '{' : missing function header (old-style formal list?)
#include <iostream> #include <string> using namespace std; { int counter=0; string Userna...
[1 reply] : using namespace std; { //<Why is this brace here? int counter=0; ... (by MiiNiPaa)
Memory allocation wrapper affects caller function parameters?
I'm using wrapper functions to allocate and check all my pointers, which are allocated/freed with ma...
[3 replies] Last: @cire: Do you mean the dealloc variable? This points to a function whi... (by superfury)
Pages: 1234... 55
  Archived months: [nov2014]

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