User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 423,155 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,460 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Showing results 1 to 40 of 57
Search took 0.01 seconds.
Posts Made By: harshchandra
Forum: C Sep 29th, 2005
Replies: 6
Views: 1,472
Posted By harshchandra
Help Basic Concept

# include<stdio.h>
void main()
{ int p;
p = (1,2,2,100,1);
printf("%d",p);
}



I dont know what will be the output . Can anyone please tell me what exactly second line implies ?? ...
Forum: C Aug 24th, 2005
Replies: 6
Views: 2,086
Posted By harshchandra
Re: printf & cout

Thanx Buddies I got ur points
Forum: C Aug 22nd, 2005
Replies: 6
Views: 2,086
Posted By harshchandra
printf & cout

if i write

if(printf("C is Wonderful")
{
}

It worked.
But if i write
if(cout<<"C is wonderful")
{
Forum: C Jun 24th, 2005
Replies: 2
Views: 1,351
Posted By harshchandra
Re: File writing Error

U can delete the line #include<graphics.h> and for the time being u can use float instead of long float
Forum: C Jun 23rd, 2005
Replies: 2
Views: 1,351
Posted By harshchandra
File writing Error

I was tring to write some data in a file from the singly linked list and also read the data from that and append it to singly linked list in the begening of the program.For this i had written two...
Forum: C Jun 8th, 2005
Replies: 1
Views: 1,364
Posted By harshchandra
Help A simple query

Is there any way to know the system date automatically using a c program ?
If yes please guide me through some codes !!
Forum: C Apr 7th, 2005
Replies: 21
Views: 2,690
Posted By harshchandra
Re: simple query about cout

Thanx I got that cool twist
Forum: C Apr 6th, 2005
Replies: 21
Views: 2,690
Posted By harshchandra
Re: simple query about cout

according to the c rules every statement must be terminated with a semicolon...i want to kmow that how can i use cout / printf statement to print any string without using semicolon at the end... ?????
Forum: C Apr 2nd, 2005
Replies: 21
Views: 2,690
Posted By harshchandra
simple query about cout

is there anyway to print out any string on stdout without using semicolon at the end... ?? plzz reply
Forum: C Apr 2nd, 2005
Replies: 9
Views: 1,194
Posted By harshchandra
Re: plzzzzzzzzzzzzz help me

one method can be that u match each and every character of the string user had given in the input.....
code can be like this ---
gets(string);
i = 0,count=0;
while(string[i] != '\0')
{ ...
Forum: C Feb 8th, 2005
Replies: 2
Views: 2,302
Posted By harshchandra
Re: Encryption of numbers....

So wats problem in it just swap the digits....that the encrypted one.....and then again swap it back to decrypt
Forum: C Feb 8th, 2005
Replies: 5
Views: 2,493
Posted By harshchandra
Re: needed recursion help

Hey i think i misread the question......U want Prime factors of a no or U want to display prime number
Forum: C Feb 8th, 2005
Replies: 5
Views: 2,493
Posted By harshchandra
Re: needed recursion help

A prime no is the one which either divides by itself or by 1 .....So u create a loop from 1 to that number and keep on counting how many times it exactly gets divides ...if it comes to 2 then u can...
Forum: C Feb 7th, 2005
Replies: 0
Views: 1,998
Posted By harshchandra
Help Help for graphics in C

I m trying to design a animation like code....somewhat like object is moving from one place to other.....i need just to clear out any specific portion of the screen...is there any command in C for...
Forum: C Feb 7th, 2005
Replies: 6
Views: 1,703
Posted By harshchandra
Re: laern c seriously

hey b4 goin for online tutorials first switch to ur books.....I think for begenners Yashwant karnetkar's book in c is best.....or u can also follow deitel & deitel - C how to program...however for...
Forum: C Feb 7th, 2005
Replies: 5
Views: 1,917
Posted By harshchandra
Re: I need help making a program

It seems i m back in +2 and studying mechanics....newtons law ...ha ha
Forum: Geeks' Lounge Feb 6th, 2005
Replies: 17
Views: 3,871
Posted By harshchandra
Re: GMail invites?

Hey i have only 6 invites.....how u guys r getting 50
Forum: Geeks' Lounge Jan 26th, 2005
Replies: 57
Views: 14,072
Posted By harshchandra
Re: You Guys Play Videogames?

I dont like playing games !!!
Forum: Website Reviews Jan 26th, 2005
Replies: 29
Views: 5,795
Posted By harshchandra
Re: My forum is not growing -- and I'm tired and drained literally

Well there are many domains that allows u to register and start a discussion board just free of cost. i personally own a forum be registering in forum.onecenter.com .......having creted a new foeum...
Forum: C++ Jan 21st, 2005
Replies: 5
Views: 1,817
Posted By harshchandra
Re: I need your suggestions in learning Language

There is a famous quote that practice makes a man perfect ....so go on practice as much as u can
Forum: Geeks' Lounge Jan 17th, 2005
Replies: 85
Views: 11,960
Posted By harshchandra
Re: Which Country?

I live in INDIA and i m quite comfortable here .......however 1 time i'd like to visit pakistan
Forum: C++ Jan 17th, 2005
Replies: 5
Views: 10,779
Posted By harshchandra
Re: Converting a char array into numbers

U can define a function called as " convert "
th prototype will look like this : int convert( char)
for(i=0;i<MAX;i++)
number = convert(a[i]);

int convert(char c)
{ return c - '0' ;
}
Forum: Software Developers' Lounge Jan 16th, 2005
Replies: 34
Views: 8,464
Posted By harshchandra
Solution Re: What program language should a beginner use?

hi :rolleyes: ......these days only most of the ppl will suggest u to use c or C++ as a beginners...me too will advice u the same but if u really wants to start from the scratch then i will suggest...
Forum: C Jan 14th, 2005
Replies: 5
Views: 3,123
Posted By harshchandra
Re: c language help

I think u have to specify the proper path..... u will find it options menu under directories section
Forum: Posting Games Jan 10th, 2005
Replies: 4,588
Views: 109,267
Posted By harshchandra
Re: counting lesson(for the slow among us)

OOh !! i suppose 139+1 = 140
Forum: C++ Jan 8th, 2005
Replies: 15
Views: 6,408
Posted By harshchandra
Re: why can't you use a switch statment with a string?

U cant use strings in switch statement ....the cases accept only single character or a integer ... if u still wants to use strinngs in cases of switch u have to tkae help of some string.h functions...
Forum: C++ Jan 8th, 2005
Replies: 7
Views: 1,872
Posted By harshchandra
Re: This may be a stupid question....

Aah !! u have to specify the size of the array
Forum: C++ Jan 8th, 2005
Replies: 34
Views: 9,174
Posted By harshchandra
Re: Range Of Long??

coz its a border length the compliler will go on other side of the range as per long integer belongs .....as per ur code it will print -1 as 4294967295 - 4294967296 will yield as this only
Forum: Geeks' Lounge Jan 7th, 2005
Replies: 5
Views: 6,386
Posted By harshchandra
Re: Pictures of Tsunami

OOOh !! What a disaster ....we all shud help them
Forum: Posting Games Jan 7th, 2005
Replies: 3,159
Views: 170,679
Posted By harshchandra
Re: 3 word story

to a lonely island
Forum: C Jan 7th, 2005
Replies: 8
Views: 7,736
Posted By harshchandra
Re: how to increase the size of an array?

There is no choice to increase the size of the array .....instead u can take use of calloc or malloc function to allocate the memory space dynamically .... or in these case the best would be to use...
Forum: C++ Jan 7th, 2005
Replies: 11
Views: 2,025
Posted By harshchandra
Re: Help

yeah , why not u can take help of switch statement .....and in different cases either u can write particular piece of code or u can call upon different functions to do the same task
Forum: C Jan 7th, 2005
Replies: 7
Views: 3,277
Posted By harshchandra
Re: help with POW command

All function defined in math.h takes argument as datatype double .....ur code is perfectly alrite ..... if u use pow('a',2) it will take the ASCII value of a which is 97 and it will display 97*97 =...
Forum: C++ Jan 6th, 2005
Replies: 3
Views: 5,149
Posted By harshchandra
Re: Keyboard input or "stuck in a loop"

if U r getting stuck to a any alpa input ...the best possible way is to take the input as a string .....and then convert it to numeric one......u can also use If Then Else to check whether the input...
Forum: C++ Jan 6th, 2005
Replies: 4
Views: 10,623
Posted By harshchandra
Re: Converting binary code to decimal value.

hey just take a look over this link http://www.daniweb.com/code/snippet93.html ...this however change changes the binary code to gray but in middle of the code u will find the binary equivalent code...
Forum: C++ Dec 27th, 2004
Replies: 6
Views: 4,957
Posted By harshchandra
Re: illegal else without matching if?

this can happen only when u had used if statement along with two else which leads to an error......however due to braces u will not get any syntax error but only the logical error is the possiblity
Forum: C Dec 27th, 2004
Replies: 2
Views: 2,034
Posted By harshchandra
Re: How to declare this function?

IF u r using void *<functionname><arguements>...then u have to typecast ur returning value as per ur requirements...
Forum: C++ Dec 27th, 2004
Replies: 8
Views: 2,345
Posted By harshchandra
Re: I have an exam, please give me a site!

Goto www.programmersheaven.com or cprogramming.com or www.codepedia.com
Forum: C++ Dec 27th, 2004
Replies: 10
Views: 2,535
Posted By harshchandra
Re: no error message but showing project not compiled

[B]hi there....ur program is working fine
Forum: C Nov 28th, 2004
Replies: 4
Views: 4,556
Posted By harshchandra
Re: help writing a grep program

i think u can easily convert "hello" to "HELLO" by using toupper() function
Showing results 1 to 40 of 57

 
All times are GMT -4. The time now is 7:33 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC