Beginners - February 2010 (Page 10)

Copying contents of a file into a vector
 
Hi guys Solved, thanks :)
[no replies]
Baseball player program
 
I am having issues getting this program, that should display the name of the player with the highest average and that average, to work correctly, Could anyone h...
[2 replies] Last: there are some more modifications you'll have to make in order for thi... (by m4ster r0shi)
by Regine
8x8 MEMORY GAME
 
This is actually our project for this term and among the given problems this is the most difficult. The given games are 8x8 memory game , Chinese checkers and H...
[1 reply] : Step 1: Generate the grid. That is, fill an array with numbers and mak... (by hamsterman)
Program inproperly closing
 
My program keeps closing on me during this function of my code. I thought it might have my switch/case statement so I replaced it with if/else if/else statement...
[4 replies] Last: Alright I'm still not sure why it's doing this but I put in the checks... (by xyriene)
What is the point of a switch statement?
 
I understand what it is and how to use it, but I don't understand why you'd want to. It's more restrictive than an if statement and uses odd syntax. Why not jus...
[10 replies] Last: To switch on a string, I use map<string, functor>. It trades off some... (by PanGalactic)
by hax
Get Text from EDITTEXT
 
Hello, I am a bit new to GUI programming...I am currently using code::blocks to build everything manually here. I have two dialogs, one in which I need to get w...
[2 replies] Last: That's becaise you are using the GetDlgItemText function incorrectly... (by guestgulkan)
Mirco visual c++
 
I dont know what to say in the title, because i dont know what to explain i am using microsoft visual. i need to color the cmd window that i know how to do...
[1 reply] : Make sure to start a Console Application project. Make sure to #incl... (by Duthomhas)
by j3tt
confusion with For loops
 
I'm trying to calculate an annual interest return on an investment. I need the program to display the text for each year showing incrementally how much interest...
[6 replies] Last: Nono, not system("PAUSE");. There is a large discussion about this her... (by closed account jwC5fSEw)
by indigo
fstream not working
 
Hi, my code: #include<fstream> #include<iostream> using namespace std; void main() { char flv = "fails.txt"; int i; ifstream failas(flv); //fail...
[2 replies] Last: try this one: #include<fstream> #include<iostream> using names... (by m4ster r0shi)
antirtfm videos
 
What are antirtfm videos?
[2 replies] Last: youtube antirtfm c++ tutorials. (by p9h)
Problems with pointer functions
 
I've come across an exercise that requires me to make two functions, one of which takes a string& and one that takes a string*. They should both modify an outsi...
[5 replies] Last: Ohh, so if I have a function that adds 2 to an int, the inputted int w... (by closed account jwC5fSEw)
Numerical Integration Method, RK4
 
Hi, this is my first post to the forum. I am trying to implement the Runga-Kutta 4th Order Method (RK4) to a 2nd order non-linear implicit ordinary different...
[1 reply] : Well, we generally don't do homework assignments for people. (by jsmith)
Matrix classes
 
Hello everyone, I am attempting to write matrix classes for one of my projects and needed some advice on the best way to implement it. I see two ways i can...
[4 replies] Last: If you use std::deque<> then the contiguous memory requirement goes aw... (by jsmith)
What is wrong here?
 
There is an error in this piece of my code...can anyone see what it is? if (avg1 > avg2 && avg1 > avg3) { cout << name1 << "has the highest batting avera...
[2 replies] Last: If you code it like that, I would suggest testing three additional loo... (by yoked88)
by Ola
a problem :(
 
hii all , i have an assignment to implement scanner phase of some compiler based on some dfa.it should read from a file and output to a file.. i have a pro...
[6 replies] Last: it supposes to,but realy the function i wrote doesn' do that ..it term... (by Ola)
by peaco
Strings as arguments (Undefined reference)
 
Can anyone tell me what would be causing the following error: C:\AppData\Local\Temp\cc4arLND.o(.text+0x543):list.cc: undefined ref erence to `list::fixSize(...
[3 replies] Last: Thanks guys, forgot to specify it as part of list. (by peaco)
fstream file path on mac
 
my code is: #include <iostream> #include <fstream> using namespace std; int main() { ofstream jake("\\Users\\Admin\\Desktop\\wut.txt"); for(int x=...
[1 reply] : Such a directory doesn't exist on a Mac. Further, the Mac file separat... (by Duthomhas)
Not understanding reading from CSV
 
Hello everyone. I have an assignment where I must read data from a .csv and output a .txt as a "payroll" report. The problem I am having is that I don't r...
[5 replies] Last: This is basically what he wants, i just found an example finally... Th... (by ddominguez)
Using loops and auto counters
 
So i am in desperate need of help in my C++ Programming I class. Here is what the program calls for: Module Two Program Program: The user has a one...
[5 replies] Last: Hi - I could use some suggestions on loops as well. I am new to C++ ... (by Mozie)
Can you subtract strings?
 
Is there a way to subtract the last three characters of a string?
[1 reply] : I never understood why there wasn't a - operator for strings. Anywa... (by Disch)
February 2010 Pages: 1... 89101112... 32
  Archived months: [jan2010] [mar2010]

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