• Forum
  • General C++ Programming

General C++ Programming

by admin
Welcome to this board!
Welcome to the general programming forum in C++.com! In this forum, users can to talk about any top...
[no replies]
by Qub1
Forward declaration being ignored?
Hello, I have the below class (which is basically a wrapper for std::vector), and one of the functi...
[15 replies] Last: > a whole lot of new linker errors, all "unresolved external symbol" ... (by JLBorges)
by IRushR
How can I use matrix strings
Hi People! I have a problem with strings. I would like to declare a string as: String text =...
[4 replies] Last: A cumbersome array arrangement string text = { { "asd", "cdf" }, {... (by kemort)
by Sobia
Execution of Preprocessor Directives
I want to know about when the preprocessor directives actually execute? Either they execute before ...
[3 replies] Last: You can safely assume that any line starting with # is handled by the ... (by LB)
how can I do this in C++ I know how can I make functions , classes and object of class , but I ca...
[4 replies] Last: What have you written so far? (by LB)
bitwise where (1,2)
Hi, I've been studying bitwise ops lately but I don't know how to test this content on my own: fo...
[24 replies] Last: in a file called layermask.manager you add the layers (by Ericool)
Can someone please help me change the for loop to while loop?
this code is working but im not suppose to use a for loop. how do i change to a while loop? the in...
[1 reply] : Please edit your post and make sure your code is [co de]between cod... (by LB)
by Sobia
Essential Statements of a C++ program
Actually i want to know about the essential statements of a C++ program without which, the code will...
[4 replies] Last: The second snippet is still wrong, you forgot to prefix endl as std... (by LB)
by IRushR
Manipulate images with f(z)=1/conjugated(z)
I have to write a program in c++ or in any other language which manipulates images. http://denesb...
[1 reply] : Use an image processing library for C++ - Google has plenty of good re... (by LB)
by leryss
Can anyone explain me text justification algorithm?
I'm trying to make a good text justification algorithm but I can't get it right. I'm looking for ex...
[1 reply] : This is not a trivial thing to do. Even today, text justification is a... (by LB)
by smb15
Help with arrays and pointers
Hi, so I am having some trouble with this program we have to make. This is the description of what w...
[1 reply] : Please edit your post and make sure your code is [co de]between cod... (by LB)
Need help in giving suggestion on my code
I'm doing this project here its actually a puzzle game and is require for numbers to be place is a A...
[1 reply] : What have you written so far? By the way, unless you are absolutely r... (by LB)
by InVain
Do while crashing
For a homework assignment i have to build a Tic Tac Toe game. The game runs fine until some one has...
[3 replies] Last: What makes you think it crashes on line 28 and not line 33? Use your I... (by LB)
//I have been assigned a project that requires me to make a connect four game. //It must be a 2 pla...
[1 reply] : Have you played Connect4? You can't place a piece at (0,2). You place ... (by kbw)
How to deal with segmentation faults?
Hi Guys, I am having some problem with segmetation fault for like 10th times and again not able to s...
[19 replies] Last: I wouldn't write the code like that myself, but I don't see anything t... (by kbw)
An array inside of struct, without knowing the size?
hello, so today i came across this little problem. Im trying to make an array inside of struct, its ...
[8 replies] Last: With pointers, you have to manually manage ownership of the allocated ... (by LB)
Filling up array type char**
Hi.. I'm trying to set values of char** which I'm dynamically allocating. Everything seems to go wel...
[4 replies] Last: Yes! Now it works, thank you very much! (by rorschach14)
Populating elements of arrays?
Where could I look on figuring out how to populate each element of an integer array with the sum of ...
[2 replies] Last: int roll() { return ((rand()%6)+1); } int main() { int arr ; ... (by rorschach14)
(C++) Djikstra's algorithm not getting the correct nodes
I'm currently doing a Djikstra's algorithm and im really stuck! It finds the shortest path from a st...
[1 reply] : Could somebody help me with this? I'm really stuck and can't progress (by lynzoid)
by helios
What is this?
I just found this source in the office. I probably copied it from someone's post here to test it. Ca...
[3 replies] Last: Read it more carefully. It's setting to 13 every p where i % 92 == 90... (by helios)
Pages: 123... 30
  Archived months: [aug2015]