Beginners - May 2011 (Page 15)

by ascii
Help Foiling
 
Hey! I've been working on making a program to foil two sets of numbers. If you don't remember from Algebra 1 xD, foiling is used to multiply two binomials, and...
[5 replies] Last: thank you! it works now, here the functioning code :) #include<iost... (by ascii)
by cstorm
Get Int from file?
 
My current code is #include <iostream> #include <fstream> #include <string> using namespace std; int main() { //declare Vars and constants doubl...
[3 replies] Last: Don't loop on eof(); loop on good() instead. The eof() isn't set until... (by Zhuge)
Need help C++ Project! (1,2)
 
Hey guys, long time reader, first time poster! So, my issue is that I need to turn in my last project for a grade. After hours spent on googling, reading chapte...
[21 replies] Last: Oh yeah, already bookmarked. I appreciate all the help! Everyone who p... (by eightbitlando)
std::iterator_traits help, please.
 
Hi, I'm going through Scott Meyers "Effective C++, 3rd Edition", and it gives some of the vital details for using iterator traits, but 100% fails to detail HOW ...
[11 replies] Last: //typename std::iterator_traits<Iter>::iterator_category category; ra... (by ne555)
is template programming necessary
 
Hi, I've been learning C++ for just over half a year now, and I've only touched the basics of template programming. I feel pretty comfortable with "normal" c++...
[6 replies] Last: There's no point forcing it, you can do fine with just the basics of t... (by Athar)
Should I figure out the ball problem in my pong game by myself or reuse someones code?
 
I'm making my first game, and I'm a bit confused on how I should go with solving the problems. I basically got everything going except the ball's movement. Afte...
[2 replies] Last: Thanks, so basically stuff like that I should do myself while just reu... (by brokenbot)
Noob Q ... #include <> vs. #include ""
 
This might seem like a noob question; I've always been wondering about this too. Is there any difference between these two? #include <something.h> #inclu...
[3 replies] Last: Is there any difference between these two? #include <something.h> #i... (by Moschops)
by SC 1
Return A Char
 
PS:Sorry For my Eng I want to write a function that returns a char how can i do this? when i try this code char* kucuk(char str1 ) { char str2 ; for(int i...
[7 replies] Last: it is working. No. You can't delete an array that is on the stack. ... (by Athar)
Class Object Composition printing out values problem
 
Line2D Points is made up of Point2D x and y Line2D.h #ifndef LINE2D__H #define LINE2D__H #include <iostream> #include <fstream> #include <string.h>...
[no replies]
Printing Denomination to User
 
I am having trouble on a hw problem. I must compute total amount a user inputs into cents. And display the amount needed in quarters, dimes, ect. But am having ...
[5 replies] Last: int total_cents = ...; int dollars = total_cents / 100; //intege... (by Mathhead200)
by saume
Storing Data
 
Hey, im wondering wat would be the recommanded way to store data for a game (say the player info, stats, etc.) in such a way that it would easiely be accessible...
[5 replies] Last: Well you store it to your server's hard drive, which is local as far a... (by Mathhead200)
Hypotenuse problem...
 
Hello! I'm writing a program to calculate the hypotenuse of a right-angled triangle. At the moment, I'm just using the values 3 and 4. Here are the two files...
[6 replies] Last: No problem. while( shaking_finger ) say( "Just don't do this ... (by Mathhead200)
switch statement not working
 
Switch statement isn't working no clue why. #include <iostream> #include <fstream> #include <string> #include <windows.h> using namespace std; ...
[1 reply] : case 1: void salesTax(); break; case 2: void searchOrders(); break... (by Mathhead200)
by Moiz
Image Processing
 
Hello, I got a PROJECT in c++, I've been given an image of 300x300 pixels I've to process it's negative image and have to process brightness on it. The problem ...
[1 reply] : You should find another lib to help you openCV2.2 is a well-known libr... (by stereoMatching)
Need Help with Code blocks
 
I will admit I'm a beginner so please go easy on me... I've installed C::B (10.50), I'm using win 7 and I've written a few programs that don't produce any wa...
[1 reply] : xterm is not a Windows application, so you don't have to worry about t... (by Athar)
by Scage
Need some help :)
 
#include <iostream> #include <cstdio> #include <iostream> using namespace std; class kevin; { Public : int strength; int speed; vo...
[2 replies] Last: Your formating is a pain to read, you might want to more some stuff ar... (by Mathhead200)
how i can control that ?
 
cout<<"\nEnter your <student number>:"; cin>>studentnumber; if user enter alphabetic values program will want user and will ask again user ? how i can do t...
[7 replies] Last: @packetpirate No it isn't. You can't put a return statement in just t... (by dangrr888)
for statement not being executed but while statement works..
 
I am using code block ide. I am trying to write a program that calculates parallel resistor value. I have the program so far set up for the person to enter the ...
[5 replies] Last: [quote=teclordphrack2]would it not initiate the loop until loopmax=... (by Mathhead200)
How to read files in a loop?
 
I want to read content of 20 files in a loop. How can I do that?
[1 reply] : char *files ; //fill array with file names for( int i = 0; i < 20... (by Mathhead200)
graphics
 
hey can any one help me in graphics using C++.
[3 replies] Last: Means how to use graphics in borland C++ ,its all fuctions.? (by hira aftab)
May 2011 Pages: 1... 1314151617... 48
  Archived months: [apr2011] [jun2011]

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