Beginners - August 2010 (Page 7)

An error in C++
 
1. I am using VS 8 2. The program I use is #include <LEDA/system/basic.h> #include <LEDA/numbers/integer.h> #include <iostream> using namespace std; using...
[11 replies] Last: [quote=filipe]Have you added it to the libs and includes directories i... (by filipe)
by tresty
Preventing buffer overflow when calling functions
 
Hello, new to the forum. I'm pretty much a novice in c++ programming so please bear with me. Currently I am attempting to control stepper motors from a co...
[2 replies] Last: Thanks for looking through my code helios! "Contact the manufactur... (by tresty)
by gpfs7
Question about the while loop
 
I am trying to reach the entercost part of my program but it will only work if i enter quit? Could someone help me to see what im doing wrong? void InputandWri...
[2 replies] Last: thanks tons (by gpfs7)
Mother-Board
 
How does one find out all the Memory Allocations in the Motherboard, especially the sound and video areas? Thank you.
[1 reply] : What OS are you working on?? (by attaboy)
by xyzt
Problem with type definition in a template class
 
I get an error in my template class. Here's a portion of code from my program: template<typename Key, typename ItemT> class Pool { pu...
[2 replies] Last: Yes,thanks! The allocator used in the sample is not std::allocator. I... (by xyzt)
Pasting into console
 
Hello I am wondering if it is possible to be able to paste from the clipboard directly into the console while running a program. I am creating a program to solv...
[3 replies] Last: You should check out this website when you use the Windows platform: h... (by Kyon)
by pkjm17
Random Number Generator
 
I have this random number generator code here that prints out 30 random numbers in a range of 0 - 60. But what I want to do is print out the numbers so that the...
[4 replies] Last: I would personally go for something along these lines (untested!): u... (by Kyon)
by luchie
Problem:Loop is displaying error second time around
 
So this program is suppose to allow the user to enter a 5 digit number. I store that as a string to test it. The program also allows the user to enter how many ...
[6 replies] Last: Thank you all so much! I forgot to set i back to zero. Yea, sorry my c... (by luchie)
What is the proper design for containers/managers?
 
I read somewhere that if you're using singletons for managers you're doing it wrong. Is this true? For example, in a simple 2d application, there will be a sy...
[4 replies] Last: What does your object interaction diagram for a sprite look like? It ... (by PanGalactic)
by Kyon
Obfuscated code
 
Hey forum. I was amazed by the art of obfuscating just a little while ago. After countless attempts to change loops into recursive calls and things like these,...
[4 replies] Last: This code has been tested and works for all non-negative numbers. ... (by jsmith)
Noob Variable question
 
I just started fooling around in C++ yesterday and I am working on a simple code that converts seconds into minutes. I have defined the variable for seconds ...
[5 replies] Last: Considering your seconds are stored in the variable called x, the foll... (by Kyon)
PLAYER class problem
 
hey guys im working on a text based rpg and im doing my player class this is the code ill post the error at the bottom // PLAYER CLASS class PLAYER ...
[10 replies] Last: thats the book we're using... lol Bjarne Stroustrup lol (by L E G I O N)
by effizy
Newbie Questions!
 
I am new to C++ or any form of programming language. Would appreciate any tips on: - approaching problems - techniques on writing codes - rule of thumb for w...
[3 replies] Last: The way I did it: - learned assembly (linkers, stacks, assemblers, (... (by attaboy)
Math prob
 
Hey! i am writing again with math problem"again" ^^ I made 2 c++ programs so far and they are calculator with "+" and calculator that does avarage.I put them ...
[5 replies] Last: I tried to use simple solution using most of the code given by walkera... (by mtweeman)
Avarage calculator
 
Hey! I was doing some stuff and i made this #include<iostream> using namespace std; int main() { int a,b,c; cout<<"Write two numbers that you want ...
[6 replies] Last: ty guys (by walkeraki)
by koopa
compiling for win 3.1?
 
Hi all, Using VC++ express 2008, compiled by prog, runs fine on XP etc but primary aim is to run my prog under win 3.1(long story). Right now win 3.1 tries t...
[2 replies] Last: Thanks, will take a look at these right away. (by koopa)
by Mazd
Program without main!!!! (1,2)
 
#include "stdio.h" #define decode(s,t,u,m,p,e,d) m##s##u##t #define begin decode(a,n,i,m,a,t,e) int begin() { printf(" hello C++.Com Users"); } ...
[20 replies] Last: haha I actually wanted to make something like that... All I got to was... (by kaduuk)
Where can I get windows.h ?
 
Hi, I wanted to build a program which simply allows me to create a cursor. I use Turbo C++ (TC). when I compile the program it is not able to find windows.h . C...
[6 replies] Last: Guys I finally got Visual C++ 2008 after a lot of stealing,begging and... (by mayankrajoria)
by tirwit
sscanf with wrong parameters
 
Hi I'm trying to write a script to be used with ROOT from CERN. But I'm having a error which I don't know what's causing it. The objective is to the scrip...
[no replies]
Multidimenshonal Array problem
 
Hello can someone check my code becaus eI'm getting errors i don't know how to fix #include <iostream> #include <Windows.h> using namespace std; cons...
[4 replies] Last: O thanks... so basic (by Joshhua5)
August 2010 Pages: 1... 56789... 28
  Archived months: [jul2010] [sep2010]

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