Beginners - April 2011 (Page 9)

Vector to replace array
 
Can someone help me get started on this I'm not sure where to start. This is what i have to do with this code: Use vector to replace an array to store students...
[2 replies] Last: You'll find the documentation on this site is quite informative: http:... (by lnk2019)
swap values in two variables
 
Write a generic function that swaps values in two variables. Your function should have two parameters of the same type. Test the function with int, double and s...
[7 replies] Last: ok Thanks for the example (by pops1423)
by jls36
Implement a stack with a Doubly linked list
 
I'm trying to implement a Stack (FILO) with a doubly linked list. I have it working with a Queue (FIFO) but when I try changing things around it don't work. If...
[4 replies] Last: This is how you push data on the stack void push(Item** top, int aInt)... (by coder777)
by snakec
making small c project
 
Hi ! everybody out there i write a very simple c code which is following: #include<stdio.h> int main() { int a,b,s,m,d; system("clear"); int a =20; ...
[1 reply] : http://www.techytalk.info/2011/04/c-cplusplus-library-programming-on-l... (by PanGalactic)
If and ells
 
Hi I have a problem. The problem is that I can’t seem to get this "if" and "ells" statements right. I have only been programming for a month or so. He...
[4 replies] Last: Thanx for the info and you all are greate help. (by Binarix)
by stric
Access to nonstatic class from static
 
First I would like to say hi to everyone here. I am writing a bit bigger application, and I put it in more logical pieces. Now I have UI (currently just conso...
[2 replies] Last: Hi Disch thank you very much. It works now. :) (by stric)
by weaboo
Extract from string put into char
 
I am working on a program which input large numbers and break them up into elements of 4 to put them into a char array, which will then be converted into an int...
[1 reply] : You can pass a.c_str() to atoi. Any reason you don't want to use strin... (by Bazzy)
Validating Triangles
 
I'm very new at this so I have this question that we are doing in class, here it is. 'Write a program that prompts the user to enter the three values (one f...
[4 replies] Last: yeah, thats up to you. i prefer using if/else statements, but thats ju... (by metl wolf)
by makr28
Pure virtual functions
 
Every functions defined in the CTime CDate and CDateTime but I still get a C2259 error when i try to make a CDateTime object in main. namespace MRDateTime {...
[2 replies] Last: indentation wouldnt hurt the chances of you getting a reply either =P ... (by metl wolf)
Need to Make a couple of arrays
 
#include <iostream> #include <fstream> #include <string> using namespace std; bool openFiles (ifstream &fhInput); void sortArray(int array , int size...
[2 replies] Last: although this would help even more =P #include <iostream> #include <... (by metl wolf)
More Practice?
 
Here is a list of my labs I have completed this semester in C & C++ C: 1. Hello World 2. Money Conversion Table 3. Basic Calculator 4. Basic Calculator (...
[3 replies] Last: try these: http://www.cplusplus.com/forum/articles/12974/ (Beginner ex... (by matsom)
Help with returning (1,2)
 
Heya, I'm new to the forums and to C++ (4 days FTW) and I need some help with this code. It's basically a jumbled mess, but I follow its odds and ends to make s...
[36 replies] Last: Thank you Albatross! (by Shay9999)
dont know exactly how to do program and tried to copy from another program and didnt work
 
#include <iostream> #include <cstring> using namespace std; int s; int count(const char string &s, char a) { int a; int startingIndex = 0; in...
[3 replies] Last: Um, what? First please encode your source with the [ /code] tags. A... (by TheNoobie)
take a look :)
 
hi this is my first big project as a beginner. :) it's an RPG Menu ( Nothing special yet!) that i thought you could take a look at and see what you think. #...
[11 replies] Last: class Warrior { private: int Health; int Strength... (by Khaltazar)
by Ashley
why do varibles not work, in this remove function.
 
this function is suppose to rebalance a heap after the max value has been remove from a seperate function. while I was writing it I first tried a varible for Le...
[4 replies] Last: I have it working as long as I don't use the variables and just use 2*... (by Ashley)
read file into array
 
ok lets say i have the following text file A 2 B F B 2 C G C 1 H H 2 G 1 I 3 A G E F 2 I E and the following struct struct info { char verte...
[1 reply] : a couple issues i see here: 1) x is an int and you're tying to store a... (by prophetjohn)
by raden1
99 bottles of beer on the wall
 
When I try and run the program, it starts at 75, instead of 99. Also, what's the point of using notepad when C++ comes with a thing to wright code in? I am ver...
[3 replies] Last: That was for a tut I was doing and didn't bother to erase it. :D (by raden1)
file reading
 
hi all, question here about how to most efficiently do some file reading. I have a txt file, and must read through the data until i hit a certain word (we'...
[2 replies] Last: got it all worked out. thanks for the help man (by sk8sensei)
Need help loading a resource file into a picturebox
 
Hi All, I'm trying to figure out how to load the images from a resource file into a picturebox. I have searched through on this forum, but most of them are...
[7 replies] Last: @computergeek01 yeah, i know what you mean (by metl wolf)
Bingo game
 
Hi. I'm creating a program in c++ that plays bingo. So far I have the card, however I don't know how I can possibly create markers that would 'x' out the number...
[3 replies] Last: This is how far I got. Now I'm not quite sure where to go from here =\... (by hotdogx17)
April 2011 Pages: 1... 7891011... 55
  Archived months: [mar2011] [may2011]

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