Messenger Port number
Hi,
We all know that one service named Messenger is available for communication within a network in Windows NT environment. For example sending messages to others.
For...
Type: Posts; User: sebastiraj
Messenger Port number
Hi,
We all know that one service named Messenger is available for communication within a network in Windows NT environment. For example sending messages to others.
For...
Hi,
We all know that one service named Messenger is available for communication within a network in Windows NT environment.
For example : net send <Computer Name> <Message>.
Is there any way...
Hi,
EOF indicates the end of file.
This is the mark that we will normally test when we read a file.
ie, we will start reading the file from start to eof.
By
A.Sebasti...
Hi,
If you use scanf for reading input then the default delimiter is space. So if you want give a string which includes space then it is better to use the function char *gets(char *s)
This will...
Thanks stoned_coder,
I forgot to make use of temp variable something like current node,
which is must otherwise bang.....
Thanks a lot
By
A.Sebasti..
Hi,
I find some problems in your code
1.Division by Zero (sum+=1/i) i will be Zero at first run in for loop.
2.Without proceeding further returning from for loop which ofcourse eliminates...
Hi,
Tell me what is your expectation and how is your file contents look like.
Better use fscanf()/fread()
for file reading instead of getc().
by
A.Sebasti..
Hi,
You are freeing the list at free(list);
but trying to access it at while that may be the problem.
So please change the order which may solve the problem.
do
{
free(list);
...
Hi,
Use strcasecmp()
#include <strings.h>
int strcasecmp(const char *s1, const char *s2);
available on most flavours of unix.
by
A.Sebasti..
Hi,
You have declared structure variable as array
(i_words[200])
In that case you have to access something like below
while(fgets (i_words[i].word, SIZE + 1, f) !=EOF)
{
cout <<...
Hi,
I think the problem is somewhere at your declaration part of structure varibles.
Try to declare structure variables as below.
struct List *cur, *tail;
the above nomenclature has to be...
Hi,
Here is a code to count the Number of Digits.
By
A.Sebasti..
#include<iostream.h>
int main()
{
int number,digitCnt=0;
Hi,
If it is unix/Solaris then use
gettimeofday() which you can find at #include <sys/time.h>.
I too had similar requirement and with this it got solved
Thanks
A.Sebasti
Hi,
I find it very difficult to go through your code.
Give comments and brief the exact problem.
Also tell the Objective of the program.
If possible try to give some sample run so that
everybody...
Hi,
Thanks for your solution.
I have tried that one also but i am not able to achive the task.
The situation is like this.
I am forking many processes.
The variable(actually the address of it)...
Hi,
Can anyone tell how should i use far pointers in unix.
If far pointer is not available,
Is there any other mechanism to acheive that.
Thanks
by
A.Sebasti
Hi,
Here is the code snippet.
Hope this will work fine.
by
A.Sebasti...
==============================================
#include<stdio.h>
void addition(float *,float *,float * );
Hi
The post increment and pre increment operators have no effect in a for loop.
for ex
for(x=0;x<10;x++)
and
for(x=0;x<10;++x)
have the same effect.
As regards ur question in structures and...
Thanks alex,
I didn't even noticed the flaw in my code.
Thanks a lot.
By
A.Sebasti.
Hi,
Why you are complicating things try this one.
By
A.Sebasti...
#include<stdio.h>
int main(int argc,char * argv[])
The idea that you have suggested is good one.
use it so that we can avoid the long if statement.
And one more thing you cann't tell other than vowels are
consonants because space,\ ,+,= and etc...
Hi,
This is the code.
Don't forget to null terminate the string.
Hoping you are happy.
by
A.Sebasti..
-------------------------------------------------------------------------------
#include...