Forum Replies Created

Viewing 15 posts - 16 through 30 (of 41 total)
  • Author
    Posts
  • in reply to: C++ Games #3309
    msaqib
    Participant

    Hello

    Here is a source code I have found for your games. Also this article shows list of C++ game engines developed.
    Caribbage: http://www.devboxforums.com/showthread.php?t=846

    I searched for about 10 minutes and found these two source code for you. I hope if you invest 20-30 minutes you will find the solution for all the games.

    Good Luck!

    in reply to: Re: C is The most Powerful Pogramming Language #3307
    msaqib
    Participant

    C Language has many advantages over other programming languages. Also it has some drawbacks. Like
    @cmans wrote:

    C’s low level nature leads itself to generation of fast , efficient object code , but may have longer development times than other languages like Java.

     
    C language provides support for low level functions like accessing the hardware directly using interrupts, and enables the programmer to control the I/O devices directly.
     
    Drawback is greater development time, but if used with C++ then using Objected Oriented nature any sort of project can be developed in a timely manner.
     
    Most of the biggest software in Computer Science are written using C/C++ language. Examples are Adobe PhotoShop, Dreamweaver, Acrobat.

    in reply to: Basic informations #3284
    msaqib
    Participant

    mention not charlie :)
    That trial version of visual studio if for 90 days so you haev lot of time to play around the studio and do your stuff
     
     

    in reply to: Basic informations #3282
    msaqib
    Participant

    Hello 
    Wel you can get visual studio 2005 from microsoft website. You can download or order a free visual studio 2005 from the website which will include visual C++ 2005. Here is the link for both of them.
    http://msdn.microsoft.com/vstudio/products/trial/
    http://msdn2.microsoft.com/en-gb/visualc/default.aspx
    To communicate with phone using your PC you can use Microsoft Telephonic API (TAPI).
    http://msdn2.microsoft.com/en-us/library/aa922068.aspx
    this will help you out.

    in reply to: invalid operands of types `float’ and `int’ to bin #3260
    msaqib
    Participant

    Hello
     
    Well there is a sligh problem with your code. You are using ^ as a power operator but there is no such operator which performs the power operations. This operator (^) is a bitwiase operator to calculate XOR.

    To calculate the power you can use pow(double x, double y) function. It will calculate x power y. 
     
    Also make sure you include math.h header in your program as pow function is defined is this header file. 
     
    So your function should look like

    in reply to: How to Print Special characters( eg smiley face )? #3254
    msaqib
    Participant

    Hello
    Printing the special characters using C language is quite easy. All you need is to know the ASCII value of that special character and print out that character on the screen.
    Here is a small program that will print the special characters using c language. You just have to print the ASCII value of that special character.

    in reply to: #if defined INTEL_W32 #3234
    msaqib
    Participant

    According to my understanding INTEL_W32 here is used to define some values which corresponds to Intel Machine (Processor) and Win 32 plat form, which can be (Windows 98, Windows 2000 or Windows XP).
    The reason for this thing is that any statement begins with # are preprocessor directives. Compiler process them before processing of the programme source code.
    For example, #define PI 23.7 causes every occurrence of the word “PI” to be replaced with the number 23.7. All these things are done before the compiler compiles the source code and the linker links.
    It is just like #include in C programming language which causes the contents of io.h processed first.
    But in the case of #if defined INTEL_W32 directive, any material between the #if and a #else or #endif will be included or processed in the source code if there has been a previous statement which defines INTEL_W32. If there is no such statements which define INTEL_W32, then the block of code with in the directive will not be sompiled and processed.

    in reply to: please look at me ! #3217
    msaqib
    Participant

    Well this code wors fine. I have tried the following code using Turbo C++. The is as

    This code produces the beep sound. I haev checked this code on windows XP.

    in reply to: EXECryptor software protection #3185
    msaqib
    Participant

    Yeah I also faced the same problems with unregistered copy.

    in reply to: Smart pointers… #3113
    msaqib
    Participant

    In computer science, a smart pointer is an abstract data type that simulates a pointer while providing additional features, such as automatic garbage collection or bounds checking. These additional features are intended to reduce bugs caused by the use of pointers while retaining efficiency. Smart pointers typically keep track of the objects they point to for the purpose of memory management.
     
    For comlete reading goto: http://en.wikipedia.org/wiki/Smart_pointer

    in reply to: Communcation between 2 pcs using port #3138
    msaqib
    Participant

    No description for the code?
    Also i could not run the code as it says can not find the header file start.h.
    Can you please write the brief description so that I can use this program.
    Thanks
    Saqib

    in reply to: MFC:GetRecordCount() #3181
    msaqib
    Participant

    Hello,

    Sureyly GetRecordc**t is a great function. I am not an experienced C++ user but that problem is with many of the database programmers working in different languages. I got this problem while working on an ASP project.  So coming to your point. The GetRecordc**t is supported by both Access and SQL Server. I can’t speak for sure on other platforms, but I’ve been told it’s a pretty widely supported feature and I’d assume most vendors have some way of doing it.
    So why isn’t it working for you? Well it’s supported only if the recordset supports approximate positioning (adApproxPosition) or bookmarks (adBookmark).
    And here is another solution to that. If you only need the records count you can use SELECT COUNT(field_name) FROM table_name; and use where clause in it fr more refinement. With some thought and a little bit of trial and error, you’ll soon be counting anything you want in the database!

    Thanks
     

    in reply to: i got problem at system() function usage #3179
    msaqib
    Participant

    Wel if you are using win 98 or win 95 then it should work fine. If you are using windows 2000 or XP then the code above will give the error.
    Check to see if this function is returning -1, if yes then means this function have some errors while executing.

    in reply to: Inheritance in C# #3176
    msaqib
    Participant

    C#.NET supports single inheritance of classes. One class can be derived from a single class.

    Here MyFirstClass inherits MyFirstClass and its properties and methods.
    C#.NET does not support private and public inheritance just lik C++.
    C# supports abstract classes and abstract functions like in java. You can not make the instance of an abstract class.

    in reply to: Problem here #3165
    msaqib
    Participant

    Hello, wel if u can post the code in which u r facing difficulties.
    As far as I understand below is the solution for ur problem.

    To me this is the shortest solution to the problem above.

Viewing 15 posts - 16 through 30 (of 41 total)