Beginners - December 2010 (Page 20)

by bonw
Memmory game problem
 
Hello, i'm new to these forums. I started c++ a week ago but it looks fun! Anyways, I'm making this little memmory game. Now, the point of this game is to type...
[7 replies] Last: Hmm i'm not sure if we have that book here in portugal but i'll try to... (by bonw)
wierd blackjack
 
ok so i have to make a blackjack game or "21" but the twist is that they get to pick how many cards they have and what the cards are (stupid i know but its wha...
[6 replies] Last: ohhhh ok lol that makes sense now :) thank you for all your help by th... (by Shlacker)
by valery
function in class does not compile
 
Hello! Maybe someone could help me figure out why these 2 functions do not work when in a class. Specifically, search_ign_case() would not compile. Howeve...
[4 replies] Last: Yes you have. Thank you very much indeed. (by valery)
hiding old .exe
 
I have made a few small programs: Calculator Temp Cal Tip Cal C/F Cal Password prompt (GUI) I'm now trying to make a central hub that will launch the fi...
[5 replies] Last: The safe way is to copy the code us a fuction in tyhe caller. But that... (by DeusExInfernus)
Constructor of Class within a class
 
I've to define a class within a class something like this: class A { int a; public: A (); } class A::A() { a = 100 ; } ...
[1 reply] : Use initializer lists: class A {public: int a; public... (by Null)
doesnt output maximum number
 
well it should output the index of maximum number:P #include <iostream> using namespace std; const n=10; int main() { int array ,v=0; for(int t...
[1 reply] : Hi, I have modified your code sllightly as you will notice I have r... (by shredded)
Void Functions
 
Edit: Thanks for the pointers, I've solved my four problems with the help and some assistance from a classmate that took the class already so knows it a bit bet...
[2 replies] Last: Thanks, I'm going to get some rest and come back at it with new eyes. ... (by Darmicus)
by ppolcz
operator overloading
 
Hello everybody! I have a problem with operators! What can I do if I want to use the same operator for different procedures, for example I want to compare tw...
[1 reply] : don't use operators but use some other functions/functors. STL allows ... (by Bazzy)
c++ socket programming!!!
 
hi please introduce me a good book for c++ socket programming. is there c++ standard library for socket programming.
[6 replies] Last: thanks all (by javadvjj)
Palindrome.
 
I wrote a program but there's a problem. I need to ignore white space and punctuation, so far i can only ignore the Cases, can someone modify my program to make...
[1 reply] : You could do a function that erase all the spaces and puntuation and s... (by ne555)
3 x 3 array magic square
 
I modified my program to make all rows and column to add to 15 in 3x3, that will prevent the noncontinuous problem u state earlier. However i got a new problem....
[no replies]
strcmp and scanf (for phonebook program)
 
My assignment calls for a program that uses structures for phonebook entries with first name, last name, and number (7 digit, no characters). typedef struct ...
[no replies]
Word Frequency C++ Issue
 
Hi I need help!! My program is supposed to count word occurences from a text file and the output is supposed to look like this a 2 count 1 hello 1 test 2 ...
[1 reply] : My first guess is that you're saving the same word more than once. So ... (by Browni3141)
Static to nonstatic
 
#include <iostream> #include<cstdlib> #include<ctime> using namespace std; class Event{ private: int number; public: int Random(); }; int E...
[7 replies] Last: This forum has rules.One of them is to use code tags when inserting so... (by pva)
by vlad61
while user == gulible star 3
 
#include <iostream> using namespace std; int main() { int count = 0; int number = 99; while (number != count) { cout << "...
[6 replies] Last: I recommend to study the for , while and do while loops a bit more and... (by pva)
simple character count
 
Hey all, I am nearly done with this short program using pointers to count how many times a given character is typed in a string. The problem is, it only w...
[4 replies] Last: I'll keep that in mind and see what my professor says about my code to... (by lolzgeorge)
rock paper scissors
 
i have written this code for rock paper scissors but the code wont work. every time i execute it and run the program it comes out as a draw, is there something ...
[4 replies] Last: Meh, close enough... :P (by DeusExInfernus)
by kloten
How to read in a text file character by chararcter??
 
I have an assignment which requires me to read iin a text file character by character. I have managed to readin the file as a strin but not character by charact...
[9 replies] Last: hi we have used 'i' as the counter when we have input the numbers ... (by shredded)
I would like some direction on counting character in my 2D Array
 
I wrote a program like the game of life and i go through several generations. At the end of my program I want to count the number of * in the last generation(g...
[4 replies] Last: Hey thanks I got this working I really appreciate the help. Have a g... (by newcoder)
How can I play a MIDI track?
 
Hello, first post here for me, I hope to be active for a long time hehe... I'll say what I'm using, since it may change some things. Linux (Ubuntu), Eclips...
[no replies]
December 2010 Pages: 1... 1819202122... 35
  Archived months: [nov2010] [jan2011]

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