General C++ Programming - April 2011 (Page 25)

AHHH RECURSION!!!
 
I'm just learning about recursion in my C++ book and man is it ever confusing, is it going to be 100...
[6 replies] Last: Im also learning recursion. You might know more than me right now but ... (by zeroelement)
highest value in the array
 
I wrote a function that calculates the highest value in the array but I am having trouble using poin...
[10 replies] Last: You were very close... #include <iostream> using namespace st... (by Mathhead200)
Arrays
 
#include <iostream> using namespace std; int main () { int score ; int total=0;...
[16 replies] Last: Run my program though an array, instead of getting input from cin. And... (by Mathhead200)
by Kidk5
PLEASE help!!!
 
I really need some help with this program. Function 1. In statistics, the mode of a set of valu...
[4 replies] Last: Can you pass a pointer to an array to a function? int findMode(int* p... (by closed account D80DSL3A)
Parameter error:
 
I created member variables in the MainFrame class this way I could access them from anywhere: #inc...
[1 reply] : mainframe.h includes im.h im.h includes mainframe.h In im.h you only ... (by ne555)
by idk
Need some help with I/O File program
 
I am trying to run this simple program below: #include<iostream> #include<fstream> using name...
[2 replies] Last: Thanks, I will try that. (by idk)
Void logic problems
 
void printNumber(int a){ if(a<10) cout << a <<" "; return; printNumber(a/10); ...
[2 replies] Last: C++ doesn't care what you put on a line. What matters is code blocks ... (by Disch)
implement the strncpy function
 
I am having trouble implement the string copy function of c++. I think I have the right idea I'm ju...
[1 reply] : char *mystrncpy(char *s, const char *t, int n) { int strcmp(const... (by hanst99)
Debug Assertion Error
 
I am trying to read an input file that has single and double quotes. I get an error message that rea...
[1 reply] : Some more info, like the relevant source code, would be helpfull. (by mof)
Template class
 
Hi I have this template class but I get a lot of errors in it. 1st error points to the structListIte...
[3 replies] Last: Hi //listM<LISTITEM>::structListItem<LISTITEM> *currStructList; class... (by ne555)
by Tresky
Misplaced Squares
 
I am trying to have a collection of numbers transfer from a text file into a map inside of the progr...
[5 replies] Last: Holy Crap!! How did you know to do that?!?! That worked! I am so sorry... (by Tresky)
Link Error
 
Has anyone out there encountered this.... Error 1 error LNK2005: "class _variant_t vtMissing" (?v...
[1 reply] : Sounds like either you are linking your files incorrectly or something... (by firedraco)
Simulate Command Line Arguments
 
Hey folks. I inherited a program that is launched at a command prompt. Arguments are also passed...
[2 replies] Last: Thank you firedraco! (by BobInRedondo)
Templates
 
Hi, Is there a way where we can restrict the Templates to be used by only certain number of class...
[3 replies] Last: Oh I see...... So its a design choice of templates. Got it. Thnx. (by howtechstuffworks)
Quick if statement error
 
I am having some issues that i am sure is just a obvious problem if am missing. Simple if statements...
[8 replies] Last: It asks for the choice input and it just continues to let the user inp... (by LiverpoolFTW)
Pyramid Help (1,2)
 
* *** ***** ******* ...
[34 replies] Last: i like the way i did it in C# more :) substrings my friends :o (by ascii)
by wayn3
Soft with all library and headers files
 
Hello... I have a problem that is makeing me nervous.. Everytime i want to test a code/program .. i ...
[3 replies] Last: In this case...Thanks for the reply (by wayn3)
Converting from T[][]...[] to T**...*
 
Just for the fun of it, I thought I would implement my own any class. When I finished, everything wo...
[5 replies] Last: For array dimensions, you have to play tricky with templates. For exam... (by Duthomhas)
Finding the average of an array
 
I am having trouble using a pointer in my average function trying to find the average value of the a...
[2 replies] Last: it worked thanks (by ashworcp)
by Gldnbr
Input character by character?
 
How do I read a text file character by character? I have a text file that includes: abcdefghi ...
[2 replies] Last: Nevermind, I got it! (by Gldnbr)
April 2011 Pages: 1... 2324252627... 37
  Archived months: [mar2011] [may2011]

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