Showing results 1 to 5 of 5
Search took 0.00 seconds.
Posts Made By: prathys
Forum: C Oct 31st, 2004
Replies: 49
Views: 14,191
Posted By prathys
Re: deleting duplicates in array

try out this code

#include<stdio.h>
#include<conio.h>
int main(void)
{
int a[5],i,j;
clrscr();
int len=5;
printf("ENTER ARRAY ELEMENTS:");
Forum: C Oct 22nd, 2004
Replies: 6
Views: 3,307
Posted By prathys
Re: array help

i got ur code.i saw some mistakes in ur code.
First of all u r going to get the result in float.So u have to properly typecast where ever needed.

i have made some modifications in ur code.Now try...
Forum: C++ Oct 22nd, 2004
Replies: 2
Views: 2,566
Posted By prathys
Re: turning and int into seperate digits

hi,
I got ur question.
If u wanna do like that u have to take modulus for the two digit number.
I will give u sample code



int n1, n2, n=0, sum=0;

cout<<"number: ";
Forum: C++ Oct 22nd, 2004
Replies: 11
Views: 1,499
Posted By prathys
Re: Tell Me Why It Happens!!!!!!!

i am running my code in msvc++ 6.0

ya.the thing i wondered was.. it happens even after giving ignore() and clear() commnds.So it doe not matters with the buffer.So tell me how the previous input...
Forum: C++ Oct 20th, 2004
Replies: 11
Views: 1,499
Posted By prathys
Help Tell Me Why It Happens!!!!!!!

hello guys,

I came across a strange thing when doing program in c++ in visualc++ environment.just run this code and after entering the array elements press up arrow and down arrow.

Here's the...
Showing results 1 to 5 of 5

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 6:23 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC