English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i want an program showing the comparison of c++
and one more thing i want to know how to inpute the graphics in Borland turbo c++ v4.5.

i am looking for a friend who could help me in my c++ problem.i wamt to chat with him .if any one want to help me then im me ar add me as friend my id is abhishek_vermaya@yahoo.co.in

2007-12-22 01:51:42 · 5 answers · asked by Anonymous in Computers & Internet Programming & Design

5 answers

Strings can be compared by using library function strcmp, for this header file "string.h" must be included. Function receive two string argument and returns 0 when string1 is same as string2, returns +ve no when string1 is greater than string2 and returns -ve no when string1 is less than string2.

Syntex:- int strcmp(char*,char*)
e.g.
#include
#include
void main()
{
char *st1="Ajay Kumar", *st2="Amit Kumar";

cout< }

function will display -3 because second string is greater (according to alphabet) i.e. j - m = -3

2007-12-22 02:50:17 · answer #1 · answered by HareRam 2 · 0 0

UltraCompare: http://www.ultraedit.com/index.php?name=Content&pa=showpage&pid=34

2007-12-22 01:56:17 · answer #2 · answered by mermeliz 7 · 0 0

i dont know da seriously....how can i solve ur problem??im helpless

2007-12-22 02:08:54 · answer #3 · answered by Anonymous · 0 0

use the function strcmp()

2007-12-22 13:50:27 · answer #4 · answered by cinash 2 · 0 0

PLEASE REFER THE WEBSITE www.cplusplus.com .

2007-12-22 20:39:41 · answer #5 · answered by Anonymous · 0 0

fedest.com, questions and answers