Search Results

Showing results 1 to 24 of 24
Search took 0.01 seconds.
Search: Posts Made By: Aamit ; Forum: C and child forums
Forum: C May 16th, 2009
Replies: 30
Views: 1,892
Posted By Aamit
For int arr[] = { 10, 20, 30, 40 } ;
This out put up to length 4 is correct
10
20
30
40

10 + 20
10 + 30
10 + 40
Forum: C May 16th, 2009
Replies: 30
Views: 1,892
Posted By Aamit
hi,all
i am modified my code

#include<stdio.h>
#include<conio.h>
int main()
{
printf("hello");printf("\n");
int arr[] = { 10, 20, 30, 40 } ;
const int N = sizeof(arr) / sizeof( arr[0] ) ;
Forum: C May 16th, 2009
Replies: 30
Views: 1,892
Posted By Aamit
Hi,
i modified my code as you suggested to me.

#include<stdio.h>
#include<conio.h>
int main()
{
printf("hello");printf("\n");
int arr[] = {10,20,30,40,50,60,70,80,90,100};
int...
Forum: C May 16th, 2009
Replies: 30
Views: 1,892
Posted By Aamit
hi,
i am interested in looping structure..

#include<stdio.h>
#include<conio.h>
main()
{
printf("hello");
int arr[] = {10,20,30,40};
//when i was use these two array
Forum: C May 16th, 2009
Replies: 30
Views: 1,892
Posted By Aamit
I think you are talking about your
this post
That's already a lot better, you're making progress
To find the length of the array you can do something like this:
const int...
Forum: C May 16th, 2009
Replies: 30
Views: 1,892
Posted By Aamit
but i was asking when my array
int arr[] = {10,20,30,40,50,60,70,80,90,100};
or

int arr[] = {10,20,30,40,50,60,70,80,90,100,10,20,30,40,50,60,70,80,90,100};

For this how to write the code so...
Forum: C May 16th, 2009
Replies: 30
Views: 1,892
Posted By Aamit
I am using dev-cpp++ 4.9.9.2

write now i get output
hello
10
10 + 20
10 + 30
10 + 40
20
20 + 30
Forum: C May 16th, 2009
Replies: 30
Views: 1,892
Posted By Aamit
#include<stdio.h>
#include<conio.h>
main()
{
printf("hello");
int arr[] = {10,20,30,40};
int count=sizeof(arr)/sizeof(int);
int i,j;
for (i=0;i<count;i++)
{
Forum: C May 16th, 2009
Replies: 30
Views: 1,892
Posted By Aamit
int array[] = {10,20,30,40};
find length of array and store in count=4


for (i=0;i<=count;i++)
{
printf("%d",arr[i]);
}

how to move on next step
Forum: C May 16th, 2009
Replies: 30
Views: 1,892
Posted By Aamit
Can You please give me sample code??
Forum: C May 16th, 2009
Replies: 30
Views: 1,892
Posted By Aamit
hi,
In my array
arr={10,20,30,40}

i want to display output like
10
20
30
40
10+20
Forum: C May 6th, 2008
Replies: 18
Views: 1,877
Posted By Aamit
I got in fname --->C:\\192.168.1.55
but facing problem that how to this string giving in " " means
"C:\\192.168.1.55"
Forum: C May 6th, 2008
Replies: 18
Views: 1,877
Posted By Aamit
#include <stdio.h>
#include<string.h>
#include<conio.h>
using namespace std;

int main ()
{
char firstipadd[20], fname[30] = "C:\\" ;
int result;
FILE *pFile;;
Forum: C May 5th, 2008
Replies: 18
Views: 1,877
Posted By Aamit
Here I m got ip address from xyz.txt
rewind it and successfully close it and transfer to function ... but when rename it .... it gives invalid Argument error ....
can string not correctly convert...
Forum: C May 5th, 2008
Replies: 18
Views: 1,877
Posted By Aamit
#include<conio.h>
#include <stdio.h>
#include "winsock2.h"
#include<iostream>
#include<fstream>

using namespace std;
void Myfun(string);
void Myfun(string a)
{
Forum: C May 5th, 2008
Replies: 18
Views: 1,877
Posted By Aamit
Windows IP Configuration


Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :

IP Address. . . . . . . . . . . . : 192.168.1.55

Subnet Mask . . . . . . . . . . . :...
Forum: C May 3rd, 2008
Replies: 18
Views: 1,877
Posted By Aamit
It's not working.....
By printing ipadd it gives 192.168.1.55
can we convert char array i mean like this
char abc[]="192.168.1.55";
Forum: C May 3rd, 2008
Replies: 18
Views: 1,877
Posted By Aamit
I m using Windows Xp.
There is a IP address in xyz file so i want to rename xyz file with that ip address....
Forum: C May 3rd, 2008
Replies: 18
Views: 1,877
Posted By Aamit
#include <stdio.h>
#include<conio.h>
int main ()
{
int result;
char ipadd[20];
FILE *pFile;;
pFile = fopen ("xyz.txt" , "r");
fseek(pFile,172,SEEK_SET);
fgets (ipadd , 16 , pFile);
Forum: C May 3rd, 2008
Replies: 18
Views: 1,877
Posted By Aamit
I want to rename file with name of ip address like (192.168.1.55.txt)
In xyz.txt file have ip address.
I m finding this ip address but rename giving problem???

#include <stdio.h>...
Forum: C Apr 23rd, 2008
Replies: 3
Views: 1,237
Posted By Aamit
Plz anybody tell me How to read the registry file....
Forum: C Apr 23rd, 2008
Replies: 3
Views: 1,237
Posted By Aamit
I want to read the registry of usb

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR

in this

Name Type Data
start REG_DWORD 0x00000003(3)

when double click it gives value in...
Forum: C Apr 16th, 2008
Replies: 7
Views: 3,050
Posted By Aamit
_CRTIMP int __cdecl_outp(unsigned portid, int value);

i m added this function in conio.h and also inpout32.dll in system32 but it not working...
Forum: C Apr 15th, 2008
Replies: 7
Views: 3,050
Posted By Aamit
#include <stdio.h>
#include <conio.h>
int main(void)
{
unsigned port = 0;
int value;
value = outp(port, 'C');
printf("Value %c sent to port number %d\n", value, port);
return 0;
}
Showing results 1 to 24 of 24

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC