General C++ Programming - May 2012 (Page 27)

Accessor for a matrix
 
Hey guys, i need an Accessor for my matrix(vector of vectors) and i think i need to use reference, but i don“t know how to do it. exemple: class Matri...
[no replies]
encryption
 
I need to read text from a file character by character process it and put it into a file. It doesn't show any errors or warnings but still doesn't work. Any ide...
[4 replies] Last: thanks for replying you guys, I'm not familiar with absolute path (you... (by Nino Tsankashvili)
capture prompt output
 
Hi all, i am writing a simple program but i have a little problem. I must lanch a simple system("..."); example system("dir"); Automatic prompt ...
[6 replies] Last: Ok, my stupid mistake... i can't use "printf" to string but "cout"...... (by palli90)
c++ game developement project. (1,2)
 
my teacher told me i need to make a mario type of game on c++ but i dont have any knowledge about makeing a game in c++ past textbased games. any help? note: i...
[27 replies] Last: @BHXSpecter - It really depends on the syllabus. A fair few games com... (by MrHutch)
Reading file's columns into array
 
Hi Guys! i'm reading file which has some number of columns each line has different number of columns and they are numerical values of different length, and i h...
[2 replies] Last: Hi... here is the solution if anyone else need it for (int i=0; i<... (by menewbie)
clear buffer
 
Hello I got this program that recieves data strings from a COM port (getNewPacket). The main program checks if the first 2 bits of the string at "10" if they a...
[5 replies] Last: How can i do this? Would you like to do that for me plz? Thanks (by closed account 4w7X92yv)
by harm89
Parse exceptional structure to array
 
For a schoolproject, I want to parse a sentence and process it's properties. This is an example of the input I get in my program (string): root(ROOT-0, bring...
[no replies]
Input stream behaviour
 
Why is it that while using "cin" when we input a character into an integer value, the program malfunctions and executes all the statements, overwriting various ...
[5 replies] Last: > I am not satisfied with the thing you pointed out. > Why doesn't i... (by JLBorges)
Psuedo 3D Road?
 
Hey, I'm trying to figure out how to make a pseudo 3d road effect. I've read this http://www.gorenfeld.net/lou/pseudo/ which explains it quite well but I'm stil...
[1 reply] : I don't know how to help you there but I must thank you for pointing t... (by MrHutch)
C++ Help
 
Hello, I got inspired today to learn a programing language. I want to learn C++ but I am sitting here with no clue on earth on where to start. Can anyone...
[1 reply] : You have already solved the most important programing part by choosing... (by codekiddy)
Searching for Matlab-like functions with optimal performance. Suggestions?
 
Hi everyone, I need to transfer a Matlab program (which is quite big) to C/C++ because it is not fast enaugh in Matlab. However, I was shocked when I fou...
[1 reply] : You may want to have a look at: Boost::uBLAS http://www.boost.org/doc... (by JLBorges)
Bank Teller Program - Linear Search Error
 
I am to write an interactive program in which the user is prompted to create a bank account and able to make transactions to such account. Some requirements are...
[7 replies] Last: No...you may need to review how arrays work. (by rollie)
nested vectors & connected components of a graph
 
So i am trying to count the connected components in a graph that is represented by a vector of strings, such as: ============ =====####=== =====#==##== ###==#=...
[2 replies] Last: I suppose that you compiling with debug info. You are accessing out o... (by ne555)
parallel programming
 
Hello I would like to start dealing with parallel programming. I saw that MPI is used for multi-computer programming and openMp is for single-computer mult...
[1 reply] : Here is one on MSDN http://msdn.microsoft.com/en-us/library/tt15eb9t(... (by codekiddy)
by Cyu
Reading File into a vector
 
Hi, So I've been trying to read a txt file into a vector. But I can't get it work. The program will start up but then just freeze. Can anyone tell me whats w...
[1 reply] : At the beginning the vector itemID has the size 0 hence trying to read... (by coder777)
understanding inheritance
 
Hi, I currently practicing inheritance and I would like to understand how it works because is not working as expected. What I have is two classes, Animal and ...
[10 replies] Last: To answer my question, whichever class is included first it's the pa... (by hanst99)
Structure reference
 
Is it possible to store structure reference in map ?
[1 reply] : http://en.cppreference.com/w/cpp/io/c/fprintf goooooooogle. (by cire)
pointers in 2D array
 
Hi, is this one way to 'reset' a 2D array via pointers: for (p = &a ; p < &a ; p++) (*p) = 0; this is directly from a C book, but what's i, I think it's a...
[1 reply] : The seems like a typo for a 1D array, but for a 2D array you would n... (by rollie)
help me to sort this out..
 
Consider a 5-by-5 array of characters. Write a C++ program to accomplish each of the following operations: a. Declare the above array. b. Read the array. c...
[1 reply] : //declares the array int MyArray ; //prints the array for(int i... (by oonej)
Having problem with display function (by arrays and menu-driven)
 
I have a general question concerning the project I am working with. So I am having a hard time displaying my text file within my sorting function, that comes at...
[no replies]
May 2012 Pages: 1... 2526272829... 41
  Archived months: [apr2012] [jun2012]

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