Forum: C++ Oct 9th, 2008 |
| Replies: 28 Views: 2,728 This is funny .....
Dint you read the faq .. no homework solutions. |
Forum: C++ Mar 7th, 2008 |
| Replies: 57 Views: 6,548 :)
Displaying the image is real easy if it is not encrypted ...
You can use glut + corona to easily display images.
http://www.daniweb.com/forums/thread63827.html#5
Also if you are... |
Forum: C++ Feb 25th, 2008 |
| Replies: 57 Views: 6,548 Use binary mode to open files which deal with encrypted text.
That should solve the problem with the EOF char :)
P.S Refer to my reply to your mail.
If you get it working post the working... |
Forum: C++ Dec 14th, 2007 |
| Replies: 17 Views: 13,041 Or over load the << operator for an ostringstream inheriting class and pipe all the output to into a text box.
eg...
class mfc_text_box : public ostringstream
{
//pseudo -code
operator <<... |
Forum: C++ Dec 13th, 2007 |
| Replies: 17 Views: 13,041 Old style cast.
Read:
http://msdn2.microsoft.com/en-us/library/ms174288(VS.80).aspx
http://msdn2.microsoft.com/en-us/library/awkwbzyc(VS.80).aspx |
Forum: C++ Dec 12th, 2007 |
| Replies: 7 Views: 4,483 I agree with Duoas. If you want delays used timed functions like delay() or sleep() or whatever else.
If you are doing a txt game ... the screen can be cleared using clrscr() (conio.h)
If... |
Forum: C++ Nov 25th, 2007 |
| Replies: 3 Views: 623 First get a C++ book, preferably one that covers the C++ standard ... not a tutorial book .... more like one which covers the ISO C++, with all the details on various aspects of the language.
C++... |
Forum: C++ Jul 30th, 2007 |
| Replies: 5 Views: 2,155 P.S Once you have a nice little windows and directx init/looping code wrap it all up into a nice set of classes/functions that you can reuse. It's really worth the time and effort ;) |
Forum: C++ Jul 30th, 2007 |
| Replies: 5 Views: 2,155 I am not sure if you are using TestCooperativeLevel() correctly ....
http://msdn2.microsoft.com/en-us/library/microsoft.windowsmobile.directx.direct3d.device.testcooperativelevel.aspx
... |
Forum: C++ Jul 30th, 2007 |
| Replies: 2 Views: 1,141 Dont have any code atm .... But you could look to catch the window's minimize message and skip your render & update parts of your game. Then catch the restore message, reset/reload any resources you... |
Forum: C++ Feb 26th, 2007 |
| Replies: 22 Views: 26,081 Code::Blocks would be good if you want an nice to look at interface.
But if you are planning to develop only win32 programs then I suggest you get Visual C++ 2005. That's a really good IDE and is... |
Forum: C++ Jul 3rd, 2006 |
| Replies: 3 Views: 3,130 Found a simple solution: Just overload the darn << operator with a function template, like in the stl headers and then pipe it to ostream.
Works like a charm ;)
class UTIL_Console:public... |
Forum: C++ Jun 30th, 2006 |
| Replies: 3 Views: 3,130 K,
It's fairly easy to use a ostringstream object or a derived class to output text like a normal stream class like cout.
Eg.
class console: public ostringstream
{
public: |
Forum: C++ Mar 10th, 2006 |
| Replies: 5 Views: 1,381 P.S if you only want a bing, then try
cout<<"\a"; |
Forum: C++ Mar 10th, 2006 |
| Replies: 5 Views: 1,381 Use the Package Dowload utility to get FMod.
Goto Tools->Check for Updates/Packages..
You can find a package for FMOD on one of the download sites. Look under the Audio category.
You... |
Forum: C++ Dec 16th, 2005 |
| Replies: 8 Views: 7,881 Try using the std::vector template class.
std::vector<int> my_int_array;
//Add elements
my_int_array.push_back(10):
my_int_array.push_back(2):
//Display all the numbers
for(int... |
Forum: C++ Dec 16th, 2005 |
| Replies: 3 Views: 1,375 hmm..
if the date is in the month of Jan or before/on Feb 29 it will not matter whether the year is leap or not.
Now we know that Jan,March,May,July,Aug,Oct,Dec has 31 days and the rest 30... |
Forum: C++ Dec 16th, 2005 |
| Replies: 47 Views: 157,159 Have you tried deleting both the files and then running the program?
Or does your program open 'tpong.pl' elsewhere and does not close it?
Try checking with fout.good() to see if the file has... |
Forum: C++ Dec 16th, 2005 |
| Replies: 47 Views: 157,159 I agree and it's true. It is based on pre standard C++ file streams. When I wrote it, only the cutting edge people really used STL and coded according to standard c++ methods. Geesh, I did not even... |
Forum: C++ Feb 22nd, 2005 |
| Replies: 13 Views: 13,734 I have not tried the code in DevC++, but there should be an option under traget settings to compile in large memory mode..........
1o0oBhP seems to know about it, I will ask him about it.
My... |
Forum: C++ Jan 27th, 2005 |
| Replies: 47 Views: 157,159 Hey post the code, I will be able to better pinpoint the problem :) |
Forum: C++ Jan 13th, 2005 |
| Replies: 47 Views: 157,159 Reading a whole line is quite simple.Just use:
file.getline(char_buffer,size);
and also:
file.getline(char_buffer,size,terminating_char);
By char buffer I mean any char array ;) and by... |
Forum: C++ Jan 7th, 2005 |
| Replies: 47 Views: 157,159 There are a few problems with your code.The char *data, is just a pointer.You need to allocate some memory to it before you call cin or it will cause the program to crash.
Better yet just... |
Forum: C++ Dec 31st, 2004 |
| Replies: 8 Views: 10,387 Are you including stdlib.h in your source? or you could try using the delay() function...
win16 version? what sort of comp are you using? |
Forum: C++ Dec 9th, 2004 |
| Replies: 47 Views: 157,159 You are welcome.
Advantages of Win32 API (FILE) file handling, are you kidding,it sucks.... well almost.One of the major problem with it is that it is platform dependent and uses C style... |
Forum: C++ Dec 2nd, 2004 |
| Replies: 47 Views: 157,159 You most welcome ;)
One becomes good at programming by doing and making mistakes.Failures are all stepping stones, and anyway making mistake once will help you to fix it faster if you make... |
Forum: C++ Dec 2nd, 2004 |
| Replies: 47 Views: 157,159 anastacia, best of luck, and if you really do what you say I can see you becoming a really good programmer. |
Forum: C++ Dec 1st, 2004 |
| Replies: 47 Views: 157,159 You are most welcome ;)
I also have a new xlock (i.e my site) up.I will get the link out soon,Till then keep clicking http://xlock.ssr.be (right now it will not get you anything :( ) |
Forum: C++ Nov 28th, 2004 |
| Replies: 47 Views: 157,159 Sure thing.And you are most welcome ;) |
Forum: C++ Nov 16th, 2004 |
| Replies: 7 Views: 3,359 No way.You will go crazy if you process on char at a time.Just read a whole line into a char array and then encode it.I will give you a very simple encryption algorithm called XOR.
void XOR(char... |
Forum: C++ Oct 13th, 2004 |
| Replies: 1 Views: 2,698 Did you check the C++ tutorial forum here?
Link:http://www.daniweb.com/tutorials/6811.html |
Forum: C++ Oct 13th, 2004 |
| Replies: 5 Views: 2,615 Try http://www.google.com and search for writing compilers.You will find loads of solid info on that.Also search for Lexical Analisis. |
Forum: C++ Oct 10th, 2004 |
| Replies: 4 Views: 3,130 Look in the tutorial forum at dani too ;) and google |
Forum: C++ Oct 8th, 2004 |
| Replies: 3 Views: 4,406 Search the forum,I remmember typing out an entire function to get passwords while displaying *'s and supporting backspace too.
In a hurry gota go... |
Forum: C++ Sep 20th, 2004 |
| Replies: 7 Views: 15,070 yea, also you can press Ctrl-End (which take you to the end of the page) and press enter (to make a blank line )
Simple |
Forum: C++ Sep 18th, 2004 |
| Replies: 3 Views: 11,418 Yea you can use BGI with VC++, if you want you can get TurboC from http://www.borland.com
You could try Mode13h which is DOS based.
http://www.google.com
Also you can try GCL which is gui:... |
Forum: C++ Sep 16th, 2004 |
| Replies: 0 Views: 3,717 Graphics In Pixel
Part II A
'Now we are going to get it'
By Aaron (a.k.a FireNet)
http://xlock.hostcubix.com |
Forum: C++ Sep 16th, 2004 |
| Replies: 1 Views: 4,324 Check out the fstream tutorial which covers using structures to store info.It covers databases and a little more.
http://www.daniweb.com/techtalkforums/thread6542.html |
Forum: C++ Sep 11th, 2004 |
| Replies: 47 Views: 157,159 Yea, prevention is better than cure ;) |
Forum: C++ Sep 10th, 2004 |
| Replies: 1 Views: 5,889 Simple, I will leave how to make a linked list to you, it's really simple.If you dont have any info on that look to http://www.google.com/.
int main(int args,char **argv)
{
}
This is... |