Pages
Sunday, April 6, 2014
USB SYSTEM LOCK
Saturday, April 5, 2014
Number pyramid
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
1 2 3 4 5 6
Ans.
/*c program to print the above number pyramid*/
#include<stdio.h>
#include<conio.h>
int main()
{
int r,c,sp,num;
printf("Enter loop repeat number(rows): ");
scanf("%d", &num);
for(r=1; r<=num; r++)
{
for(sp=num; sp>=r; sp--)
printf(" ");
for(c=1; c<=r; c++)
printf(" %d", c);
printf("
");
}
getch();
return 0;
}
/************Output************/
![]() |
| Screen shot for number pyramid C program |
Friday, April 4, 2014
Introduction To ‘C’ Programming Language
C is a general-purpose, structured programming language. Structured Languages have a characteristic program structure and associated set of static scope rules (static scope rules are discussed in detail later). The structured programming concepts originated in the language ALGOL 60, one of the most important early languages. They have been adopted in other languages because of their elegance and effect on implementation efficiency. In a structured or to be more specific Block-structured language, every program or subprogram is organised as a set of nested blocks. The chief characteristic of a block is that it introduces a new local referencing environment. A block begins with a set of declarations for names (variable declarations, type definitions, constant definitions, etc.), followed by a set of statements in which those names may be referenced. In C, there is a block structure, but it exists only within a single subprogram.
C was originally developed in the 1970’s by Dennis Ritchie at Bell Telephone Laboratories, Inc. (now AT&T Bell Laboratories). In 1978, Brian Kernighan and Ritchie published a comprehensive description of the language C. The Kernighan and Ritchie description is commonly referred to as “K&R C”. Following the publication of the K & R description, computer professionals, impressed with C’s many desirable features, began to promote the use of the language. Since 1980’s, the popularity of C has become widespread. Most commercial implementations of C differ somewhat from Kernighan and Ritchie’s original definition. This has created some incompatibilities among different implementations of the language, thereby diminishing the portability of the application program developed using C. Consequently, the American National Standards Institute (ANSI) proposed a standardised definition of the C language (ANSI committee X3J11). Most commercial C compilers and interpreters are expected to adopt the ANSI standard.
The statements in C resemble other high-level programming languages such as Pascal and FORTRAN-77. C also supports certain additional features, that allow it to be used at a lower level, thus bridging the gap between machine language and the more conventional high-level languages. This flexibility allows C to be used for systems programming (e.g., for writing operating systems) as well as for applications programming (e.g., for scientific computation, mathematical equations, or for business data processing).
It is possible to develop concise source programs in C mainly due to the large number of operators available in the language. Although the language has a relatively small instruction set, it is possible to include extensive library functions that enhance the basic instructions. Furthermore, the language encourages users to write additional library functions of their own. Thus, the features and capabilities of the language can easily be extended by the user.
C compilers are available for all types of computers ranging from PCs, workstations to super computers. The compilers are usually highly optimised, and generate object programs that are small and efficient. In addition, C programs are highly portable, as compared to the programs written in other high-level languages. The reason for this is that machine dependent features are often handled by library functions. Thus, every version of C is accompanied by its own set of library functions, which are written for the particular characteristics of the host computer. These library functions are relatively standardised with a common access protocol for these functions. Therefore, most C programs can be processed on different machines with little or no alteration.
strcpy
The base address of the source and target strings should be supplied to this function.
Note: If target_string is not empty and it is uses in strcpy() function, then its overlap with source_string.
syntax:
strcpy("target_string","source_string");
example:
strcpy(target_string,source_string);
illustrate uses strcpy() in C program:
/c program for illustrate of strcpy() function*/
#include<stdio.h>
int main()
{
char source[40],target[40];
printf("Enter any string : ");
gets(source);
strcpy(target,source);
printf("Target %s=Source %s",target,source);
getch();
return 0;
}
The output of above program would be:
![]() |
| Figure: Screen shot of strcpy() uses in C program |
Related Article:
Wednesday, April 2, 2014
Birds Sliding Puzzle
Tuesday, April 1, 2014
FIFA Manager 08
FIFA Manager 08 makes an excellent first impression. British gamers, in particular, will feel a warm glow when the theme song from the Grandstand TV show kicks off the welcome screen, and high production values are evident throughout the game. As with any management title, you start by choosing the domestic or international club for which you want to work. If you choose to raise a team from the ranks of the lower divisions, youll have fewer resources and lower expectations, but if you pick a world-class club, youll have some very serious board expectations. However, FIFA Manager 08 helps you juggle the demands of whatever club you choose by allowing you to palm off certain aspects of the running to your assistants. If your interest is in finding and cultivating talent rather than wading through spreadsheets of numbers, then your finance team is there to take care of it. Alongside this, FIFA Manager 08 places an emphasis on creating your manager rather than being the manager. Youre asked how you want to look, how big you want your family to be, and what sort of hobbies you want to pursue. Learning a foreign language will help you secure a job in another country, while playing golf may enamour you to the board members of another team.
Thankfully though, the developers have concentrated their efforts this year on improving the core game. Theres now a greater emphasis on player scouting, training, and motivation to the point that the game feels completely refocussed on the players themselves. Aside from short-term considerations, such as swapping substitutes or allowing talent to flow from your youth team, you also need to cultivate star players by giving them pep talks--and not just during matches.
While FIFA Manager 08 does a great job of easing you in, the interface can get messy very quickly as you activate the more advanced options. While it can go spectacularly in-depth compared to last years relatively shallow offering, the resulting interface clutter needs to be addressed. There are some useful additions for all players, though, such as the widget system that provides you with access to everything from a notepad to an MP3 player in-game.
Training schedules can now be specified for each individual player and the overall team; thus, making small changes can have a dramatic result on performance. The transfer system now works in a much more realistic manner, with more in-depth negotiation between clubs and players, while the scouting element is a minigame in itself. Foreign player statistics are now hidden by default, and its only when you send your scout to the region that you can differentiate from one player to the next.
FIFA Manager 08s 3D match engine is something that sets it apart from other games in the genre. Traditionally, matches have often been re-created using a mixture of text-based commentary and a 2D engine to represent the players. This leaves more to the players imagination while the computer is spared more resources to compute likely scenarios. While FIFA Manager 08s match engine presents a watchable game of football, it doesnt make the job of management any easier. The game does allow you to play as one player on the pitch if you want to, but the lack of overall control means its more frustrating than helpful.
If youre a football fan, then youll really get something out of the official licences. They permeate the game, with a customised menu screen depending on the team you play, as well as mountains of up-to-date player photos and stats for the majority of major teams. The licensing even stretches to official newspaper reports from such publications as The Sun, something that really taps into the wider aspects of football. While the number of teams cant touch that of Football Manager, the game still covers the major world clubs. It also now includes more English and Spanish leagues than before.
Its clear that Bright Future has worked hard on updating and expanding its football management sim. While its not quite in the Premier League yet, theres plenty here for fans to enjoy. Its a tremendously deep game that also manages to be welcoming to the novice while the official licenses and overall polish will delight both types of player. Those playing at the advanced level are unlikely to feel hamstrung by limited options this time around, but the way that all the information is presented could definitely do with some work for next year. Most importantly, the game carves out its own niche in the football management market, and although this time it falls short of greatness, it shows plenty of promise for the future.
By , GameSpot UK
Monday, March 31, 2014
Perfect World How to play
Perfect World is currently in open beta state and only for few countries. The easiest way to try the game is to download the English patch and to play on the Chinese servers. Even so a lot of the game is still in Chinese.

