General C++ Programming - March 2010 (Page 16)

Merge Sort Question
 
Implement the mergesort algorithm in C++ as it sorts the following array into ascending order. List ...
[2 replies] Last: If you don't know how the alg works look it up. Pseudocode is all over... (by tummychow)
making a popAndDiscard stack method
 
Make a method called popAndDiscard that removes and discards a user-specified number of elements fro...
[5 replies] Last: Well your exception specification does not match what your function ac... (by jsmith)
by dcfjoe
C++ File Input/Output Problem
 
The purpose of the program is written at the top in the comment statements. My problem is with the s...
[5 replies] Last: I am sorry for asking the dumb question, I used VS Intellisense to sho... (by dcfjoe)
Strange SegFault
 
Hi everybody, Can anyone tell why there should be a segfault in this portion of my code?! 1...
[5 replies] Last: Thanks to all replies :) I think you are almost right. Cheers, (by siavash2)
unsorted list...
 
Hey everybody! I know what i want to do, im just unsure of how to do it. I want to make an array and...
[5 replies] Last: yea i tried it the first way earlier but i forgot to initialize it (du... (by chewykb24)
Error problem
 
I have a problem to do for class. We are to create a function named mult() that accepts two floating...
[3 replies] Last: You're not supposed to have cin in your mult function. The idea is ... (by Disch)
Complex Numbers
 
Hello Everyone! I am currently working on a program that adds, subtracts, and multiplies complex ...
[2 replies] Last: ok thanks for the help...if I have any other problems I will post it h... (by ohsnap1319)
my code is wrong:(
 
i have tried a lot to solve this problem but still my code is wrong could any one help me!!,this the...
[7 replies] Last: Did you even look at his code? He just need to fix very few things and... (by maikel)
fifths to tenths of a second
 
Hi. I'm new here and new to C++. I'm writing a program which analyzes a race horses pace performan...
[1 reply] : Nothing automatic. You'll have to parse and convert the values yourse... (by jRaskell)
by btripp
Interesting Macro idea.
 
Hey, Is there any way to make a macro/template that for example when a new project is created, will ...
[7 replies] Last: Yea I would have. Ive read the reasons why. Also, I just found out the... (by btripp)
by yumito
Problem with for loop
 
When asked to enter a number between 1-3 it should give an error and reask the user to enter another...
[4 replies] Last: Why dont you use switch case for option . (by bluecoder)
usleep/sleep/Sleep/etc
 
I was talking with someone in my CSE class and they said: [quote=They]I once read that sleep and ...
[4 replies] Last: Not necessarily. The granularity of usleep cannot be any finer than... (by jsmith)
by CDS
Simple Bar graph with larger numbers
 
Hello there, I'm new to C++ and I want to do a simple graph with large numbers like 96.5 to 100. ...
[6 replies] Last: Well, it's possible, sure, but then 1.1 == 2.0, 1.2 == 3.0, 1.3 == 4.0... (by jsmith)
double vs float... can somebody explain this code to me?
 
Why is the output of this piece of code 12 nan If I replace double with float, it works as ...
[8 replies] Last: Thanks webbertiger, I got it now. (by konradsa)
How to run this experiment?
 
I have a test instance (i.e. graph) and two algorithms. I am using visual studio 2008 (C++). ...
[2 replies] Last: or use function overloading if they doesn't take the same paremeters. (by chimera)
Can anyone please show me how to do this sample problem?
 
Shipping Charges The Fast Freight Shipping Company charges the following rates: Weight of pack...
[6 replies] Last: you have to include <iostream.h> (by bluecoder)
Understanding vs using CppUnit
 
Hi I've posted this question in the 'Beginners' section and got no response. I'll give it a try h...
[no replies]
by shenh
How to allocate 2D array dynamically?
 
I need to allocate a 2D array as a 1D continuous array with the following code, double **allocate_...
[1 reply] : I go over some techniques here: http://cplusplus.com/forum/articles... (by Disch)
checking if a string is within a language
 
I need a bit of help with a homework problem. I think I have a good start I am unsure how to break ...
[2 replies] Last: That was the perfect answer, thank you very much! (by kyleg033)
linking problem with borland
 
Hello, I am getting an error message during linking (ilink32) - Fatal: Unable to open file: CW32....
[4 replies] Last: @kbw I moved these files into the working directory from the lib di... (by CPlusplusdna)
March 2010 Pages: 1... 1415161718... 23
  Archived months: [feb2010] [apr2010]

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