5,676 Posted Topics

Member Avatar for vijaykrishnabor
Member Avatar for danijohn

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 …

Member Avatar for alifriend7
0
599
Member Avatar for naz1234
Member Avatar for zrd0808

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].

Member Avatar for Schol-R-LEA
0
445
Member Avatar for nightcrew

Output the numbers to the printer Cut the numbers from the paper Sort them on the table Tape them together when sorted. :icon_twisted:

Member Avatar for omgerg
0
3K
Member Avatar for zandiago

[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 …

Member Avatar for NathanOliver
0
9K
Member Avatar for mtatadotcom

[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 …

Member Avatar for chandrasekhar77
0
6K
Member Avatar for veronicak5678

[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]? :?:

Member Avatar for bridgett.grace
0
2K
Member Avatar for cse.avinash

Skip all even numbers. That will cut your loop in half: [iCODE]for(i=3;i<=root;i+=2)[/iCODE]

Member Avatar for vantrendin
1
6K
Member Avatar for jephthah
Member Avatar for coxxie

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?

Member Avatar for NathanOliver
0
3K
Member Avatar for Agouri

[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 …

Member Avatar for BeautyBeast
0
784
Member Avatar for avi4ya

[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 …

Member Avatar for DenisHu
0
2K
Member Avatar for ricciola

[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]) …

Member Avatar for shentong
0
3K
Member Avatar for anupam_smart
Member Avatar for marco1497

[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...

Member Avatar for josetha
-1
303
Member Avatar for chiste91
Member Avatar for shafaqsajjad
0
11K
Member Avatar for cufisa

[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" , …

Member Avatar for rajii93
0
414
Member Avatar for pittdaniweb
Member Avatar for kumarprashant

> 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 …

Member Avatar for Bendez Thyna
0
302
Member Avatar for nakul_pancholi

[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 …

Member Avatar for arulgee6
0
1K
Member Avatar for tux4life

Reformat your code so we can tell wht statements go with what DO loop.

Member Avatar for Remy1990
0
8K
Member Avatar for shahirulnizam
Member Avatar for romeopuri03
-5
82
Member Avatar for debasisdas

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.

Member Avatar for James_28
8
17K
Member Avatar for nitin1

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).

Member Avatar for ShapesInClouds
0
3K
Member Avatar for nyt1972

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.

Member Avatar for imawesome511
0
4K
Member Avatar for stan yost
Member Avatar for biljith
Member Avatar for wildplace

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.

Member Avatar for deceptikon
0
2K
Member Avatar for hariza

[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.

Member Avatar for Ancient Dragon
0
2K
Member Avatar for lara_

@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?

Member Avatar for nootan.ghimire_1
0
7K
Member Avatar for joydsouza90

[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- …

Member Avatar for Ancient Dragon
0
4K
Member Avatar for tayspen
Member Avatar for srinath reddy

Then why did you do it yet again today? That post deleted and infraction given. As Narue said: [QUOTE=Narue;1661903]Congratulations?[/QUOTE]

Member Avatar for Jeff_11
0
1K
Member Avatar for f4fjks

Move the cursor with [iCODE]gotoxy()[/iCODE]. Just because you output text at a certain location doesn't mean the cursor was moved.

Member Avatar for Cihan_1
0
677
Member Avatar for mrSatellite

[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.

Member Avatar for amaya ali
0
749
Member Avatar for stanwaka

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]

Member Avatar for ilileve
0
47K
Member Avatar for Hyperion101

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 …

Member Avatar for HiHe
0
383
Member Avatar for sneha_

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(); …

Member Avatar for deceptikon
0
2K
Member Avatar for anga08628

[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 …

Member Avatar for irum.nageen.3
0
11K
Member Avatar for jared_masc

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 …

Member Avatar for deceptikon
0
5K
Member Avatar for Grandiago

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 …

Member Avatar for alicante09
0
901
Member Avatar for vegaseat

What's the value of 40! ? What's the largest value a variable can accurately hold? Rim-shot!

Member Avatar for vegaseat
0
1K
Member Avatar for shashikumar s g

Yeah, so? Why would anyone want to do this? It's hard to understand and using a temp variable is clean and understandable.

Member Avatar for shashikumar s g
0
341
Member Avatar for jbrock31
Member Avatar for samone1228
0
614
Member Avatar for aybe

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 …

Member Avatar for Scoobidoo
0
609
Member Avatar for sargarpramod
Member Avatar for tilakkumar
0
3K
Member Avatar for justin.chestnutt

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.

Member Avatar for Fatma30
0
1K
Member Avatar for cdea06

[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 …

Member Avatar for rubberman
0
301
Member Avatar for blackcathacker

[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 …

Member Avatar for cproger
0
645

The End.