I guess zacs7 is correct.. try to use pre increment and pre decrement... rather than doing post increment and post decrement..
Type: Posts; User: Machoscorpion
I guess zacs7 is correct.. try to use pre increment and pre decrement... rather than doing post increment and post decrement..
I guess you can also do away with count variable. Instread you can use (i+1) instead.
If you want a one time fix i would suggest get a scripting language ( like perl ) to do that for you. In case you want to know about the searching then do it in C , is just revels the beauty of each...
yeah.. right.. what is the question now.. ??
or
Are you expecting us to wright the client pgm.. ?? :-)
Hey
Why don't you tell us about the logic that you have used in your pgm, rather than cut and past of code what you have got.. ?
It very much looks like an assignment problem and as the rule of...
Hey man,
The code that you have posted is a part of major code tree, so its difficult to say what exactly it is, just by looking at a small piece of code. The declarations are not std. you...
what you can do is have 3 nodes call them , prev , current, nex . prev node will be before Current and nex will be the node after current.
in your example, 2 will be held by prev, 3 will...
very good.. dude... As the saying goes.
"You feed a hungry man with a fish you feed him only that day..
You teach him how to fish ... you feed him everyday... " :-)
Why do you wanne do this.. ?
you could do away with this by running the loop (sizeof temp-1) times. and i don't see you appending '\0' to temp anyway. !
or am I missing something. ?
Hey can you also give the example of what you are expecting.. im' a bit confused.. about your requirement
Y don't you give it a shot.. and come back with the problems.. you face.. rather than expecting us to do the homework.. ??
If your intestion is to learn.. then.. you need to change your ways.....
I would go with Prelude's solution.
Read what ever the input is as char array and then decode it to numbers and special char.
the solution holds good if
1. you are looking at only single...
are you using linux or windows.. ?
If you are using something like Dev-c++. It does have a folder called "include" ( check where you have installed it) and you can place it there..
Gohan.. Getting frustrated.. won't get you anywhere.
The reason people come here .. "message board ".. 'cos they are lost.. or are looking for challenging problem....
There are lots of people...
Have you thought of declaring it as a glolbal variable ?
My knowlege is a bit rusty.. if you declare it as a global variable it should automatically get initialized to 0.
Please correct me if...
why don't you maintain a replica on the client side too ?
Once a new mail comes in. its transfered over to Client where it stays. even when the network is disconnected.
Just like your outlook.
hey ,
Y don't you make use of array to hold the numbers. ? you will be able to
hold the list of number the user has entered.
you can initialise small & large to say 0 and then compare...
I was under the impression that you can't post homework or assignment on the message board.... !!! :mad: :confused:
hi,
Rigth now i can think of 3 methods of doing it...
1. Write a function, where in you send the pointer of name and man and do a char by char copy till you get the "."
2. Using...
while ( (ch = getc(file)) != EOF )
{
if ( ch == ')' )
{
do {
ch = getc(file);
if ( ch == EOF )
{
...
yes, you can do it.. but its just complecating the matter..
Like salem said it..
take the number.. and do a modulo (%) 100.. so it will give you the reminder.. which is less than 100 i.e...
Hi,
I totally agree with nvoigt.. Thats its more a sort of personal about the styling of the code..
What you need to do is have a standard notation as to how you would identify a variable it...
hey,
If you are doing it in C its good. But there are many script languages which can be used and gonne be much more easier. Try using perl. Its gonne be very easy and its ment for that....
I totally agree with Salem,
Variable decleared cannot be without address.
You can have pointer and initalied to NULL.
like, int *p=NULL;
which would mean the p is a pointer to int but...
Correct me if i'm wrong ..
1. you give the file name.
2. the file is opened if it exists in the same folder.
or
it will create a new file.
in that case what you can do is
open the...