General C++ Programming - October 2008 (Page 4)

delete[] assert error
 
I am getting an assert error for a delete statement that only usually happens to me when i accidently try to delete it twice or something. But can anyone tell...
[8 replies] Last: IMO. int main() { char* title = new char ; sprintf(... (by Zaita)
by lipune
socket
 
Hi to all...... How can we make udp socket behave as tcp means how to make udp as reliable,,,,,,if possible mention some code. 2-is it possible to...
[3 replies] Last: You can make UDP behave like TCP. But you have to do this manually and... (by Zaita)
by gAaRa
Playing background music ?
 
Hello I am quite new to playing sounds in c++ programs and have done it only a few times using PlaySound(). I want to know whether you could play music in th...
[1 reply] : You can use something like OpenAL or FMOD to accomplish this. (by Zaita)
how to delete and edit?
 
this program is ok..i can add & save, i can search and display.but i want to put how to edit entry and how to delete..anyone knows how? #include <iostrea...
[1 reply] : http://www.cplusplus.com/forum/articles/1295/ (by Zaita)
C++ developers???
 
Can anyone help me. I'm looking for a C++ developer who knows how to unpack iTunes. Sorry if this is a bit vague, this is not my field of expertise.
[1 reply] : http://www.cplusplus.com/forum/articles/1295/ (by Zaita)
by Marwa
using direct x 9 with vc++ 2008
 
hi all, i have a problem with opening a direct x 9.0 sample made by vc++ 6.0 in vc++ 2008 when i compile i got a lot of the following errors 1>solar.obj :...
[1 reply] : VC++ 2008 and VC++ 6.0 use different compilers. The unresolved depe... (by Zaita)
can't display int value
 
Hi All Please help me with the following code, it works fine when i enter 1234567890 but goes mad when i enter one more digit i.e 12345678901. It keeps on ...
[5 replies] Last: IMO. I would use string input; getline(cin, input); inst... (by Zaita)
Trying to understand and use namespaces
 
I'm not sure if this is possible so hopefully someone can help figure this out. I'm using Dev C++ on WinXP. This is a homework assignment and I can do it, I'...
[3 replies] Last: You wanna re-direct cout. streambuf* sCoutBackup... (by Zaita)
Simple Blackjack Game, Random Numbers
 
hey guys, I am writing a program for a simple game of Blackjack, but when it runs, every card comes out the same. Please, any help is appreciated. //Blackj...
[4 replies] Last: Thank you. My problem is solved. I ran the program 4 times, and came o... (by ten thousandth fist)
Strings In C++
 
Hey Freinds I'm not new to programming but having some problems in C++ strings I'm making a program to 1)Reverse String. 2)Check if Palindrome 3)Replacem...
[1 reply] : str1_copy.replace(13,0,str2); You are replacing with a string lengt... (by cjmalloy)
Craps Game
 
I have looked around in a lot of forums and have seen many examples of this game. However, mine is slightly different than the rest. I am having trouble with...
[9 replies] Last: Well....I think this are the details u're asking about.... //print... (by Smok006)
Derived copy constructor
 
class Base { ... // No copy constructor }; class Derived: public Base { ... public: Derived(const Derived& source); ... }; Derived::...
[2 replies] Last: Unless you explicitly declare one, the compiler gives every class a de... (by jsmith)
char array & pointers
 
I tried to assign a pointer with arrays since I was having trouble understanding the concept: #include <iostream> using namespace std; int main() ...
[4 replies] Last: In your example above, char* pCarrier = &aPointer; cout << *pCa... (by jsmith)
word permutation
 
ok guys i think i needed some help here... im trying to get all possible permutation of a seven-letter word for example: char base = "drawing"; drawing =...
[4 replies] Last: Hello again! If u still want that example here u go, but I think u ... (by Smok006)
by Link12
Using a Compare String In A Loop
 
Hi I need to write a program that allows me to enter names in a loop and than it sorts all those names in alphabetical order. Only problem is I really dont know...
[2 replies] Last: Then you could use sort() too. STL Algorithm. (by Repentinus)
C++ calculations
 
I need to make a program that reads in information from a file and compare it as follows: Bags with girth over 62 in. but no not more than 115 in incur a charg...
[2 replies] Last: What is your definition of 'girth'? Presumably it is: g1= 2*(width+he... (by buffbill)
Poker Algorithm.
 
Does anyone here know the algorithm for texas hold em which is a poker game? The algorithm should include the winning conditions for the game, like straight, fl...
[no replies]
Can you please check my code and see if it's correct?
 
case 1: outputFile.open ("addstud.txt" , ios::app); { cout <<endl <<endl; cout <<"A D D S T ...
[5 replies] Last: Yeah...basically right now it will just put an integer the user specif... (by firedraco)
Poker Issue.
 
I am creating a Poker game, texas hold 'em in C++. I wrote most of the code except for the winning conditions. I don't get an compile errors but for some reason...
[1 reply] : Well first off, use [/ code] tags and indent next time... Anyway, w... (by firedraco)
Is this a functional main?
 
What is the significance of the first line in the main. I do not quite understand what it means. int main() { form * ; return 0; }
[1 reply] : It is basically creating an array of 5 pointers to a variable/class of... (by firedraco)
October 2008 Pages: 123456... 11
  Archived months: [sep2008] [nov2008]

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