How about simply underlining the word 'Quote:' and 'Quoted by: <username>" ?
So what do you think we are working with right now.
It was just an suggestion and of course we know the diference between "quote" and "quoted by". ;)
How about simply underlining the word 'Quote:' and 'Quoted by: <username>" ?
So what do you think we are working with right now.
It was just an suggestion and of course we know the diference between "quote" and "quoted by". ;)
One last and serious word from me, dont try to post code which you yourself havent written. IF you still have problems understanding the code then goto the original location from where you have picked this code or to the person who has given you this code.
It would really be much better for you to start from the beginning rather than copying someone elses program and trying to run it.
In the long run it definately wont help you.
I hope u understand friend.
This is no place to post a thing like this . Please read the forum rules before posting, and i please requst the MOD to either move this post or delete this.
Maybe friend you can try posting this at http://www.daniweb.com/techtalkforums/forum6.html
Maybe nesting the quotes in an outlined box with some sort of outlining would really make the nested quotes more easy to read. I completely agree with Mr. Dave.
Though it looks good its not much of a friendly user interface (software engineering principles anyone ?)
But this is just me.
Err.. you are getting it all wrong.
What i wanted to say was that even though i completely agree with the character shaping thing and all that but even the Super Mods and Dani should have the same view point otherwise it would jsut spell trouble for both of us.
Thats what i intended to say, i definately agree but with other reputable people around....
Err.. of course he wouldn't but looking at the way this thread is shaping up from "Your favourite beverage" to "Wolfpack making friends with Indians" Dani or some SuperMod would definately ban us all including wolfie :)
Wow you sure do know a lot about Indian mantras at least enough to stump the non indian members.
But do you really know some good and useful ones which are used for praying the diety. Bring them on.
Going on Vacation in exactly 3 hours (8.30PM GMT 09th August)
Be back on the 21st August...
Say what you have to say, now.
Demons go to hell :)
quoted by Genzo Sanzo from Sayuki Reloaded (an anime)
Looks like I ~s.o.s~ will have to send sos sos sos (cry for help) to all my contacts of Daniweb. :)
Err.. eagles have wings.. remember *mere dost*.
No seriously i didnt intend anything like that trust me. (Hope u trust me)
I just wanted to know how much time it has taken people with loads of reputation like Dani to kickstart their own. And i basically got this idea from the thread "reputation" so thought it would really be fun when all the gurus came and told their tales but u have i think dampened the spirit *sad sad sad*. Now no one would post in this thread.
YOu might as well close it.
Anyways thanks for letting me know i have made it there.
Hello just wondering how many posts it took to you people to reach a milestone of "On a distinguised road" and the one with the lowest posts wins.
SO what say you ??? (just a fun activity)
Looks like you guys have really enraged teh WOLF with your recent commments so its better i take cover *ducks and is out of sight*
Err.. isnt this what normally happens?
Err... in a less hostile way.
To gunner64
Please try to understand that all the people out here help others voluntarily, there is as such no bonding on us. We take out our time to see that the newcomers dont face the difficulties which many of us have faced.
So by just showing a little bit of patience, effort in writing code and respect to the senior members you can get from this community much more than you expected.
Hope you understand that and by the way welcome to DaniWeb.
Err.. hello though i am not new to this forum, i thought since i had originally not introduced myself thought this was the time for doing it:lol:
BTW I am a student from India, who likes getting involved in technical discussions, helping other people out etc. etc. Hope I do keep up the good thing with your support and love.
Regards,
~s.o.s~
Phew thats is a relief.
I had taken cover heeding goldeagles tip but have just come out hearing this. :)
I second the opinion. Maybe increasing the font a bit would really be *nice* but still if not many people experience this then its better left as it is.
All in all, increasing the font size is definately an improvement to this forum.
Ah ok you must be one of those that walks among us.
Now i am really starting to take Wolfpacks hint seriously. ;)
Ooh thats 400 he he
Yeah for some its a stimulant and for some its a means of relaxation.
BTW wat you mean by your above statement.
flag is a preordered keyword that isnt avaible to be used as a variable or a function name or a structure name blah blah.... simply change the keyword and it'll work
Hello friend, i really fail to understand on what topic are u talking about. Are u giving out answers to ppl just randomly? flag
is not a reserverd keyword in C++ or C. THe original poster wanted to understand why the variable flag was used.
Please dont misguide the people reding this thread by giving out contradictory answers.
Bye.
Software development nowadays is all about correct and efficient practices which makes the life of programmer easier for him to code as well as to maintain the code. Todays software development is more about effiecient Object Oriented Practices and following the UML standards to deliver quality and bug free software.
C was originally intended for developing Operating systems and its main asset was its speed considering the amout of memory old computers had. Today seeing the fast drop in dollar / MB of memory its more expected from a language to make the coding and maintenance easier for the programmer ie the language that has solid OO features.
All the above talk was to clear the point that it all depends on the subject matter under consideration. You would next talk about implementing or writing Assembly front end in Machine code and go out to tell that Assembly is the subset of Machine Code. This though is true it also implies that Machine code is the superset of each and every language present today.
I dont think the original poster wanted a C v/s C++ battle for pointing out to him that C++ front end can be easily implemented in C but rather which language is better for developing applications and which language the software community nowadays goes with.
But seeing from ur profile that u are an Assembly programmer, ur love for C is well understood but the point here is that it all depends …
Helping other ppl out just for gaining some reputation. Bad... really bad boys a all are. LOL
BTW what goes around comes around so dont worry just keep helping others and u will be green all over. (pun intended.. well atlest i thought it was a pun)
It would really be better if u start from the basics rather than jumping to advanced concepts of which u have no idea. Its better to learn on your own rather than getting a code from someone and running it.
I hope u understand that just getting the solution to ur prob is not important but rather understanding the concepts behind them is more imp.
Just learn the basics and u wouldnt need any help regarding ur problem.
Yeah right, thats an old Japanese saying and is probably right considering the way things currently are shaping up in this world. Kids with no respect for their nation, no respect for elders and so on.
But yes maybe u are right, its the spirit and enthusiasm of some young ppl that makes the world go round.
PS: Mr. Dragon, u really are observant.
Not much dedicated 64 bit applications out there for benchmarking purposes (Farcry..) but still its a good idea.
Coffee for me.
One cup of hot steaming coffee and i am in seventh heaven.
Provides me with all the relaxation i need.
COffee anyone... ;)
Thanks a lot for understanding, i wouldn't want to upset a senior member with my postings. ;)
Acting weird can mean a lot of things and many different factors can cause the computer to run slow.
Some factors are :
1) too many softwares installed in the PC
2) Low disk space on the Drive where the OS is present.
3) VIruses and trojans
Try the basic tools like Disk defragmentation and Scandisk and see the results.
Try playing the game at different resolutions and different color depths. IT maybe that ur PC is not able to churn out the power required for some high tech current games.
As a safekeeping also download and install the latest game patches coz u never know.
Still if u would have posted the game it would have helped.
Bye.
Maybe u have messed up or somehow the system32 folder contents have been tampered with. A kernel error means teh core of ur OS has got corrupted and there doesnt seem to be a easy solution to this thing.
A reinstallation would definately be the choice if u dont want to goto a computer repair shop.
Yes but the newer generation is always much more enhanced, better than the older generation, and has all the features of the older generation and much more.
SO it depends on the way u look at things, if inheritance wise then as we inherit from our parents we are the subset but if u go feature and functionality wise then its C++ which holds the fort.
But opinions can vary.
Didnt mean to contradict u, jsut expressing the logical.
Bye.
It really depends on the point of view or the angle from which u are judging the problem or the argument.
C++ can be used to write procedure oriented as well as Object oriented in an easy manner so from this point of view C is subset of C++.
I know there is also object oriented C but thats not very widely used as ppl very much prefer to migrate to C++ for OOP rather than useing Objective C.
Does C support Operator Overloading, Funciton overloading, Function overriding, Virtual funcitions, etc. etc.
I hope u get the drift.
Avoid using non standard headers and non standard functions since it is regarded as bad programming practice.
Avoid including #include <conio.h>
since it is non standard header and destroys the portability of the program.
Same goes with functions clrscr ()
and getch ()
.
Instead of getch ()
use getchar ()
which is a std function.
Your program basically uses Bubble Sort to sort the array entries in descending order. Bubble sort uses 2 for loops to sort the array provided to it. The while loop in main
serves as a replacement to the second for
loop of Bubble sort. And it is the variable flag
which decides till wat time the sorting should continue. When the array is completely sorted the control in the funtion never satisfies the condition if(block[j] < block[j+1])
. Hence the flag remains 1 and the sorting is complete.
In short
if (flag == -1) => array is not sorted and keep sorting
if (flag == 1) => array is sorted and now stop.HOpe it helped.
Bye.
If u want the fastest algorithm performance wise, quicksort is one of them. Even though its a recursive algorithm but still does the trick nonetheless considering the ulimited size of stack.
If u want the completer source code maybe this would help
http://linux.wku.edu/~lamonml/algor/sort/quick.html
Welcome again to DaniWeb.
Just keep going on, never give up and we would be always there by ur side.
regards,
~s.o.s~
BTW how do u propose to parse the words in the prog.
For eg.
int main()
how will u know main has ended and now u have to look for ( and then ). I hope u are getting wat i am trying to say.
Just curious. wanted to know which technique u using.
Bye.
Maybe this is the right answer:
p => pointer to pointer to pointer to int*p => pointer to pointer to int
**p => pointer to int
***p => an int
You just keep applying the basic fundamentals and use the defination of dereferencing an u will get the answer easily.
I hope i am right and if not please someone rectify me.
Hello to everyone.
Here are some more links regarding network programming in C and Unix.
Beej's Guide to Network Programming Using Internet Sockets
Unix And C/C++ Runtime Memory Management For Programmers
Multi-Threaded Programming With POSIX Threads
Building And Using Static And Shared "C" Libraries
Introduction To Unix Signals Programming
Network programming under Unix systems using C
Next time i would be posting some OpenGL and gaming related tutorials for all the gaming enthusiasts.
Hope it helped.
Bye.
IF after Wolfpacks answer u still need to know how to find the position of any char in a char* array of chars then maybe this is wat u are looking for:
size_t strcspn( const char *str1, const char *str2 );
The function strcspn() returns the index of the first character in str1 that matches any of the characters in str2.
SO maybe
char* delimiter = "3";
char* myString = "1234567689";
int position = strcspn (myString, delimiter);
Hope it helped, bye.
Sloppy... Just because it can be done doesn't mean it should...
After all,gets()
still exists, doesn't it? ;)
Mr. WaltP please see the context in which the comment was made by Mr. Ancient Dragon. He was actually trying to tell the new programmer ie the OP to first post his own effort. It was not sloppy progg.
int main (void)
{
// your code goes here could mean a lot of things
// it can also include the return 0 since its part of the code ;)
}
If u go out to tell the beginner programmer everything in a single post without even knowing his skilll set then even this would not suffice
int main (void)
{
// write some code to take inuput from user
// please dont use scanf () for taking the input since it leaves the
// remaining data in the input stream
// avoid usign gets () after scanf () since it may read in the data left
// from the prev scanf attempt.
// dont ever try to clear the input stream using fflush (stdin) since its
// behaviour is undefined
// and dont forget that main returns an int as a signal to the operting
// system about its execution status.
// and many more blah blah blah
}
I hope now u understand teh meaning of Mr.Ancient Dragon's post.
Take care,
Bye.
YOu have to first post ur effort my friend before expecting any kind of help from the forum members.
If you are using it for educational purposes then there are two options mentioned above by Mr. iamthwee.
And if using for some real application and u think that doing the swap without temporary variable would reduce the space required or the time then do think again. Its not that way. Current compilers are so optimised that using a temp varible doesnt even a fractiion affect the program.
But still if u are so peculiar about performance then usign Assembly Language is the way to go.
So u have two options:
1) use normal temp variable
2) use assembly language procedures
since using XOR and += have their own shortcomings.
Thanks a lot, i thought i would never get ans to this thing.
Anyways thanks for the book name and the big list both of you.
Regards,
~s.o.s~
LOL ok i agree.
I still think that you have got some things right there and i also have got some things right there. And that UML eg. was meant to show the difference between knowledge and the use of a particular tool.
And err...
UML is just a method for designing, the field is much narrower you don't 'create' with it. UML is UML is UML you can't create a 'poetic' UML diagram like you can with language.
Come on man.... UML and narrow. THey are more like antonyms. The history of software engg research has been more dedicated to software design and smart practices rather than on a particular language. If languages have power then UML is wat helps us in harness that power and make it available to the massses.
But still ALL PEACE.
It would be really nice if u could post the entire code or atleast the section of the code which u have been getting problems in. Pasting out snippets from here and there would not fetch much help.
BTW
first_ptr=strtok(first_ptr + strlen(first_ptr) + 1, "|,;-. ");
second_ptr=strtok(second_ptr + strlen(second_ptr) + 1, "|,;-. ");
Maybe wat u are trying to do is to make the ptr to point to the second token. Well if u are trying to do that then, wat u have done is not correct.
Try this
char str[] = "now # is the time for all # good men to come to the # aid of their country";
char delims[] = "#";
char *result = [B]NULL[/B];
result = strtok( str, delims );
while( result != [B]NULL[/B] ) {
printf( "result is \"%s\"\n", result );
result = strtok( [B]NULL[/B], delims );
}
Output is
result is "now "
result is " is the time for all "
result is " good men to come to the "
result is " aid of their country"
Hope it helped,
bye.
Simply put it this way, when ur applications demands a particular Fibonacci number (for eg. the 10th fibonacci number) then GOLDEN RATIO is the way to do it and if u require the whole series of numbers then the incremental method is the way.
Phew that is a relief, i was about to get convinced that there is something wrong with my concepts.
Anyways thanks for saying that in the end i was right.