Beginners - March 2012 (Page 31)

by irmako
transfer data from string to array
 
hello, I have string or data in text file like this: 001100101 101100111 (3 spaces in the middle) I need to transfer these data to two arrays (matrix) like t...
[10 replies] Last: I have cut k , it seemed to be solved but when I print arrays the last... (by irmako)
Quick question regarding writing to outfile
 
Hello all, I was just wondering why this function does not write the header to the output file? The cout works fine, but it isn't writing to the output file. ...
[4 replies] Last: I just tested your program. It seems your program is dependent on mac... (by closed account zb0S216C)
Converting over from Ortho to Frustum
 
I have always used Ortho projection for my OpenGL programs. But half-way through my current project I have realised that I should instead be using Perspective(...
[1 reply] : In your case, switching the words glOrtho and glFrustum isn't good... (by shacktar)
by Brianx
adding header file in existing win32 library.
 
Hi All, I have an existing win32 class library. For some recent changes in my project i want to include <vector> header file. I am completely new so i went to...
[2 replies] Last: You only need to add YOUR OWN headers to project, not the ones that ca... (by modoran)
by Brianx
Iterate over vector
 
Hi Guys, Can anyone let me know how to iterate over the data from the class MainProduct //This contains the main product which can be bought with //addon p...
[3 replies] Last: wow man! thats cool idea. Thanks a ton for this suggestion. I was also... (by Brianx)
by y4n
Velocity app.
 
I have a code shown like this... #include <iostream> #include <conio.h> #include <math.h> #define pi 3.14159265 using namespace std; int main() ...
[2 replies] Last: thanks vin! You really just make my night :-)! (by y4n)
Hello World Tutorial
 
http://www.youtube.com/watch?v=j07ZdpXeukA&feature=plcp&context=C47f6108VDvjVQa1PpcFMWpNGjaylAlrtd0Q_lsDp5BhWL4E-2Q1Y=
[no replies]
Need list of functions, methods and variables.
 
I'm going into an contest for programming, but as I am still new to programming, I need all the help I can get. The contest is for students under 20 (being 2...
[5 replies] Last: Can't think of anything else to ask for, so I set this as solved. (by Lars Erik Grambo)
A little help in arrays.
 
Hello, I want to ask if this statement is correct to test a specified index. My program is about computing grades and get an output if he's passed of fail. ...
[2 replies] Last: thank you stewbond :) (by takedrifttt)
Suggest me reference
 
i am new in c++ , have done coding in
[1 reply] : Here's a good reference: http://cplusplus.com/reference/ And here's a... (by Stewbond)
simple data file
 
Hi all, The following is a code for solving the harmonic oscillator with the Euler Method. My problem is that in lines 30-33 I want to write the data into the ...
[10 replies] Last: Oh, OK, I get it. (by HomesickAlien)
compare two words
 
Hi all, I am currently trying to compare two words. Example : String1 = "BAAA", String2 = "AA". What i would like to do is to find how many occurrence of Str...
[2 replies] Last: @Texan40 : I see, thanks a lot for the reply :) (by c beginner)
problem with loop
 
hi everyone, i'm writing a demo program to teach myself how to use arrays of classes, but i'm having problems moving onto the next element of the array. the ...
[no replies]
Create a "cout" equivalent for OpenGL in C++
 
I am trying to make an equivalent of a printf() implementation so that OpenGL will print in the lower, left-hand corner, but for some reason it will only print ...
[2 replies] Last: Thank you so much, that worked perfectly! And yes, for some reason glC... (by Sean Booth)
by zeion
Is it possible to concatenate two vectors then sort the elements by an object variable of each element in the vector?
 
Hi, So I guess this is two fold: How do I merge two vectors? Then: How do I sort vector elements by one of their object variables? (I have a method def...
[5 replies] Last: > How do I merge two vectors? > How do I sort vector elements by one o... (by JLBorges)
template classes
 
hey guys i'm new at programming. i have a hw about template classes but i can't write the complete program.. i need help about my hw. 1. Template Classes: P...
[1 reply] : This should help: http://www.cplusplus.com/doc/tutorial/templates/ (by shacktar)
OpenGL?
 
I'm not sure if I can post this here or not, but... What I'm trying to do is every time the space bar is pressed it switches to the next primitive, but I'm n...
[1 reply] : if( key==' ') mode = (mode+1)%qty; You may want to use an enum for... (by ne555)
Type inference when passing overloaded functions
 
From page 104 of Accelerated C++: There is a function call find_if(i, str.end(), g) The function g is supposed to be applied to elements indexed by the i...
[8 replies] Last: ne555 thanks. if the prototype were namespace test{ template<class... (by DexterMorgan)
for loop problem~!
 
/* 4-40 for Automobiles Use a forloop to get the information about each of a person’s automobiles: name, make, year, color. No need to retain the in...
[18 replies] Last: make a struct... or make them vectors ... i believe i did that already... (by Subzero030201)
by jorz
char *result memory allocation
 
Hi All, Thank you for taking time to read my post. I create a variable const char* result; and I get data from serial port as a String^ and convert it to my...
[no replies]
March 2012 Pages: 1... 2930313233... 71
  Archived months: [feb2012] [apr2012]

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