2,827 Posted Topics
Re: 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 … | |
![]() | Re: 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 … |
Re: 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 … | |
Re: 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". … | |
Re: 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 … | |
Re: 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 … | |
![]() | Re: 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 … ![]() |