Beginners - February 2011 (Page 41)

Vector Inventory Pointers
 
hello, i have been wondering something about vectors.. (if anyone needs code let me know) alright heres my question with a bit of an explination: i hav...
[3 replies] Last: Just in each separate header file with class declarations based on you... (by ultifinitus)
What would be the return type of this function?
 
I'm trying to return the values of this function to the place where it's being called from. What would be the return type of the function neighborSet. called...
[2 replies] Last: You call the function on line 43: n .neighbors = neighborSet(s,y,1) ;... (by closed account D80DSL3A)
Rand Preprocessor
 
What is the Preprocesser that i haver to enter to use the rand() function? thanks guys. :)
[2 replies] Last: oh cmon just google it. (by wtf)
learning C++
 
ok...so ive been learning C++ for about 5 months now. I think ive learned most of the basics and such. However i feel like an experienced person to teach me. I ...
[10 replies] Last: well right now im reading: "C++ Primer 5th Edition" "Teach yoursel... (by paki programmer)
Inheritance Issue, Accessing Parent Fucntion Within Nested Class
 
Below is my class where I'm inheriting a class that has a nested class within it. The CMethod0173 is basically duplicating CMethod172, and is one of my first at...
[4 replies] Last: Got it! Type casting... void CMethod0173::Args::getArgs(AlignArgs ... (by smcguffee)
Wait function
 
Is there a line or function i can put to make the application wait before continuing on running the rest of the code? I know in Lua 5.1, its "wait(1)" for 1 ...
[1 reply] : in windows you can include windows.h then use Sleep(howmanymillisecon... (by acorn)
Problem using Boost::Multi_Array
 
Hi All, I'm trying to use the boost::multi_array in VS2010 Express and am having troubles getting the example code in the boost documentation to work for eve...
[2 replies] Last: Not that I can see. There's a Microsoft article saying it works with v... (by DigitalCustard)
by jonsto
Beginning Programmer did something wrong...
 
I am teaching myself c++ and haven't been able to get my program to run. Here's the project I am trying to program. Design a class named Fan to represent a ...
[14 replies] Last: I got it working. Thank you everyone that helped me out. I had all t... (by jonsto)
How does a programme maintain memory of variables after every start up?
 
As the title says. The programme prompts the user for any type of variable, or a large string. After shutdown and startup, that variable is re-assigned and can ...
[5 replies] Last: Thanks browni, ill give that code a try later. But just one more thing... (by Sputnik)
Recommendation for next book (1,2)
 
Alright, so I'm on chapter 14 out of 16 in Accelerated C++ 2000, page 355 of 402(there's 453 pages but the rest are reference pages). And I'm wondering on which...
[21 replies] Last: Although I am merely a novice programmer (who has taken the offbeaten ... (by Sputnik)
Passing a structure array in a function
 
Hi all, I have been struggling with this for hours.... I have defined a structure: struct unit { ALLEGRO_BITMAP *pic; char *name; int stren...
[4 replies] Last: You have to define stuff before you use it. That way the compiler only... (by hamsterman)
String output for a polynomial
 
I'm currently working on an assignment involving classes and Polynomials and one of the assignments is to implement a function: string str(); which will...
[1 reply] : Use stringstream. It works like cout, just when you want to get the st... (by hamsterman)
opencv cvCalcOpticalFlowLK
 
sir i used cvCalcOpticalFlowLK function to get velocity values but the problem is while accessing velocity values i am getting all zeroes,please give me a sugge...
[no replies]
by vidya
Prime Numbers
 
Hi Cojones, I liked the optimized way of "+6" while printing prime numbers.......
[no replies]
Validating Input & If/Else If Problem
 
So I made a code that calculates how much a person must pay for gas depending on how many gallons they purchased and if they paid by cash or credit (credit was ...
[1 reply] : Something like this might be what you're looking for? #include <... (by some random dude)
by jonsto
C++ program for school
 
I am working on projects in my book that aren't required and I've been trying to figure out the best way to write a program that outputs 10 random numbers betwe...
[8 replies] Last: Thanks a lot guys. (by jonsto)
by lisak
How to prompt user to enter File Name and Evaluate it?
 
Hello everybody! I’m new to C++. Need some help. I am trying to prompt the user to enter the file name. File itself includes list of 5 emails. After user en...
[7 replies] Last: hi. it doesn't work again. could you please take a look at that & let ... (by lisak)
Any Suggestions?
 
Ok so i had been looking online for some challenges of things to try and program and some stuff to see what i know...btw I am very new to programming and c++......
[3 replies] Last: ok i appreciate the input, i'll play around with it some more and see ... (by xxsokol32xx)
New to c++ (1,2)
 
hey guys, i want to do video game development at college, i don't start until September, so i figured I'd get a head start, I've been told I will be working on ...
[24 replies] Last: Who cares... as long as you're on a computer.... That statement may... (by ultifinitus)
New and completely lost!
 
How would one go about completing this? 1)Write a program to read in two integers called x and y. (use cin) 2)Check to make sure that y is not 0 because t...
[3 replies] Last: #include <fstream> #include <iostream> using namespace std; int m... (by crosa64)
February 2011 Pages: 1... 3940414243
  Archived months: [jan2011] [mar2011]

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