3,892 Posted Topics

Member Avatar for comp_sci11

> #include<alloc.h> > #include<stdio.h> > #include<string.h> > #include<conio.h> > #include<dos.h> > #include<ctype.h> > > typedef struct node > { > int dd,mm,yy; > int cus_ac_no[15]; > char cus_name[25],cus_add[45],cus_ph_no[17]; > double cus_bal; > float cus_intrst; > struct node *next; > }node; > node *L,*ptr; > > > void add() > { …

Member Avatar for Salem
0
310
Member Avatar for s s paul

It would be better if u post the entire code without just propagating the updates like an AJAX enabled page :)

Member Avatar for Dave Sinkula
0
155
Member Avatar for grunge man

[quote=grunge man]ok i was just fiddiling around macking this program to see what would happen and it worked fine but for some reason now it doesnt do what the program tells it to do this is my code [code] int main() { int taco,pizza,chicken,hamburger,hotdog,; cout<<"from 1 to 3 enter what …

Member Avatar for ~s.o.s~
0
106
Member Avatar for ammu117

Turbo C++ is an age old compiler and not used by anyone nowadays let alone be used for professional development. Also it supports many non standard functions which might just start you funny ideas about using commands like [inlinecode] getch () [/inlinecode] and [inlinecode] gotoxy (int x, int y) [/inlinecode] …

Member Avatar for Grunt
0
139
Member Avatar for joshilay

Yes what Mr. Salem has said is perfect and if you want a more detailed account then you can try here. [URL="http://msdn2.microsoft.com/en-us/library/bkbs2cds.aspx"]http://msdn2.microsoft.com/en-us/library/bkbs2cds.aspx[/URL] Hope it helped, bye.

Member Avatar for himanjim
0
174
Member Avatar for himanjim

[quote=himanjim]the function void fun() { char c; if(c=getchar())!='\n') fun(); printf("%c",c); } Gives the output cba .Can't say why?[/quote] This must have happened when you must have given the input "abc" isnt it ? The above function is basically an example of a recursive function or basically a function which calls …

Member Avatar for ~s.o.s~
0
165
Member Avatar for ammu117

Maybe you should look here. [URL="http://www.daniweb.com/techtalkforums/thread50370.html"]http://www.daniweb.com/techtalkforums/thread50370.html[/URL]

Member Avatar for ammu117
0
95
Member Avatar for jenedge05

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 [url]http://www.daniweb.com/techtalkforums/forum6.html[/url]

Member Avatar for Cain
0
294
Member Avatar for cezarjont

Structures are just like normal variables hence can be passed to the functions in the same way normal variables. The difference between structures and normal variables is that structures are User defined data types. Consider for example the function which accepts a pointer to a [B]variable [/B]and manipulates it. [code] …

Member Avatar for cezarjont
0
928
Member Avatar for himanjim

[quote=himanjim]:?:The statement *s1++=*s2++ actually leads to the assignment of value at s2 to s1 followed by incrementation of s2 then the incrementation of s1.[/quote] The above statements is illegal since to assign the value to the variable it must be an L value and any expression is not an L …

Member Avatar for ~s.o.s~
0
244
Member Avatar for myques

[quote=Rashakil Fol]Why, because you lied on your résumé about your abilities?[/quote] It doesnt matter even if he gets the technical questions coz in the interview they are bound to ask him to write a proram and then it would be all over. @myques You can try to google C++, Java, …

Member Avatar for ~s.o.s~
-1
137
Member Avatar for ze_viru$

[quote=WaltP] This makes the program a little more modular.[/quote] Well forgive me for butting in, but here modularity is not an issue since he is not building a Library module but a small program. As far as writing normal programs are concerned the coder should always be concerned with the …

Member Avatar for Grunt
0
402
Member Avatar for sgriffiths

[quote=sgriffiths]I didnt ask how to refer to a specific member I asked how do i pass to a proceudre[/quote] Please dont be rude when asking help. Such attitude wont fetch you any help. Mr. Lerner here is a senior member so restate your problem statement rather than asking just someone …

Member Avatar for ~s.o.s~
0
691
Member Avatar for Wreef

Well if you want to run the program in real time then you need to reconsider your idea since in the end you would end up seeing the final value in the text box (due to the fast execution of your program) or until you run out of buffer. Maybe …

Member Avatar for Wreef
0
734
Member Avatar for Dani

Ho ho ho, here comes the Queen of Dani Web ;) Welcome back. *rubbing my hands gleefully* ....*maybe i will get some rep for this he he he*

Member Avatar for Dani
0
172
Member Avatar for joshilay

Its really simple thing for which there actually is no need to post on the forums. Just google the OOP concpet you want to get clarified and you would find a host of pages explaning the thing to you in detail.

Member Avatar for ~s.o.s~
-1
70
Member Avatar for Ripiz

It would be really better if you start from the basics rather than jumping in the middle of nowhere. If you dont understand the code there is no point in makin it run. Still if you want the working code, you can try a new implementation of the MD5 algorithm …

Member Avatar for ~s.o.s~
0
223
Member Avatar for Dave Sinkula

Maybe nesting the quotes in an outlined box with some sort of outlining would really make the nested quotes [B]more easy to read.[/B] 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 …

Member Avatar for Dave Sinkula
0
542
Member Avatar for Kirkius

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 …

Member Avatar for Kirkius
0
159
Member Avatar for anupamjamatia

Avoid using non standard headers and non standard functions since it is regarded as bad programming practice. Avoid including [inlinecode] #include <conio.h> [/inlinecode] since it is non standard header and destroys the portability of the program. Same goes with functions [inlinecode] clrscr () [/inlinecode] and [inlinecode] getch () [/inlinecode]. Instead …

Member Avatar for dwks
0
216
Member Avatar for sgriffiths

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 [URL="http://linux.wku.edu/%7Elamonml/algor/sort/quick.html"]http://linux.wku.edu/~lamonml/algor/sort/quick.html[/URL]

Member Avatar for dwks
0
142
Member Avatar for comp_sci11

Your program basically uses Bubble Sort to sort the array entries in descending order. Bubble sort uses [B]2 for loops [/B]to sort the array provided to it. The while loop in [inlinecode] main [/inlinecode] serves as a replacement to the second [inlinecode] for [/inlinecode] loop of Bubble sort. And it …

Member Avatar for dwks
0
278
Member Avatar for ~s.o.s~

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)

Member Avatar for 'Stein
0
321
Member Avatar for Gunner54

Err... in a less hostile way. [B]To gunner64[/B] 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 …

Member Avatar for Dave Sinkula
0
582
Member Avatar for joshilay

[quote=Grunt]Can we say that for C also? i.e C is semantic superset of C++. Everything you can do in C++ you can also do in C.[/quote] Maybe u r confusing between superset and subset. a = {1, 2, 3, 4, 5, 6, 7, 8, 9, 0} b = {1, 2, …

Member Avatar for Dave Sinkula
0
603
Member Avatar for Dani

Not much dedicated 64 bit applications out there for benchmarking purposes (Farcry..) but still its a good idea.

Member Avatar for John A
0
117
Member Avatar for Dave Sinkula

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)

Member Avatar for hollystyles
0
245
Member Avatar for Puckdropper

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.

Member Avatar for ~s.o.s~
0
137
Member Avatar for jaininaveen

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 …

Member Avatar for jaininaveen
0
178
Member Avatar for Laiq Ahmed

BTW how do u propose to parse the words in the prog. For eg. [quote] 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. [/quote] Just curious. wanted …

Member Avatar for Micko
0
92
Member Avatar for BrandonC

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 …

Member Avatar for ~s.o.s~
0
165
Member Avatar for bryan3304

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 …

Member Avatar for ~s.o.s~
0
98
Member Avatar for zsix

Welcome again to DaniWeb. Just keep going on, never give up and we would be always there by ur side. regards, ~s.o.s~

Member Avatar for ~s.o.s~
0
60
Member Avatar for degamer106

Maybe this is the right answer: [quote] p => pointer to pointer to pointer to int *p => pointer to pointer to int **p => pointer to int ***p => an int [/quote] You just keep applying the basic fundamentals and use the defination of dereferencing an u will get …

Member Avatar for ~s.o.s~
0
76
Member Avatar for RFBourquin

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: [code] size_t strcspn( const char *str1, const char *str2 ); [/code] The function strcspn() returns the index of …

Member Avatar for GloriousEremite
0
151
Member Avatar for Rosicky

YOu have to first post ur effort my friend before expecting any kind of help from the forum members.

