Sorry ,i am too stupid to be able understand your code.i dont know what these two FOR loop doing in your main.Is some sorting is done as asked before?
For little i could understand was you should...
Type: Posts; User: cbastard
Sorry ,i am too stupid to be able understand your code.i dont know what these two FOR loop doing in your main.Is some sorting is done as asked before?
For little i could understand was you should...
http://davinci.newcs.uwindsor.ca/~angom/cs266/Lec26606.pdf
If address are 32 bit then they are 4 byte not 2.I think your basic concern is how will you store these 4 bytes in one byte char ! Well you should have declared a int pointer rather than char.
If...
I have an issue with unix sorting command.Problem is
A file contains many records.I need to get a list of all the unique records(unique is on the basis of one key).If the original file contains...
You may face some problem with the portability if there is difference in byte alignment of both the machines.
The pragma operator can be used to do the byte alignment.Check your compiler supports the pop and push arguments of pragma because these are not in ANSI standards.
variable i=1;
char tempname[6];
read base file till end
read 2kb from file
tempname=strcat(inttostring(i)+".txt");
write to new file fopen(tempname,"w");
i++;
end read
Input in main() or argv are strings.If you enter a number they are taken as strings so to convert them to numbers,he used atoi.
>>how do i assign character X to 10 (i.e) *(code+9) =10;(maybe) then update sum
well,i dont know what exactly you mean by this.but if you wanna assign X(ascii) to the least significant digit....
total = (hT * MINS_HR * SECS_MIN) + (mT * SECS_MIN) + (sT);
printf("HERE WE GO!\n");
while (total > 0){
printf("%d:%d:%d", h, m, s);
if (s == SECS_MIN) {
m = m +1;
s = 0;
}
if (m...
fgw_three is right.
char code[15];
fgets(code,15,stdin);
When you store like this.The most significant digit is stored at code[0].
for(i=9;i>=0; i--)
{
if((i==9) && (toupper(*(code + i))...
Do as Dave said.because you lack in basics.
A C programme starts from main().You have'nt called any function in it.Your functions will not execute.
Am pretty sure your next post will be
#include...
if char *v = "blablabla";
this one is undefined behaviour.
The C99 Draft (N869, 18 January, 1999)
J.2 Undefined behavior
#1
The behavior is undefined in the following circumstances: ...
An...
thanks for the reply.ISA server is already installed.Do i need to do some programming of ISA server.Can you throw some light on what i need to program and how(means some related topics to study)....
Is there any other method like:-
Server can logoff the PC on its LAN.And change the password of PC and new user will be given this password and after their session.the process continues.
Hi Everybody I need some help!!!
I have a LAN all PC's using WIN-XP and default proxy.I want to control the internet access of the PC's.
like:- I want that server will allot 1/2 hr to each PC on...
If You dont wanna do it by moving pointers.
then sort the linklist just like you do for arrays.
just go through the list and swap adjacent member values like you do for bubble sort
Now you will...
NO, its not.
Just code what you do on paper.
input in decimal is x
while x is greater than 0
a is x%2
store a in char array
x is x/2
increment array index
end loop
***if your convert mean...
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main()
{
float i,a;
srand( time( 0 ) );
int main(void) {
int ch, c
while(ch != 4)
ch contains the garbage value.It may contain 4.
I think it will help others if you show the code.
>>So 3 lines is short and sweet, and 4 lines is ridiculously long?
>>Well, aside from being trivial for even the greenest C programmer, I just posted an interative solution.
I was not talking abt...
firstcol[i].next=NULL;
temp=firstcol[i].next;
while(temp->next!=NULL)
temp->next=(struct node*)malloc(sizeof(struct node));
Now can you see some thing.
some others.
a=(int...
Have you tried your homework yet? :p
No.
Try it you will find usable results