Beginners - October 2011 (Page 6)

by bob57
.txt into 2d array help?
 
I need to read this .txt file into an array; John 100 100 90 95 85 100 90 100 100 98 75 Tom 90 92 82 95 89 93 95 97 96 98 92 Shannon 100 90 95 85 100 65 75 95 ...
[10 replies] Last: Yes, that is correct. If you replace the d_in >> with cout << you ... (by Maese909)
by homsta
Can functions in a header use pass by reference of user made types?
 
I have 3 classes(customer, bank, statistics) and for some reason I can pass by reference A bank type into functions in my Customer class, but when I try passing...
[no replies]
Count User input
 
Sir I want to know How i Count User input : i make a program but it is not working correct: Please Help... #include <iostream.h> main () { int c...
[1 reply] : Fixes. Also get an up to date compiler. #include <iostream> int main ... (by wolfgang)
Recording System Issue C++
 
Hello: I have been working on a very extensive recording system, and I only have one issue that I cannot seem to resolve. I'm sure another pair of eyes might...
[2 replies] Last: Okay. I'll try that and get back to you if I can't figure it out. Th... (by CPlusPlusBeginner)
Problem creating circular linked list; possible problem with call-by-ref -- help please
 
So I'm trying to create a linked list consisting of a class. I'm not using a lot of the functions which I defined but I'm going to post my code in it's entirety...
[2 replies] Last: ne555, You are absolutely right. Thank you! This is a bit embarrassin... (by bool maybe)
Graphic APIs for different operating systems
 
Hi. While you use DirectX to handle task related to multimedia - What do you use on Linux and Mac OS X? I want to create a cross-platform game, but DirectX o...
[1 reply] : OpenGL is another alternative for graphics. For other things (input... (by Disch)
Linker problems with inline functions
 
So... After alot of headaches I figured that this is causing linker errors: (since code is rather large, I simplified it alot) //Somewhere in console.h inline ...
[1 reply] : You didn't defined it in console.h (you just declare it) inline and ... (by ne555)
What is :(.text+0x4b5): undefined reference to
 
Hello. I'm a first year CS student learning C++. I've been scouring this site over most of this semester, but this is the first time I've been totally stumped a...
[3 replies] Last: Ah, I'm an idiot. I typed compute_call_cost-dollar instead of compute_... (by WhyIsTheCouchAlwaysWet)
by Ruins
O/I Streams an arrays/functions
 
I am trying the get the program to create a .txt file and then input text to that file after using arrays. The output to the file should be something like this...
[no replies]
problem in calculation of sum of user input and how many time a userinput data.
 
#include <iostream.h> void f(int); int main () { int mealprice; int i, userinput ; int salestax; int totalamounts; int totalamo...
[no replies]
Game Program. Not getting what i expected from all the work :(
 
sorry if this is not the right place. I am new. This is Game called Mastermind. I have the description of the game on my progrAM. If you copy the code it com...
[6 replies] Last: OK so the thing is that everytime I enter my guess it give me a upside... (by biplav17)
by phapha
expected unqualified id before 'namespace'
 
Hi all, I am writing an application in C++ and I have the error "expected unqualified id before 'namespace'" when I try to compile it. I've found the line where...
[6 replies] Last: In general, compilers tells you in that line is the error. Sometimes y... (by ne555)
by ea71
Boolean Operators
 
Hello, I'm having the hardest time understanding how to use boolean operators such as NOT (!), AND (&&), and OR (||). The books and tutorials always put...
[6 replies] Last: Thanks Disch. I'm just starting to learn C++. I have Dev-C++ for my ... (by ea71)
String Transposition
 
Hello, I am working on a project where if need to compare a multiple strings from a file and it needs to compare the first word with the following words on the...
[1 reply] : I think a solution might me: read all the strings and memorize them in... (by CosminNTG)
by homsta
How do you use errors?
 
This how my code is setup bool login_page() { int choice; cout<<"Welcome to The First National Bank of Tamu"<<endl; cout<<"Please make a selectio...
[2 replies] Last: Ya it was the cin that was giving me the biggest issue. I've fixed tha... (by homsta)
Learning C++, how do I practice?
 
So for about 2 weeks now I have been trying to learn C++ from youtube videos, which most of them are less then helpful, but I did run across this site:"Thenew...
[4 replies] Last: Find a problem that needs solving and develop a program to solve it. (by rmsharkey)
3rd permutation generator
 
Hi all, Below is the code that generates permutations of n elements. Please describe how it works. Thanks #include "stdafx.h" #include <stdio.h> #inc...
[3 replies] Last: I don't mean this to sound rude. I could describe each line, but I won... (by JMJAtlanta)
by Thamir
Run step by step
 
I use microsoft visual C++ express 2008 , I'v a program contains many function so I need to run that program statement by statement (HOW)?
[3 replies] Last: Thank you so much , Im very grateful (by Thamir)
is it possible i'm just not smart enough to learn?
 
So I haven't been working at this long (about 2 weeks), but honestly I get passed the "very basics" and its just mumble jumble to me. Am I doing it wrong? o...
[9 replies] Last: Don't worry, it will click eventually, it took me a few months and the... (by JokerDan)
Classes & Arrays
 
I understand that classes are blueprints, and instances of this class/blueprint can be created at will with different names, each instance uses the properties a...
[6 replies] Last: I have a large understanding of all of the basics, i have read all of ... (by JokerDan)
October 2011 Pages: 1... 45678... 59
  Archived months: [sep2011] [nov2011]

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