Beginners - February 2012 (Page 4)

double linked list, removeAtTail busted?
 
I can't figure out what is going on with this bit of code. I'm building a double linked list. wh...
[7 replies] Last: Well, removeFirstOccurrence() looks very wrong. On line 29 you set the... (by coder777)
convert uppercase from a string
 
I'm new to c++ and i have an assignment that's need to be done. i need a to convert the word "by" ...
[7 replies] Last: nevermind i got it... btw, why you don't use this? cout << "\n in... (by chipp)
Appending to arrays
 
I'm reading in data buffers from multiple files and I'd like to append data. I'm doing something ...
[3 replies] Last: You might want to look at the data() method of std::vector .... (by cire)
by kw1991
random number generator
 
I need to make a random number generator that I will be using for student id's. when the number is ...
[8 replies] Last: http://programsplusplus.blogspot.in/2012/01/3-program-to-generate-rand... (by fatal1ty92)
Calculating primes between 1 and 1000
 
Hello, I'm working on a class assignment. This function calculates numbers between 1 and 1000 for p...
[4 replies] Last: Obviously count should be defined and initialized to 0 at the start of... (by cire)
Question on deleting pointers
 
Hi, I have this following code snippet. I need help in determining what is the right place to call...
[5 replies] Last: (Don't forget to check for empty containers. Deleting nullptrs is gene... (by Gaminic)
by john99
Sorting in alphabetic order
 
Hello, Maybe someone help me. I try to sort names in alphabetic order and get the folowing output...
[1 reply] : Rolling your own comparison function and using that is probably the ea... (by cire)
Multiple inputs....
 
So I am writing this program that is supposed to take input from the user, on how many students are ...
[2 replies] Last: As ResidentBiscuit said, you can use a std::vector to store the scores... (by cire)
Searching a file
 
hey guys! My first post! yay for me haha... I am taking a c++ class this semester and I am hav...
[2 replies] Last: When reading in, you don't check to see that you have an address (a to... (by cire)
Stroustrup PPP ch.5 : Bulls and Cows
 
Hi everyone! I have no previous programming experience and am currently teaching myself C++ through...
[1 reply] : A "bull" is a guess that's correct and in the right position in seque... (by cire)
Passing Functions as arguments(help)
 
I getting some errors when trying to pass in some functions as arguments. Heres the Code, ive pointe...
[7 replies] Last: Your prototype parameters don't match the actual signature of the func... (by Bench82)
Reading from file to vectors (warning, grammer fail)
 
Hello all, So...here we go. I have a text file that that looks a lot like this: FirstName...
[1 reply] : Do something like this: std::vector<std::string> v; while(ist.good()) ... (by coder777)
tic tac toe
 
Hello! So in my C++ class we've just finished arrays and we got a rather interesting challenge....
[1 reply] : if you have a 2 dimensional array you can check it like so: if((a ... (by coder777)
automatically end program error
 
#include <iostream> #include <string> #include <windows.h> #include <conio.h> using namespace st...
[4 replies] Last: Note that <conio.h> is a deprecated header. Wazzak ... (by closed account zb0S216C)
by pzling
Compiler not recognising constructor?
 
Hi I'm just finishing up an exercise and creating an object in the interface. My head is probably...
[5 replies] Last: it just points to the start of the argument list... it doesn't know wi... (by Jikax)
Big Numbers
 
I'm writing a factoring program and need to handle very large integers (larger that intmax). What is...
[5 replies] Last: I think in C++ you can create your own data type, can't you? (by Baso)
Problems with coding a basic calculator
 
I'm taking a class in "Introduction to Programming with C++". It is the very first experience I have...
[6 replies] Last: I was finally able to figure out the problem I was having and finally ... (by closed account iT7X92yv)
by TomCW
'Find and Replace' Problem
 
Hi everyone, Before I start this problem/task, I thought I'd touch base here to get some suggesti...
[1 reply] : Don't replace things. What if Idioma.getTexto("print") is longer than ... (by hamsterman)
LinkedQueue
 
Okay this is a homework question, but my problem is that I really dont know what to do basically ...
[1 reply] : I cant use the ll.getHead() because LinkedList ll is private. To avoi... (by hamsterman)
Please help remove errors from the program
 
anybody help me remove the errors from the following C++ program ??? Please re post the code after t...
[12 replies] Last: What course are you even on? - If it isn't a programming one, why have... (by WhiteWind)
February 2012 Pages: 123456... 64
  Archived months: [jan2012] [mar2012]

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