General C++ Programming - October 2015 (Page 19)

Pathfinding in 2D Char Array
 
Hello i am programming Pacman in console , i am using 2D char array , i want to implement pathfinding for ghosts , i have already heard about BFS , how do i imp...
[no replies]
Trash number on my menu program
 
NEED HELP ON THIS: my program shows trash number #include <iostream> #include <stdlib.h> using namespace std; int main() { start: int sum; ...
[1 reply] : Please edit your code so it's between code tags - http://www.cplusplus... (by TarikNeaj)
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 all fine, but the thing is that i dont know the size of that...
[9 replies] Last: @LB thanks a lot for the help!:) (by matkenis)
by Qub1
Forward declaration being ignored?
 
Hello, I have the below class (which is basically a wrapper for std::vector), and one of the functions returns a variable of the type AInteger (which is basica...
[15 replies] Last: > a whole lot of new linker errors, all "unresolved external symbol" ... (by JLBorges)
by Sobia
Execution of Preprocessor Directives
 
I want to know about when the preprocessor directives actually execute? Either they execute before the compiler compiles our program or after the compiler comp...
[3 replies] Last: You can safely assume that any line starting with # is handled by the ... (by LB)
NA
 
NA
[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 not become a C++ program.... I have a Multiple Choice Qu...
[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.com/index.php/teac... Here you can find an example, look o...
[1 reply] : Use an image processing library for C++ - Google has plenty of good re... (by LB)
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 explaination on dynamic programming text justification algorit...
[1 reply] : This is not a trivial thing to do. Even today, text justification is a... (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 ASCII BOX . The numberS will randomly displayed in a 6x6 gri...
[1 reply] : What have you written so far? By the way, unless you are absolutely r... (by LB)
Connect4ProgramHELP
 
//I have been assigned a project that requires me to make a connect four game. //It must be a 2 player game and each player must be able to enter in their 'pie...
[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 solve it by myself. It drives me crazy I know, I am a dumb. A...
[19 replies] Last: I wouldn't write the code like that myself, but I don't see anything t... (by kbw)
Filling up array type char**
 
Hi.. I'm trying to set values of char** which I'm dynamically allocating. Everything seems to go well, but after the file i'm reading is finished, my array elem...
[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 two dice?
[2 replies] Last: int roll() { return ((rand()%6)+1); } int main() { int arr ; ... (by rorschach14)
Problem with classes in different files
 
I decided to try putting classes into different files to see how that worked. It didn't work. Whenever I have a function in a class that needs a different class...
[1 reply] : Never mind. I found my answer here: http://stackoverflow.com/question... (by Bingocat4)
by rstout
simple OpenGL, but won't draw anything.
 
simple OpenGL, but won't draw anything. Suggestions?? How lucky you are to be reading my very first post on cplusplus. Be gentle... Trying to finish my degree...
[1 reply] : Someone at opengl.org helped figure this out. I am sending x as an in... (by rstout)
Decryption project
 
Decryption stage 3: The structure of this program is similar to stage 2; you will open the file “stage3.txt” and read the sentence into a string. You ...
[1 reply] : follow this , i think its works fine int found = str.find("bar... (by new1)
Just a question about recursive functions, no code.
 
What are different ways of ensuring efficiency in a recursive function? i.e. Prevent calling your recursive function when not necessary.
[2 replies] Last: One way to prevent recursive calls is to try to partition the problem ... (by dhayden)
double and float ques
 
double v = 3.141592862343; cout<<"double = "<<v<<endl; float w = v; cout<<"float = "<<w<<endl<<endl; output: double = 3.14159 float = 3.14159 I was ex...
[3 replies] Last: It was a question...hope not a bad one! (by technologist)
by nEOWP
Library libTIFF
 
Hello! I have next problem: i use library libTIFF for creating file - TIFF. I created 16 - bit greyscale image. But as result i have a black screen. I know that...
[no replies]
October 2015 Pages: 1... 1718192021... 27
  Archived months: [sep2015] [nov2015]

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