Beginners - December 2008 (Page 17)

by Sathed
Checking to see if file opened (File I/O)
 
I can't believe I'm asking this because I've done this before, but for some reason it's not working. I'm asking the user to give me the name of a file. If the...
[4 replies] Last: Two concerns you ought to have: 1. 'fileName' should be a string ,... (by Duthomhas)
by Foe89
Storing index value
 
I have code that has the user input rainfall in inches for 12 months and then totals, averages and finds the largest and smallest rainfall and month corrolated ...
[2 replies] Last: so replace i in the counter to count or something? and then i would eq... (by Foe89)
Window member problem
 
Working on a project for my CPSC class. The project is to recreate a watered down guitar hero game, and the portion I am having problems with deals with the mov...
[no replies]
how to install the library in c++
 
I downloaded three files, but I dont know how to use them. * normal.C, the source code. * normal.H, the include file. * normal.csh, commands to c...
[8 replies] Last: Isn't better to compile the library and add it to the compiler's libra... (by Bazzy)
array question
 
I have a question about an assigtnment im supposed to do.Im supposed to print an array of 20 numbers and then determine the largest and the smallest. Now i have...
[11 replies] Last: Note my edit... :) (by Sathed)
Linker error
 
Ok I have all of my code compiling, but I cannot find the linker error that is preventing it from running. Please help. Here is the code // poddriver.cpp ...
[9 replies] Last: Also add the namespace: ostream & Song:: operator << ( ostream & os... (by helios)
Not getting the correct outputs
 
I have just started learning c++ and was set a problem to solve but i cant get the program to output the proper calculations.The program should accept the quali...
[1 reply] : It would be helpful if you told us what you were expecting and what yo... (by jpeg)
How can i get a complex number
 
Hi. I want to get some complex numbers and use them as points in plane. This is my code but I cant get the complex numbers from input.Please help me :D ...
[2 replies] Last: It does though from the looks of it, it will require the user to type ... (by jsmith)
by hannad
What can i achieve in C++?
 
Hello everyone. I am new here and I wanted to ask what I can achieve in C++. I recently started learning. I am going through the Documentation on this website,...
[3 replies] Last: Thank you guys :D (by hannad)
by zzz
check if it's prime or not(mersenne prime)
 
please, take a look at this I wrote a code for printing Mersenne primes up to a given input by user. a Mersenne number is a positive integer that is one less...
[2 replies] Last: Also you are indexing your "a" array ... but the valid indexes are... (by jsmith)
by jartz
structs...
 
Okay, i want to start off by saying this is for a class of mine but i have messed up and waited to the last minute to finish it and really got myself into a mes...
[2 replies] Last: okay great, i got it to work now, thanks for the quick reply! (by jartz)
by xonara
Quick question on template specializations
 
Ok, if I have a template like this: template <class T, class Y> class myclass { ... }; And I have a template specialization like this: template <> class myc...
[5 replies] Last: You are only partially specializing. So you still have to leave th... (by jsmith)
by xonara
Several questions, tutorial is being vague...
 
[It's 1:49 AM here right now so sorry if these are stupid questions >_<] Here's the program in question, copied straight from the tutorial: #include <ios...
[11 replies] Last: Have a look at http://www.cprogramming.com/tutorial/templates.html as ... (by Mythios)
Passing a filestream
 
How would i go about setting up a value returning function that takes an infile as an input parameter??
[3 replies] Last: No. (by jsmith)
by Timbo1
Tic Tac Toe Game
 
I have a Tic Tac Toe game but I want it to be that you can choose whether to play aginst a computer or human and how would you make the computer player
[8 replies] Last: http://www.cprogramming.com/tutorial/AI/minimaxtree1.html - Simple AI ... (by Mythios)
How to configure Cygwin
 
I just downloaded Cygwin on my vista pc and changed the path in environtment variables to point to Cygwin directory but when I run CMD and type g++ command, it ...
[1 reply] : * PATH changes need a reboot, AFAIK. * g++ is in bin/. You probably s... (by helios)
linking problem
 
I am having trouble with my program that's suppose to model a periodic table. Here is the code for my program so far. What I am trying to do is ask the user fo...
[2 replies] Last: Yeah, I've never been a fan of the random symbols they throw in there.... (by firedraco)
How to define bigger integers?
 
As is said above. I want to make a simple calculator and even long long looks to short for my needs. How do I define bigger integer? Thanks in advance.
[5 replies] Last: Slick! Must be something to the latest version... (I hadn't checked si... (by Duthomhas)
December 2008 Pages: 1... 151617
  Archived months: [nov2008] [jan2009]

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