Member Avatar for ~s.o.s~
0
148
Member Avatar for sgriffiths

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 [quote=sgriffiths] first_ptr=strtok(first_ptr + [B]strlen(first_ptr) + 1[/B], "|,;-. "); second_ptr=strtok(second_ptr + [B]strlen(second_ptr) …

Member Avatar for jim mcnamara
0
236
Member Avatar for Shital Parab

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 …

Member Avatar for Salem
0
222
Member Avatar for ~s.o.s~

Hello guys this is my first attempt at learing at server side scritping language. I know basics and have worked with Javascript, HTML and CSS. Any pointers or site which can tell me or teach me the basics of ASP .NET so that in the end i can achieve the …

Member Avatar for ~s.o.s~
0
135
Member Avatar for dilip.mathews

But stilll i agree with WaltP. IF any construct or any stmt for eg. [inlinecode] fflush (stdin) [/inlinecode] suppose would be defined under one compiler it would make really less sense to adopt it if it results in undefined behaviour on other compilers. (though it really is undefined under all …

Member Avatar for WaltP
0
228
Member Avatar for Lun

Maybe something along these lines should do the job in a simple way. [code] char* changeString (char* sourceStr) { char* tmpStr = sourceStr; int strLength = strlen (tmpStr) - 1; for (int i =0; i < strLength; ++i) { if ( *(tmpStr + i) == ' ') *(tmpStr + i) …

Member Avatar for ~s.o.s~
0
102
Member Avatar for joshilay

[code] int i=0, j=1; cout<<(j++)&&(i++); //output=1 [/code] Is taken as [inlinecode] (cout << (j++) ) && i++ [/inlinecode] . Here the function [inlinecode] cout [/inlinecode] returns the characters successfully printed which is of type [inlinecode] int [/inlinecode] basciallly a number which when AND with a number gives another number. In …

Member Avatar for ~s.o.s~
0
92
Member Avatar for hiphoprules

One way to do it is to create a struct called result like this [code] typedef struct result_ { int frequency; char* line; } result; [/code] And dynamically create an array of this struct to add the results found as well as the frequency of occurance. While getting every single …

Member Avatar for hiphoprules
0
126
Member Avatar for portege

[quote=portege]I got 10 lines. ;) [code]#include <windows.h> #include <iostream> using namespace std; int main(){ POINT c; GetCursorPos(&c); int x=c.x; int y=c.y; cout<<x<<", "<<y; system("PAUSE");}[/code][/quote] Dont say things without reading the entire post submitted by a very experienced and senior member. What he wanted to said that if u intended on …

Member Avatar for Dave Sinkula
0
4K
Member Avatar for kookai

[URL="http://www.daniweb.com/techtalkforums/member46692.html"][/URL][code] #include <iostream.h> void main () { int s; if ((s>=90) && (s <=100)) { return 4; } else if((s>=80) && (s<=89)) { return 3; } else if ((s>=70) && (s<=79)) { return 2; } else if ((s>=60) && (s<=69)) { return 1; } }[/code] First of all, read teh …

Member Avatar for Salem
0
907
Member Avatar for geek

The problem with ur code is that u are ussign int *pbits without allocating memory to it using new () so a crash is for sure. Try allocating some memory to it like[code]pBits = new int [1]; // allocates memory for one int element[/code] Hope it helped, bye.

Member Avatar for ~s.o.s~
0
131
Member Avatar for kalaichris

Man dont u ever give up, i think this is the second time u are replying to a dead post. Please dont make this forum a graveyard and follow the forum guidelines before posting.

Member Avatar for ~s.o.s~
0
141
Member Avatar for djkross

Which error are u talking about or is it a crash? Its better to post the errors you get from ur code rather than asking us to find it for u. Still some points which can be clarified about the code are: > Also it is not advisable to put …

Member Avatar for djkross
0
96
Member Avatar for abujunad

Maybe this can give a rough idea on how a function is organized [code] float calculateArea (float length, float breadth) { return (length * breadth); } float calculatePerimeter (float length, float breadth) { return (2 * length + 2 * breadth); } [/code] and this can be called in main …

Member Avatar for ~s.o.s~
0
91
Member Avatar for lewisy

Maybe the documentation of the external library you are currently using will have some pointers on how u can go about doing this. Also without the complete code it becomes difficult to think of a solution. HOpe it helped, bye.

Member Avatar for Salem
0
132

The End.