Beginners - May 2008 (Page 6)

Overloading [] operator to take two arguments
 
Hello everybody, I'm new in c++ and im trying to overload the operator for a two dimension array. I found out that I cant overload straight for the 2-D arra...
[3 replies] Last: You might want to read this for more information http://www.parashift... (by Duthomhas)
by oldsm
Assist me
 
Implement a simple telephone directory using class. in your telephone directory each class should have a name and a telephone number. You should search using th...
[3 replies] Last: oldsm, you can found a good example in wikipedia almos the same that y... (by rserrano)
how to gain the overall total for this?
 
-Read two integers, representing a rate of pay (pence per hour) and a number of hours. Print out the total pay, with hours up to 40 being paid at basic rate, ...
[1 reply] : Please use [ /code] boxes, so I can see your code in indented form. ... (by Somelauw)
hi I want to ask an inportant question
 
hi I am graduate computer scince I stuudyed c++ in the college but now I want to improve my skills in computer because I want to study master my que...
[14 replies] Last: Here is a single sorting using the bubble algorithm. It only compares... (by Mitsakos)
I need HELP! McD program!
 
I have this C++ assignment and I had encountered several problems.For your information, I use Borland 5.02 software and this is my coding. The title is 'McDonal...
[1 reply] : #include<iostream.h> #include<conio.h> #include<stdlib.h> #include<... (by sinipo)
by Ph0X
Path, Filename & ofstream
 
Ok well before starting, I'd like to say that I'm not a pro and that I would really appreciate it if I could get precise and well explained answers. (I posted o...
[3 replies] Last: My bad. I always forget that the stupid STL streams don't take std::s... (by Duthomhas)
by Themba
termination of code
 
#include <iostream> #include <math.h> #include<time.h> #include <fstream> using namespace std; float randNum() { float x,y,r; x = rand(); ...
[2 replies] Last: #include <iostream> #include <math.h> #include<time.h> #include ... (by Dirtrider)
struct fix ,but 2 new errors
 
well my struct is fix but i have new errors i hve never seen before : here are the errors [code=cpp] football.cpp(194) : error C2664: 'void Football::Se...
[3 replies] Last: If in SearchMatches matches is an array of pointers then SearchResult ... (by Faldrax)
by dirt
Cant figure out very simple function problem.
 
I checked the search and did not find a specific answer to my problem. Hope you guys can help me on this one. I need to find the volume of a radius and I am hav...
[6 replies] Last: --- NOTE---- using long type to hold the result of a float calculation... (by guestgulkan)
dissagreement with compiler!
 
i'm trying to learn to write programs. i have gotten borland c++ 5.02 to use as a compiler, and i figured that the "hello world" program was a good place to sta...
[9 replies] Last: ignore http://www.cplusplus.com/reference/iostream/istream/ignore.htm... (by Duthomhas)
problem with argument types
 
#include <fstream> #include <iostream> #include <string> using namespace std; void inputFileInfo(string&, int&); void displayFileInfo(string&, int...
[2 replies] Last: Thanks. That solved the problem quite nicely. (by icemanfan)
by sheler
Problem with adding a .lib file to my C++ project
 
Hi everyone I want to add a .lib file to my c++ project. but when I go to references (in .NET environment) and click add new reference , in the form that appea...
[no replies]
by sheler
How to add a .lib file to my c++ project ?
 
Hi everyone I want to add a .lib file to my c++ project. but when I go to references (in .NET environment) and click add new reference , in the form that appea...
[no replies]
newbie needs asstance with linker error
 
i got my code to finally compile but, now im getting 5 linker errors that i have no idea why im throwing them the errors are: [code=cpp] football.obj : er...
[2 replies] Last: U need to make below changes for the methods: from void Searc... (by DiptenduDas)
by Cbas
Memory could not be "Read"-still
 
I have a function which i run three times. Its called float* departments(int a,float b, float c , float d) and returns a 320 array It runs perfectly twice, but...
[7 replies] Last: Three possible problems. 1) To free the memory, you should do ... (by jsmith)
by joe25
pyramid of asterisk
 
could someone help me to output the following pyramid: * * * * * * * * * * to n ...
[4 replies] Last: Hi Try this one #include <iostream> using namespace std; vo... (by velaphi)
Debuggers...they are great
 
Especially for debugging. :-) I say no more.
[no replies]
strange error
 
i cant, for the life of me, figure out what is wrong with this program. i get a segmentation error. i can't assign any value to userInput. why? instead of using...
[3 replies] Last: This bit looks like an infinite loop as well if the string starts with... (by guestgulkan)
snake game
 
i'm trying to make a snake game & i can't make the lenght of the snake increase & it's score & the fruit appears one time only & i have to press on the arrow al...
[1 reply] : I would suggest making a variable for the length of the snake. then U ... (by cyberpirate)
ostream
 
How to make ofstream file save in location where i want?
[2 replies] Last: Thanks for help! (by Blagojce)
May 2008 Pages: 1... 45678... 12
  Archived months: [apr2008] [jun2008]

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