General C++ Programming - April 2009 (Page 13)

by halo
What is The wrong
 
i think i have a problem in the merge function ... the cout is not soreted will: #include <time.h> #include <iostream> #include <stdio.h> void MergeSort(...
[no replies]
How to count lines in streams?
 
I'd like to parse an ascii file using the standard fstream lib. If an error occurs during parsing the line number should be displayed. Since streams usuall...
[no replies]
What am I doing Wrong??
 
This is what I have to write at the bottom is my program what am I doing wrong? Write the C++ code that will contain 4 functions: 1. A void function named...
[4 replies] Last: post using the code button (#) it makes it easer to read void howm... (by CrimsonAngel)
by upo
Combining two images together
 
Hi guys, I need assistance in this. I am supposed to make a function:combineImage(const Image & im, int I, int j): that combines two images together, The positi...
[no replies]
comparing string in file
 
Well forgive me for the possibly obvious question. It's been 3 years since i've progammed in c++ :P Anyways I'm trying to compare a string from a file to a s...
[2 replies] Last: while its an INI right now, though I havent formatted in the input lik... (by Seraphimsan)
how to get pixel color of a color image
 
Hi Guys, I am using a webcam to captures color image. I take the raw data direct and process it on Ubuntu OS using C++. I want to know how to grab pixel colo...
[no replies]
Bool question by using function
 
Here is the code and I am just a bit confused or curious about if there is an alternative for it. #include <iostream> #include <cmath> using name space st...
[5 replies] Last: Return can return anything. True and False are valid return options. (by eker676)
Odd errors (sorry for the bad title)
 
Hi, It's me again. I'm making a program for my C++ class (it's late already), and I'm getting some error I don't understand. It looks like a lot of code, but 1/...
[1 reply] : one for loop is missing the initializer and has an extra semicolon, ma... (by Gumbercules)
Void
 
Do I use a IF, WHILE, or DO-WHILE funtion here I am confused with this part of the program. Help! "A void function named bestbuy that accepts three prices a...
[8 replies] Last: well, the easiest way would be to use an int for nindex, which is a mo... (by Gumbercules)
queue
 
so i made this queue any my teacher wants me to be able to run it though this: void show(const Queue &waitingLine) { } so i made this: ...
[6 replies] Last: wow xD i an currently learning this xD see i tryed doing it inside t... (by CrimsonAngel)
Printing part of an array
 
I Have this assignment that wants me to print out up to a certain limit of an array; basically the array is filled up by the user and i dont knw how many times ...
[1 reply] : Do you mean a value is used to signify the end? Just have the loop con... (by Gumbercules)
Square Display
 
I am trying to make a program that ask the user for a positive integer no greater than 15. The program should display a square on the screen using the character...
[1 reply] : Do you know how to use a loop to display n number of X's? And can you ... (by Gumbercules)
What Do You Think Of This Simple Nslookup? C++
 
What do you think of this code in terms of structure, and readability? Can you understand whats going on easily? Nothing fancy in here... I tried to make the...
[3 replies] Last: Good to know that. Thank you (by f ben isaac)
reading from a file using a two dimensional array
 
hi, i have been going crazy trying to figure this out so if anyone can help that would be great. i have created a class with a data item of type char which is a...
[3 replies] Last: I hope this helps you understand. If you have questions about it, feel... (by Gumbercules)
by jsmith
std::distance and const vs. non-const iterators
 
Hmm, so #include <iostream> #include <iterator> #include <vector> struct Foo { typedef std::vector<char> Container; Foo() : vec( 10, 'x' ) ...
[5 replies] Last: Aha... why did I not think of that??? That'll work... no more lines... (by jsmith)
Function for templates
 
Hello, I have a template where there are some functions which are correct only for some of the data types and not for all. So, I want to make them available ...
[10 replies] Last: Can you post an example that is closer to what you are trying to do? ... (by jsmith)
end of program
 
What can I put at the end of my program to keep the window open? I already have a default.
[1 reply] : try reading this article: http://www.cplusplus.com/forum/articles/7312... (by Bazzy)
Also, can anyone write this program?
 
rtyu
[9 replies] Last: Yeah we have a pretty good little community here heh :D (by Mythios)
change default stack size
 
i read it about somewhere that windows xp provides a default stack size of 1MB. Can i possibly change it using c++ in anyway or i have to use assembly or someot...
[2 replies] Last: thanks that helped (by kaidranzer)
could I get assistance rewriting the first program
 
The first progam is supposed to take two input numbers and output the largest of the two. I don't know what to put between the programs to seperate them. The ...
[2 replies] Last: Thank you very much. (by Rowland1965)
April 2009 Pages: 1... 1112131415... 20
  Archived months: [mar2009] [may2009]

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