General C++ Programming - October 2010 (Page 6)

Comparison Count Merge Sort
 
I am having trouble counting comparisons using recursion with Merge Sort. I haven't even studied recursion yet but get the gist of it somewhat. I am getting 31 ...
[no replies]
by suds
strings (1,2)
 
I'm starting to get confused on what is needed. I'm trying to write a program that displays an appropriate shipping charge based on zip code entered by the u...
[25 replies] Last: Convert the zipcode string to an int and then use > and <? http://cpl... (by Albatross)
by kievar
c++ exercise question (strcpy and new commands)
 
I'm working with an exercise and it tells me i need to use a new command and strcpy, i don't really understand how strcpy works i've been reading up on it, but ...
[1 reply] : strcpy takes 2 pointers. It copies the string data from one pointer i... (by Disch)
Array input validation
 
I have been messing with this for some time and I cannot figure out why this code is not working. I am trying to make the user input either A, B, C, or D. Right...
[4 replies] Last: You already use studentAnswers for other things. Example: replace cin... (by hamsterman)
Dispatching inline function by template specialization
 
Hi everyone, I am trying to play a bit with template metaprograming, and I have ran into a situation that puzzles me. I have a very simple template-based fun...
[3 replies] Last: I hoped there is a way one level higher than reading the asm ;) Anyway... (by DrYurich)
Inheritance with Virtual
 
Hello everyone. I've wrote this minimal example : #include <iostream> #include <cassert> static const unsigned int defData(0xff); class CBasedata ...
[5 replies] Last: Oh, I didnt see the latest answers. "m4ster r0shi" is right in the ... (by Peim4Cei)
by alnews
Call by reference using pointers.
 
Hi guys, I was wondering, what is the difference in practice between a "normal" call by reference and a call by reference made using pointers as arguments? Why...
[1 reply] : References ensure that the parameter is valid. Pointers allow passing ... (by helios)
by mayur
arraylist
 
i am trying to code a telecomm bill project in which everything is done online.i want to create an ARRAYLIST for objects.please help me out how can i do. i h...
[1 reply] : If you want a dynamic array, use std::vector: http://www.cplusplus.co... (by Athar)
by Hiner
I am seeking for hints for a very simple MP3 player
 
I am seeking for codes for a MP3 player - as simple as it can be. NO GUI NEEDED. Just make it simple. It ONLY does the followings: Load a file(MP3 is a mu...
[2 replies] Last: Thanks for your reply. I use it in a Windows Form, which is for a m... (by Hiner)
Pointers and arrays
 
Can someone explain the reason for pointers. i have setup an array like the following. int* a = NULL; int n; cin >> n; a = new int ...
[7 replies] Last: What is the difference then between ... int a ; Gives you an a... (by Disch)
by heidiK
Vector duplicates removal
 
Hello Everyone. Could anyone please help me quickly find duplicates in a vector of over 60000 records. It takes a loooootttttt of time ;'(. Here's the code. ...
[1 reply] : You can not avoid sorting in order to find duplicates if you need to k... (by DrYurich)
How to read from txt file
 
How does my code from C++ compiler will read the text file. I mean just tell me what do i have to type in text file ? I don't know what to type. Thanks
[1 reply] : There's a neat little tutorial on this site about file I/O that you ca... (by Albatross)
Recognizing integer template classes...
 
Hey all. Another weird question from me. (Do I ask any other?) I am writing an Algorithm V Huffman compressor (something I have always wanted to play around ...
[2 replies] Last: Why not just use the boost::type_traits library? It already has an is... (by jsmith)
by tomato
OpenCV question
 
hi~I'm new here.must I use English? eh.every time I open the visual C++ 6.0 to build my GUI code ,it always have many errors. such as :unresolved external sym...
[2 replies] Last: Thank you.I had solved this problem. It's my first time visit the En... (by tomato)
enum problem
 
For class I have a main function provided by the instructor, and I need to build everything to make his main to work correctly. It is based on a Date class that...
[3 replies] Last: Date::setFormat(TEXT); is a static function. For it to make some dif... (by hamsterman)
string sets and accessing single character in it
 
I need to access the last character of the string sets to determine if the integer is 0-9 and then doing something after I determine what the integer is.The com...
[2 replies] Last: Alright thanks man and my main is long but everything is going into fu... (by br0k3nfr4m3s)
classes on c++
 
Hi!! Please I need on a program in C++. Well I have to complete the following program. The objective is that the program asks the user a number and the user wri...
[no replies]
Function parameter error with passing array
 
The code worked, and then I tried to work with functions for more practice. The first code is the code without the function and the second is with the function....
[3 replies] Last: Using an ampersand would pass a reference of the array to your functio... (by Thumper)
static strings
 
I want to make a static class member called dirs that is an array of Strings. My .h file says this static String dirs ; and my .cpp file says this ...
[2 replies] Last: yeah I made several errors. One I didn't include the statement ... (by dunsondog109)
by ToniAz
Getting data from internet explorer window
 
Hello everyone! What do I need to know to copy links into/from an internet explorer window? i.e. copy a link, edit it, then copy it back. Thanks!
[1 reply] : Look up WebDAV. (by kbw)
October 2010 Pages: 1... 45678... 23
  Archived months: [sep2010] [nov2010]

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