Beginners - December 2008 (Page 12)

Binary search an array of C-style strings
 
Part of my somewhat comprehensive project involves doing a binary insertion sort. I am trying to do just the binary search part right now. Here is just a releva...
[7 replies] Last: You cannot pass "mid + 1" as the actual parameter to IndexFileBinarySe... (by jsmith)
by hannad
Input/Output project
 
Hello Peoplez :D This is a homework given to us by our C++ teacher in school. The program description: This is a cable company program. The user would ge...
[7 replies] Last: Thnx a lot Zettai Baka. I appreciate your help :D. (by hannad)
Image Processing
 
I've never worked with it before, and its proving to be quite difficult. We're supposed to construct a program that will read in an image file (text format), en...
[4 replies] Last: I meant for someone who would be considered a beginner in programming. (by helios)
by Bart
Overloading =operator [Beginner]
 
Hello, In the tutorials there is a function described to copy an object, and the code is as follows: CVector& CVector::operator= (const CVector& param) {...
[2 replies] Last: You should also note that you don't even need to define operator= for ... (by jsmith)
probability
 
I got this code form a book: long double probilaty( unsigned numbers, unsigned picks) { long double result = 1.0; long double n; unsigned p; for(...
[2 replies] Last: I think there must have been a transcription error and OP meant a comm... (by jsmith)
by antwan
Program skips struct and goes straight to int main()
 
The program is functional, it's not complete though. I'm just trying to figure out how to put my input into the struct. When I run the program it takes me strai...
[1 reply] : Execution begins at the first line of main() regardless of what appear... (by jsmith)
one cout problem
 
the problem is to read 2 integers and using only 1 cout; we have to print if they are even or odd example: input: 2 3 output: even odd
[17 replies] Last: thanks gen1mx6 it worked (by Pritpal singh)
by friend
how to write a program
 
it's urgent program to implement a sort() template function for sorting elemnts in alist
[2 replies] Last: Just use the sort(), or create your own function and sort the elements... (by Umz)
by antwan
"simple" library program
 
I keep getting linker errors after I run this program and I cannot figure out why. Please help. #include <iostream> #include <iomanip> #include <cmath> ...
[4 replies] Last: You have to go through tutorials for functions again. Function decla... (by rahulcrjk)
by antwan
global structure?
 
How would I go about making a structure global? I get that you put it before int main() but when I try this I don't know what I'm doing wrong here's an example....
[4 replies] Last: Apparently you don't know a lot about scope in C++. I suggest you take... (by Poke386)
by pamela
ASCII code
 
How can I write James Grier using ASCII code
[6 replies] Last: I think helios wins the prize. (by firedraco)
by Foe89
Tic Tac Toe tie function
 
I'm almost done with this tic tac toe program other than making a function to state that it's a tie. I've tried a couple different methods but they haven't wor...
[1 reply] : Here's some pseudocode: bool checkGrid(char array ) { if (som... (by firedraco)
Arrays Topic question
 
My question is this Week 13 Lab A lottery ticket buyer purchases 10 tickets a week, always playing the same 10 4-digit lucky combinations. Write a progr...
[1 reply] : Just a heads up most people are not just going to give you code, but i... (by bluegray)
problem with arrays assignment
 
hello im a noobie when it comes to programing ive been strugling on this assignment all day would some one please show me how i can complete this task Prog...
[1 reply] : You are very close. The assignment requires you to write a function... (by jsmith)
pause()
 
I am just looking for some feedback on this one. I am aware that I could use SYSTEM("pause"); to pause console output but that is obviously a Windows only opti...
[1 reply] : http://www.cplusplus.com/forum/beginner/1988/ Please don't start an... (by CheesyBeefy)
Passing Arrays
 
I'll confess first of all that this is in C, not C++, but I since they're similar and I couldn't find a C forum I figured this was the next best thing. Sorry i...
[11 replies] Last: There is, but this whole area is embedded deep within a bunch of menus... (by mathx314)
Classes, nonstatic member function?
 
I'm getting an error about having nonstatic numbers called in a static class function. The problem is, this function isn't static! The bukkittype.cpp file wher...
[2 replies] Last: Great, thank you! This has really helped me out. So basically I can g... (by demosthenes2k8)
comparing info of 2 arrays
 
Hello all. I'm trying to write a program that will compare 2 one-dimensional arrays and then generate an output telling how many differences there are between...
[6 replies] Last: I actually have iostream and string on seperate lines but for some rea... (by tigerfansince84)
by Foe89
Storing new values in 2d array.
 
I've got a char 3x3 array full of asterisks that I want to replace with x's and o's as a tic tac toe game. How can I have the player input a row and column to ...
[5 replies] Last: If I were to do an if statement to check if a row is occupied by X's o... (by Foe89)
where i place that function?
 
Guys i got a program i made buts its too long so im sending u the url to it :D i need to place in a quit function help me plz ( tryed alot before) The url...
[5 replies] Last: OOOOhhhhh........ Well, that's something completely different. You ... (by helios)
December 2008 Pages: 1... 1011121314... 17
  Archived months: [nov2008] [jan2009]

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