Forum Replies Created
- AuthorPosts
- msaqibParticipant
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=846I 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!
msaqibParticipantC 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.msaqibParticipantmention 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
msaqibParticipantHello
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.msaqibParticipantHello
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 like1234567891011void circle()<br />{<br />double r=0.0;<br />double m=2.0;<br />double area=1;<br />printf("enter area");<br />scanf("%lf",&r);<br />area =PI* pow(r,m);<br />printf("%lf",area);<br />getch();<br />}September 19, 2007 at 10:10 am in reply to: How to Print Special characters( eg smiley face )? #3254msaqibParticipantHello
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.123456789101112#include <br />#include <br />#include "process.h"<br />void main (){<br />int i=0;<br />for(i=0;i<100;i++){//loop through first 100 ASCII characters<br />printf("%c",i);//Print ASCII characters one by one<br />printf("n");<br />}<br />getch();<br />}<br />msaqibParticipantAccording 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.msaqibParticipantWell this code wors fine. I have tried the following code using Turbo C++. The is as
12345678910#include<stdlib.h><br />#include<process.h><br />#include<stdio.h><br />#include<conio.h><br /><br />void main(void){<br />clrscr();<br />cout<<"a";<br />getch();<br />}This code produces the beep sound. I haev checked this code on windows XP.
msaqibParticipantYeah I also faced the same problems with unregistered copy.
msaqibParticipantIn 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_pointermsaqibParticipantNo 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
SaqibmsaqibParticipantHello,
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
msaqibParticipantWel 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.msaqibParticipantC#.NET supports single inheritance of classes. One class can be derived from a single class.
123class MyFirstClass : MySecondClass {<br />//functions and data members here<br />}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.123abstract class Animal {<br />public abstract void Eat(string food);<br />}msaqibParticipantHello, 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.1234567while((key=getch())!=ESC)<br />{<br />switch(getch()){<br />//case 1 to 10 do nothing<br />//case write the characters on the screen<br />}<br />}To me this is the shortest solution to the problem above.
- AuthorPosts