5,676 Posted Topics
Re: And why would you want to bother doing anything like this? | |
Re: C'mon people. C++ is C++ whether TurboC Ver 1 or MSVC.NET (for the most part). There are a few things you have to keep in mind at [I]high level programming[/I] but at basic learning it doesn't matter what compiler you use as long as it's solid. Yes the older compilers … | |
Re: The language cannot define an array of indeterminate size. You must give it a size. One option is to make [B]j[/B] a pointer instead and dynamically create the array with [iCODE]new[/iCODE]. | |
Re: Output the numbers to the printer Cut the numbers from the paper Sort them on the table Tape them together when sorted. :icon_twisted: | |
Re: [QUOTE=zandiago;457235] When a customer orders, the cashier presses a key for each item ordered (WITHOUT PRESSING <ENTER>). If more than one of the same item is ordered, the key is pressed an appropriate number of times. As each key is pressed, the name of the item and its price are … | |
Re: [QUOTE=mtatadotcom;][B]i am a junior programmer[/B] so dont be surprised by the simplicity of the code i am using i have managed to write the code for the atm machine but i dont know why one case switch (case3 abd case 4),the complier has showed no error please help <[B]as i … | |
Re: [QUOTE=veronicak5678;479052]I just couldn't believe there wasn't one already.[/QUOTE] I'm curious. Why would you think there's a function to remove spaces from a string? Of what use would such a function be in [I]the real world[/I]? :?: | |
Re: Skip all even numbers. That will cut your loop in half: [iCODE]for(i=3;i<=root;i+=2)[/iCODE] | |
Re: Look at line 275 and 278 as your errors mention. What's the [I]definition[/I] of [iCODE]coeff[/iCODE] from your parameter list, and how are you using it? Are they the same, or even similar? | |
Re: [QUOTE=Agouri;]So, what the heck, I might as well try playing around with some code. I'm bad at C++ anyway so I could use the extra familiarity with it.[/quote] So why would you want to familiarize yourself with something that cannot easily be done in C++, is very compiler specific (it … | |
Re: [QUOTE=avi4ya;] 6. Then type “cd windows\system32” without quotes ... 3. Type the command “[b]control userpasswords2[/b]” (without quotes) ... type “[b]exit[/b]” (without quotes) .... [/QUOTE] If you don't want people to enter the QUOTES, don't use them in your explanation. The [B]bold[/B] or [I]italic[/I] text is enough to distinguish the text … | |
Re: [QUOTE=rajuss;338719]hi i m trying but couldnt able to do the progrm. the program is in c & its on finding a string from a text file. so please help me out to doing it:sad:[/QUOTE] Sure. If you would 1) explain what you've tried 2) show what you've tried ([url=http://www.daniweb.com/techtalkforums/announcement8-3.html]read this[/url]) … | |
Re: [QUOTE=marco1497;]What open source software for PDAs/smart phones (like Blackberry )is best for student attendance monitoring/tracking? Any specific/brand of software? Or any possible specific hardware for that software?[/QUOTE] If there was a [I][B]best[/B][/I] there wouldn't be choices... | |
Re: How is your array defined? How does it reflect your map? | |
Re: [CODE] #include "stdafx.h" int _tmain(int argc, _TCHAR* argv[]) { int x; int y; int i; int c; int primecount; int average = average + ; printf( "Enter two positive integers --> " ); scanf("%d%d" , &x, &y ); while (y >= x ) { c=0; printf ( "\n %d:\t" , … | |
Re: OK OK Enough already!! I think we've got it!!!! | |
Re: > the code I have is not working. please help.here is the code Can you possibly be less vague? 1) What's "*not working*" about it? 2) Where's the [formatting](http://www.gidnetwork.com/b-38.html) so we can actually read and follow the code? When asking a question, don't be vague. Be detailed. With examples and … | |
Re: [QUOTE=nakul_pancholi;1164204]Dear Friend, But are you getting my point or not? As i want to see entire output on my screen. How it will be possible, that i want to know. Even if with DOS prompt i am getting same thing. Can anybody help..? Thanks and regards[/QUOTE] Get a new monitor … | |
Re: Reformat your code so we can tell wht statements go with what DO loop. | |
Re: Actually, please ask [B]a[/B] question - one that can be answered, preferably. | |
Re: The Law of Projects: The first 80% of any project takes the first 80% of the allotted time. The last 20% of the project takes the other 80% of the time. | |
Re: Isn't this something you learn in 5th grade math class? Or if you slept through that class you could learn it [this way](http://lmgtfy.com/?q=lcm). | |
Re: You learn by checking out how someone else coded theirs. Find a couple more O/S's to look at and check for similarities and differences. Linux is also available as source. | |
Re: Specify [inlinecode]formName.fieldName.data[/inlinecode] | |
| |
Re: Why are you using [B]StdAfx.h[/B]? That's your major problem. Write the code based on the C++ Standard and the program should compile in both environments. Don't use any of Visual Studio's cutesy enhancements at all. | |
Re: [quote=Micko;261902]If you need to write sort code, I would recommend insertion sort. Read this: [URL]http://www.eternallyconfuzzled.com/tuts/sorting.html[/URL][/quote] Not me. I'd use a bubble sort. The list is short. The sort is easy. Start with the easiest and when comfortable, move up to the harder ones. | |
Re: @guru_boy: [QUOTE=Narue;442456]It's generally considered rude to resurrect ancient threads, for any reason.[/QUOTE] You didn't bother reading the thread before posting eh? | |
Re: [QUOTE=joydsouza90;424346]could anyone tell me what are the max values that can be entered in turbo c++ gotoxy function..... the help says that (35,25) is the bottom right position in the window but i can enter text even upto x-coordinate 50.. what i want to do is enter text at y- … | |
Re: Then why did you do it yet again today? That post deleted and infraction given. As Narue said: [QUOTE=Narue;1661903]Congratulations?[/QUOTE] | |
Re: Move the cursor with [iCODE]gotoxy()[/iCODE]. Just because you output text at a certain location doesn't mean the cursor was moved. | |
Re: [QUOTE=mrSatellite;]what is the program of a simple c++ program of identifying if the number entered is prime or not using while loop.. [/quote] It's a [I]Prime Number Test Program[/I]. [QUOTE=mrSatellite;]is it possible to program without using bool??[/QUOTE] yes. | |
Re: Problem #1: [CODE]while (! myfile.eof() ) //while the end of file is NOT reached[/CODE] [url=http://www.gidnetwork.com/b-58.html]See this[/url] ([INLINECODE].eof()[/INLINECODE] is identical to [INLINECODE]feof()[/INLINECODE] Problem #2: [CODE]system("PAUSE");[/CODE] [url=http://www.gidnetwork.com/b-61.html]See this[/url] | |
Re: You can space the numbers properly by adding the width value: `printf("\nTigers %3d %3d %3d ", t," ", tw," ", tp,"\n");` This prints all numbers with 3 chracters, SPACE filled. Also, division can't be done accurately with integers. Make a test program to see what happens when dividing various integer … | |
Re: int main (){ getinput(); int i,j; for(i=0;i<strlen(expression);i++) { printf("\nstrlength=%d--------for i=%d\n",strlen(expression),i); c=expression[i]; switch(c) { case '+': case '-': case '*': case '/': case '^': { temp=(NODEPTR)malloc(sizeof(struct node)); temp->item=c; temp->rnode=pop(); temp->lnode=pop(); push(root); } default : { temp=(NODEPTR)malloc(sizeof(struct node)); temp->item=c; temp->lnode=NULL; temp->rnode=NULL; push(temp); } void free(void *ptr); break; } } root=pop(); inorder(root); getch(); … | |
Re: [QUOTE=anga08628;470905]okay so the second part of this assingment is: [COLOR="Green"]Using a sort routine of your choice, sort the numbers in each of the rows of the array and display the sorted numbers again on 5 lines of 10 numbers each[/COLOR] [COLOR="Green"]i have no idea how to do this...in a 2d … | |
Re: I have the same question as [B]Salem[/B] -- why are you reading one character at a time? And if you are passing [icode]input[/icode] into the function, why are you not loading it for the return? Also, FYI, see [url=http://www.gidnetwork.com/b-62.html]this[/url] and [url=http://www.gidnetwork.com/b-60.html]this[/url] about [icode]scanf()[/icode]. Why instructors insist on teaching bad techniques … | |
Re: Correct. File handling is what you need. In a nutshell, read a file of name/password pairs. accept info from user. search through the file data for a match. What **you** need to do is * sit at a desk, paper and pencil, and NO computer. * write down all the … | |
Re: What's the value of 40! ? What's the largest value a variable can accurately hold? Rim-shot! | |
Re: Yeah, so? Why would anyone want to do this? It's hard to understand and using a temp variable is clean and understandable. | |
Re: AD is correct. [url=http://www.gidnetwork.com/b-58.html]Read This[/url] | |
Re: Go to your profile and remove/fake all the personal information. Based on the info I see publicly, you live in Wellington. Nothing else. How is that threatening? Especially if you change it to Caloris Basin, Mercury? [QUOTE=mercurious;]In fact as there has been significant change to the service you should have … ![]() | |
Re: Two resurrections of a 3-year old thread with worthless posts are enough. Closed. | |
Re: Print the program out Grab another piece of paper and a pencil Sit at your desk and go through the program line by line Write down the variable names and what gets loaded into them Follow the code until you see something that doesn't look right and figure out why. | |
Re: [QUOTE=dev90;]you should use flag and store 1 if 1st date is smaller.and use break; in if block; [/QUOTE] Have you ever used a [ICODE]break[/ICODE] in an [ICODE]if()[/ICODE] block? It doesn't work. [QUOTE=subith86;]I don't see any validity checks done for your dates. He can enter invalid dates like 33/33/2012.[/quote] I would … | |
Re: [QUOTE=wenbnet;]Sorry but everyone can count 1 to 1000 and infinity, whats new in this? whats interesting this thread?, in Team A & B, at least we was having two team as opponent what is going to happen just pages are going to increase and no of post will increase neither … |
The End.