Forum: C Oct 31st, 2004 |
| Replies: 49 Views: 14,191 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 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 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 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 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... |