Beginners - February 2009 (Page 13)

vector param within function?
 
i have tried to make a function that does the following: given two ranked lists of items (strings), it checks to make sure that each item appears somewhere in b...
[2 replies] Last: I believe you could also do this in 1 line of code. Not compiled: ... (by jsmith)
Structure Initialization failing
 
I have written a program for an exercise in a book I have. The program uses structures to store airline reservation data. The problem occurs when trying to co...
[12 replies] Last: You need "struct" if you are compiling the code with a C compiler. Yo... (by jsmith)
by memoc3
spelling checker..
 
helo all.. here i have write a complete coding for the spelling checker prog. its a assignment. but its still cant compiled. i check and everything just fine fo...
[1 reply] : Well, obviously, if it doesn't compile then it's not "fine". 1. Edit ... (by helios)
What is volatile?
 
A detailed description please?
[4 replies] Last: Sometimes, it's necessary to guarantee that a variable is up to date. ... (by helios)
by Inks04
Creating a loop for Two player game
 
Hello everyone!! I need a lil help trying to figure out how to loop two players of a chip game. Im new to c++ and I'm trying to understand this stuff the be...
[9 replies] Last: Thank You SOO much. That was a big help (by Inks04)
Input text file, compare integer patterns, output new text file
 
Hello, Collective Wisdom, I have a text file with many rows of numbers. Each line is 11 integers (all between 0-11), a colon, and then 12 more integers. It l...
[1 reply] : First, make a fstream, then open the file. Read the file into a vecto... (by firedraco)
by selder
a simple yahtzee game
 
I have to write code for one round of yahtzee with 3 rolls. I've gotten it to generate and display random numbers but I need help on how to be able to hold the ...
[1 reply] : Try using an array. Each value in the array represents a dice number. (by eker676)
function: Array initailization
 
I am trying to write a function that takes 1 dim arrays of various lengths and initializes them to zero. I am planning to call the function multiple times, t...
[4 replies] Last: sorry... ignore the question, i did not refresh. Thanks (by Northerj)
by masiht
Unable to make this program
 
I am trying to make this program.I want it to ask the user if it he wants to quit the program or not. Please tell me how can I do that #include <iostr...
[14 replies] Last: Thanks guys. (by tcbaby)
by elliet
Arrays and Functions
 
I am writing a program to read a sentence into an array and then delete all repeated letters and spaces and then print out the new sentence. after a repeated le...
[3 replies] Last: hey nvm i think i got it. hahaha thank you soo much<3333 (by elliet)
[SOLVED]Changing the color without system()
 
I know how to use SetConsoleTextAttribute() to change the text foreground and background color. But was wondering how I can get the hole background to change it...
[6 replies] Last: Thanks for that helios - worked a charm. I used a function i made from... (by Mythios)
by masiht
question about while and do while
 
I have been reading the tutorial here. but when I went through while and do while , I didn't get it and I has just one examples
[5 replies] Last: and while ( m=='d' ); (by Bazzy)
Overload operator with one operand.
 
Ok, I know how to overload an operator. I have successfully overloaded +, -,=, * for a matrix class. I am trying to do inversion of a matrix. I have the code...
[1 reply] : You can't have a unary / operator (by Bazzy)
by memoc3
swap letter in string
 
may i know how to swap letter in string str.swap(str2) is swapping whole string ...i wan swap letter oni..can anyone teach me.
[7 replies] Last: Why are you using a string array? string myints;//In your code you... (by Bazzy)
Proper implementation of a destructor for 2D matrix?
 
I am fairly new to C++ so this may be a simple question. I have created a dynamically allocated matrix using the following code: data = new matrixData* ; /...
[7 replies] Last: Yeah, that was my problem. Thanks! (by krispygrimace)
by tcbaby
Trying to make this program better
 
My problem is I'm trying to add a data member to the lobby class that always points to the last player node on the list and use it to more effectively add a pla...
[2 replies] Last: if you add a player, then try to remove a player of a different name (... (by tcbaby)
Visual Studio
 
Why can not any other computer open my program I make in Microsoft Visual Studio 2008, somebody told me to compile it with devc++ and everything will be fine. ...
[9 replies] Last: I have solved my issue. It was adding the "VCredist_x86" onto the co-w... (by exercisephiend)
by gevat
question about free() command
 
Hello, when i use free() command on a pointer pointing to a structure, its value is automaticly changed to NULL or i have to do that manually? Thank you!
[1 reply] : free() releases a previously allocated block of memory to the heap. T... (by kbw)
by shem
Expected unqualified-id before ‘unsigned’
 
Hi, I am new to C++ programming and have been studying it for about a week. I have run into a few problems, like all beginners, but have always been able to...
[3 replies] Last: Thanks to both Zhuge and Grey Wolf, I rewrote it from scratch and got ... (by shem)
Buying and selling game
 
I want to make this game where the player buys and sells things. While playing the player should be able to see what he/she has and how much money they have, ho...
[5 replies] Last: ok ok ok now my question is, the money resets after the second time th... (by Flash41000)
February 2009 Pages: 1... 1112131415... 22
  Archived months: [jan2009] [mar2009]

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