DaniWeb Forum Index
>
Search Forums
RSS
Search Results
•
•
•
•
Showing results 1 to 24 of 24
Search took
0.01
seconds.
Search:
Posts Made By:
Aamit
; Forum:
C
and child forums
Save these search results for 24 hours
Forum:
C
May 16th, 2009
Replies:
30
simple display problem??
Views:
1,892
Posted By
Aamit
Re: simple display problem??
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
simple display problem??
Views:
1,892
Posted By
Aamit
Re: simple display problem??
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
simple display problem??
Views:
1,892
Posted By
Aamit
Re: simple display problem??
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
simple display problem??
Views:
1,892
Posted By
Aamit
Re: simple display problem??
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
simple display problem??
Views:
1,892
Posted By
Aamit
Re: simple display problem??
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
simple display problem??
Views:
1,892
Posted By
Aamit
Re: simple display problem??
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
simple display problem??
Views:
1,892
Posted By
Aamit
Re: simple display problem??
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
simple display problem??
Views:
1,892
Posted By
Aamit
Re: simple display problem??
#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
simple display problem??
Views:
1,892
Posted By
Aamit
Re: simple display problem??
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
simple display problem??
Views:
1,892
Posted By
Aamit
-1
Re: simple display problem??
Can You please give me sample code??
Forum:
C
May 16th, 2009
Replies:
30
simple display problem??
Views:
1,892
Posted By
Aamit
simple display problem??
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
Problem in Renaming of file???
Views:
1,877
Posted By
Aamit
Re: Problem in Renaming of file???
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
Problem in Renaming of file???
Views:
1,877
Posted By
Aamit
Re: Problem in Renaming of file???
#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
Problem in Renaming of file???
Views:
1,877
Posted By
Aamit
Re: Problem in Renaming of file???
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
Problem in Renaming of file???
Views:
1,877
Posted By
Aamit
Re: Problem in Renaming of file???
#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
Problem in Renaming of file???
Views:
1,877
Posted By
Aamit
Re: Problem in Renaming of file???
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
Problem in Renaming of file???
Views:
1,877
Posted By
Aamit
Re: Problem in Renaming of file???
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
Problem in Renaming of file???
Views:
1,877
Posted By
Aamit
Re: Problem in Renaming of file???
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
Problem in Renaming of file???
Views:
1,877
Posted By
Aamit
Re: Problem in Renaming of file???
#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
Problem in Renaming of file???
Views:
1,877
Posted By
Aamit
Problem in Renaming of file???
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
Read windows registry in c??
Views:
1,237
Posted By
Aamit
Re: Read windows registry in c??
Plz anybody tell me How to read the registry file....
Forum:
C
Apr 23rd, 2008
Replies:
3
Read windows registry in c??
Views:
1,237
Posted By
Aamit
Read windows registry in c??
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
About Outp function in conio.h for c or c++?
Views:
3,050
Posted By
Aamit
Re: About Outp function in conio.h for c or c++?
_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
About Outp function in conio.h for c or c++?
Views:
3,050
Posted By
Aamit
About Outp function in conio.h for c or c++?
#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
You need to
join our community
in order to build your list of favorite forums. You can visit the
forum index
for a listing of all forums.
Related Forum Features
DaniWeb News Stories
DaniWeb Code Snippets
DaniWeb Tutorials
DaniWeb Product Reviews
DaniWeb White Papers
Forum Search
Latest Posts
Today's Posts
All Forums
Unanswered Threads
All Forums
About Us
|
Contact Us
|
Advertise
|
DaniWeb
|
Acceptable Use Policy
|
©2003 - 2009 DaniWeb® LLC