Beginners - November 2010 (Page 14)

Matrix and Files Question.
 
Hey everyone. I have an assignment where I have to multiply matrices from another file. The file will look something like this: 4 4 1.2 3.14 4.3 5.3 8....
[9 replies] Last: No, all you need is a function that will read an array from any given ... (by Duthomhas)
by Parse
Finding a rectangle area
 
Hello, I am writing a function for a project I am working with. What I want it to do is find a rectangle area that is in the range given. Here is what I hav...
[8 replies] Last: Thank you! That is part of the problem. A big part for sure. The ot... (by Parse)
output coming out incorrectly
 
Hello i need a little help with my programming hw. I got it running just the output is coming out incorrect. everything is correct except the first line of my o...
[4 replies] Last: it work!! Thanks Alot!!! (by closed account o1w5fSEw)
Very confused. Program skipping all lines of input
 
So im coding a project for school. Im really confused as to why when I run this, it does not work like it should. It prompts me to enter the name of the first e...
[13 replies] Last: Look here to get an idea of how to use struct. http://www.cplusplus... (by jamesmk)
by hit45
Beginner; Interested in game programming and have a basic question
 
Being interested in programming a new game, I have one basic question that needs to be answered. Is this "C++" programming language what it is that I need to kn...
[14 replies] Last: That was the best explanation I've heard yet. This gets me fired up kn... (by hit45)
by luckyl
class question
 
no this is not an asainment (excude my horibl spelin) I has a qefston 'bout class and objects take this code for example #include <iostream> #inclu...
[no replies]
Binary Calculator
 
Unlike my first post, this is NOT a school assignment, this is something that was on last year's midterm that my teacher gave us to study from for this years te...
[16 replies] Last: You don't actually need to read it as decimal. Just read it one digit ... (by Duthomhas)
[C++] Program for storing cross-references with linked lists, print doesn't work
 
Hi! For an exercise I'm writing a program to store cross-references using linked lists. I've defined a class with common member functions to store the data a...
[2 replies] Last: I've got a weird issue with the print function: it only prints somethi... (by JoshuaS)
Crash! Program to count and average odds and evens crashes...
 
My program compiles and runs correctly to count and average the number of odds and evens input by a user, but if I either don't enter any evens or don't enter a...
[2 replies] Last: Duh! I should have seen that! Thank you so much! (Isn't it always t... (by anthonys1mom)
making your own functions??
 
what does the following function wants me to do: Write a function DisplayFormatted() with the following header: voidDisplayFormatted (int n, int Width) ...
[no replies]
Need direction in starting a structure with arrays from a file
 
The assignment wants us to create a structure using data from an outside file to create an array. How would I go about doing this? Would I read directly into th...
[no replies]
by firix
compile error?
 
Hi, When I run the following code.it gives the error Where is the wrong? // a.h #pragma once #ifndef _A_H_ #define _A_H_ #include "b.h" class B...
[4 replies] Last: @Bazzy I do not understand what was wrong (by firix)
Converting from any base to any base
 
Greetings all, I have a completed assignment that required me to convert from base 10 to any base (up to 16) the user specifies. My completed program is bel...
[3 replies] Last: @ hamsterman - That's why I was thinking about taking the input as a c... (by Flynn380)
Hangman Game - Multiple countries selected.
 
I'm writing a Hangman game. It's a work in progress. I'm writing each function, testing it, then moving on. I've come across a problem. The program choos...
[2 replies] Last: OH MY GOD! You're a Genius! Thanks! The thought honestly didn't e... (by waqqassheikh)
Arrays of characters
 
Hallo, I know that in C++ the name of an array is automatically converted into a pointer to the first element of the array. So, if we have the following array...
[1 reply] : It's just like the compiler says - you can't use ++ on a temporary. S... (by Athar)
Problem with string arrays?
 
I have been learning C++ for literally a week so sorry if this is a silly question. I am trying to create one of the old style text adventures just for fun ...
[1 reply] : vector<string> verbs; verbs.push_back("TAKE"); verbs.push_back("DRO... (by Athar)
by paul23
forward declaration problems
 
Hi there, I'm wondering how to get this working: -I have a class "B" that has a variable of class "A". -Objects of Class "A" have a pointer to the original...
[4 replies] Last: Problem with enumerates is that I have to "link" it to the function I ... (by paul23)
x is not a class or namespace name
 
I have two classes Plugin and Display and Display inherits from Plugin. Plugin can't call a static Display method, how can I solve this? The Display class works...
[10 replies] Last: Sorry to bump again but I really can't figure this out. Edit: I mov... (by soupsoup)
new object, dynamic memory
 
Hi, I'm trying to edit http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=39 to do something that I know is simple, but I can't figure out on my own. I'm n...
[4 replies] Last: coder777, I think the simplest way to explain it is in video game term... (by helloski)
double to int conversion errors
 
Hey all, new to this forum. I'm struggling in my first C++ college course and needed some help. I've written a program for grade caclulations which has module...
[12 replies] Last: Line 37, you reference id name grades , not only are there no lowe... (by Enoch Root)
November 2010 Pages: 1... 1213141516... 42
  Archived months: [oct2010] [dec2010]

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