2,827 Posted Topics

Member Avatar for eesti44

There are a few ways to do it and you have two separate problems here. Problem 1 is creating the "golf" class with its functions, then successfully compile the "main" file and the "golf" file(s) and linking them so you can use the "golf" functions from "main". Problem 2 is …

Member Avatar for eesti44
0
141
Member Avatar for Chris11246

If you are running a "hello world" type console application and you are NOT running it from a command line but rather by double clicking a file from Windows Explorer or through an IDE like Dev C++, a console window opens, runs the program, then closes before you can see …

Member Avatar for VernonDozier
0
115
Member Avatar for tootypegs

If you want to put aside a 2-dimensional array, you could do this: [code] char buffer1[1000][20]; [/code] This puts aside 20,000 bytes. But do you want 20,000 bytes? You said you are only storing bytes 500 - 1500, which is 1001 bytes. If you want to do a 2-D array …

Member Avatar for VernonDozier
0
299
Member Avatar for kv79

The difference between [code] int ErrMsg(ustring& ) [/code] which is what you have, and [code] int ErrMsg(ustring ) [/code] is that in the first function, the function is looking for a parameter that is "passed by reference". The second function is looking for a parameter that is "passed by value". …

Member Avatar for kv79
0
173
Member Avatar for tehprince

How 'bout this? [code] #include <string> #include <iostream> using namespace std; struct letteroccurence { char letter; int occurence; }; int main () { string letter_box; letteroccurence occurences[26]; // 26 letters in alphabet cout << "Please enter a sentence ending with a period: "; // will read in string until you …

Member Avatar for VernonDozier
0
149
Member Avatar for FoX_

When you say you need to create a binary tree but not a binary search tree, do you mean that that there is no order to the tree? In other words, do you simply insert the next element into the tree without doing any comparison of the values of the …

Member Avatar for VernonDozier
0
155
Member Avatar for kohkohkoh

any one who can help me? hello,,im a Filipino student from Cabanatuan City Philippines.. Im just a Second year College student taking up Computer Science.. I would like to ask you something about sorting an alphanumeric character.. im just a student i would like to learn in advance programming.. can …

Member Avatar for kohkohkoh
0
128