Beginners - March 2011 (Page 19)

by mw3284
bubble sort via pointer
 
I'm trying to do a basic bubble sort using dynamic memory allocation and pointers within a class. I ...
[7 replies] Last: Thanks: if((p + i)->getRain() < (p + i + 1)->getRain()) { Rainfall te... (by mw3284)
by uTil
infinite linked List unknown
 
Hi, this is a follow up on a previous question I had regarding an object we created to store a list ...
[1 reply] : See http://cplusplus.com/forum/general/39038/ (by naraku9333)
array
 
wrote: >hello friend would you help me with my assignments... >i just cant pick it up... >i was ...
[2 replies] Last: What are you having trouble with? Edit: [quote=Zhuge]What? Why w... (by Danny Toledo)
string
 
hey anyone!! I HAVE A PROBLEM AGAINST "STRING FUNCTIONS" please.. i beg you to help regarding thi...
[1 reply] : For number 1, its fairly easy to look at individual string characters.... (by uTil)
SIMPLE CALCULATOR USING ONE-DIMENSIONAL ARRAY
 
#include<iostream> using namespace std; int main() { int i; double oper ,ans; ch...
[2 replies] Last: And use [co de] tag, please. (by Zhuge)
by Tamlyn
Switch statement problems
 
Hey guys I'm new to c++. Would love some help with this program :) I'm having trouble with the swit...
[1 reply] : You need brackets around you switch statements: switch (variable) ... (by Browni3141)
by dan104
How to read in information from a file and store them in 2D arrays
 
Hi, I am quite new to C++ and well, I need help with an assignment. I am supposed to read in a file ...
[3 replies] Last: Thanks Toni, I've managed to read them in using strings, like what ... (by dan104)
template<class T> vs template<typeName T>
 
what's their difference, if any? when will i use one instead of the other?
[2 replies] Last: thanks for the clarification :) (by sanji2011)
Calculate average from file array
 
Hello, I am working on an assignment where I have a file with 300+ "test scores". However, I hav...
[5 replies] Last: 1. main() still needs to return an int 2. You still aren't using ... (by Zhuge)
by uTil
linkedList "first" address changing- don't know why!
 
Hi, I am to create a set of strings using a linked list, that keeps them in order alphabetically. My...
[2 replies] Last: Hmm.. alright I suppose that makes sense. I was just thinking returnin... (by uTil)
by Rave
How to create a variable with a name given by the user?
 
Hi, i want to create a variable, but the name and the type should be given by the user, (IN C) ...
[8 replies] Last: In that case, you will have to write your own map container. (by hanst99)
array wont print out backwards
 
having issues getting my void function at the bottom to print out the array in reverse order... any ...
[1 reply] : void printBackwards (); Your forward declaration doesn't match your... (by hanst99)
Jumping to different parts of code
 
I am reletivly new to c++ , but i know quite a lot. I am working on a text based adventure to test m...
[7 replies] Last: Luc, for a text adventure an object oriented approach is way overkill.... (by hanst99)
accessing "char * array" elements
 
how can char array elements be accessed? I have this code but I'm not sure were my mistake is on....
[5 replies] Last: success guys it worked "*s" accesses an element "s++" shifts to the... (by Blessman11)
Debugging help please
 
Hi, my teacher wanted us to test the "class list" with different datatypes and insisted that one of ...
[2 replies] Last: thanks, i was just missing some parantheses i guess. Syntax errors. ne... (by darxknight)
position of string
 
Hi: I'm trying to get this algorithm working. It should open an external file and read the contents...
[3 replies] Last: I'm closing this thread as I have changed the program to make it funct... (by defunktlemon)
eclipse, bizarre error when all the code is correct - symbol(s) not found -
 
Hey everyone :)! I am using Mac Eclipse with GCC to learn c++. I have improved in my c++ immensel...
[3 replies] Last: OK I noticed I hadn't added the destructor for each object. So I put t... (by cloudarchitect)
error: expected unqualified-id before "char"
 
Ok, so I have seen this error all over this forum and other forums and have tried and double checked...
[1 reply] : #ifndef hash #define hash #include <iostream> #include <string> usi... (by hanst99)
constructor function inheriting variables?
 
Hello everyone, I am learning to work with irrLicht and I have come across a piece of code I do not ...
[3 replies] Last: You didn't read through the articles, right? There is a HUGE differenc... (by hanst99)
by lalala
how would I put this in a function?
 
I am not sure how i would put this code in a function. We were just introduced to functions in class...
[5 replies] Last: Yes, but you can specify a deliminator for getline(). If you wanted, t... (by ModShop)
March 2011 Pages: 1... 1718192021... 52
  Archived months: [feb2011] [apr2011]

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