Beginners - February 2009 (Page 16)

Grouping calculations into functions
 
Hello all, I am just starting to learn C++ and I need a hint on how to figure out how to take things out of int main() and grouping them into functions. T...
[3 replies] Last: Only if you don't want to prototype them. (by Zaita)
Linux: open Serial port, send array of bytes
 
Hi I am trying to (a) open a serial port, and then (b) write a stream of bytes to it and read any responses from the serial port. I have some code so far (w...
[5 replies] Last: I think all you missed was to populate your file descriptor set by usi... (by sweetie1829)
question in OpenCv
 
hi, im a beginner in using OpenCV and i want to know how can i open video using OpenCV ,not capturing video from camera but open video already stored in my pc?...
[1 reply] : Head to the OpenCV forum. (by Zaita)
Initialising 2D object
 
Hi, I have been experimenting with a class creating 2D objects and defining functions using them. You could interpret it as a classic matrix class I suppose....
[4 replies] Last: FWIW, boost::array allows you to use array syntax to assign elements: ... (by jsmith)
by masiht
question about data types
 
I gave a test and i made some mistakes. Please tell me which one is true and false and why ?? short m=655534; unsigned short m=65534; unsigned float n=6...
[3 replies] Last: There is no such thing as an unsigned float. (by jsmith)
by mikac
problems with operator+
 
Hi, I am relatively new at c++. I am writing a code with operators and i'm with some problems in this part. Anyway, it appears an warning during the compil...
[3 replies] Last: This is going to seg fault. temp is initialized in the constructor ... (by jsmith)
Sudoku Solver
 
First off i dont want the entire answer. I would like to learn from this. I just started to program in C++ and I have to program a sudoku solver. First off I ha...
[1 reply] : I would make every element of the 9x9 matrix a std::set<> or std::bits... (by jsmith)
by masiht
question about identifier
 
char Character or small integer. 1byte signed: -128 to 127 unsigned: 0 to 255 short int (short) Short Integer. 2bytes signed: -32768 to 32767 unsigned: 0 to...
[3 replies] Last: char can hold only numbers, from -128 to 127 if unsigned or from 0... (by Bazzy)
Using the string class
 
Hi everyone. I have been programming for 2 years so I am pretty new to C++ programming. I have an assignment that I am wishing someone can just explain to me ...
[3 replies] Last: In the code you posted you already have the - operator overloaded, it ... (by Bazzy)
by MPKMM
If a double variable is NaN?
 
Hi, folks, I wrote a statistics program to do some parameter estimation. It involves at least 100.000 loops. Some of the results are reported as -1.#IND00 . ...
[3 replies] Last: Thank you Bazzy. It did work to solve the problem. Gott bless this for... (by MPKMM)
by Brutal
error C2664 what am I doin wrong?
 
I am tryin to take some repetition out of an assignment and having difficulties. Keep getting C2664 errors and maybe yall can tell me wtf I am doing wrong =( ...
[5 replies] Last: You're trying to write to an invalid pointer. runner[0..SIZE-1] and ti... (by helios)
Using an Array of Structures in Simple Program
 
Hello everyone, I'm very new to C++, so bear with me. I'm trying to do some of my C++ homework at the moment and I've run into a problem. Essentially, the...
[11 replies] Last: Yes. That's because as I said. Using the >> operator will not remove ... (by Zaita)
by dman
Passing an open file between functions?
 
//Writefile ofstream* WriteFile(string filename) { ofstream* f; f->open("test",ios::out ); return f; } //Wri...
[4 replies] Last: Why not make the program OO, and make the filestream a member variable... (by Zaita)
by dawita
segmentation fault in Matrix implimentation.
 
Hello guys. When i try to run my code i get the Segmentation fault error. i cant see to find where the problem is.... my goal is to read from a txt file as b...
[8 replies] Last: http://www.cplusplus.com/forum/articles/7459/ Also, Boost has a Mat... (by Zaita)
by klxp9
Memory Error???
 
Hi, I have a char array declared as such: char statement First off, is this too large? I have a large sqlite statement that I st...
[7 replies] Last: +1 to using strings. If your going to use C++, then use C++ types. ... (by Zaita)
strcmp - troubles compiling/running
 
Hello all. I'm trying to teach myself c++ in my spare time. To assist in that, I'm writing a basic program, just for learning purposes. It asks for several w...
[4 replies] Last: Just loop over it and call toupper() or tolower() on each element. The... (by Zaita)
by ldixon
Partial Arrays using negative and positive numbers
 
In a program with a partial array with max of 50 that contains negative and positive integers, how would you keep track of how many were filled? For example is ...
[2 replies] Last: Use a vector. (by Zaita)
Win32 Multithreading Tutorial
 
Hello All, I am very new to Win32 Multithreading programming . I just started working on it in VC++ 6.0 in MS Visual Studio . Can anyone suggest me n...
[1 reply] : www.boost.org :) They have a platform independent multi-threading impl... (by Zaita)
by ozan
Template could not be placed on the project!!
 
Hi, I have a plenty of codes(source codes and header files) so I have to open a project file.I am using "wx DevC++" but when I tried to open a Project file , ...
[1 reply] : http://www.letmegooglethatforyou.com/?q=wxDev-C%2B%2B+Forum (by Zaita)
by ghamon
initializing and passing a reference (static ?)
 
The code below compiles fine. The only problem is that I do not want to pass the reference each time. I would like to set the reference to the BaseApp only on...
[no replies]
February 2009 Pages: 1... 1415161718... 22
  Archived months: [jan2009] [mar2009]

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