5,676 Posted Topics

Member Avatar for benchz23

[QUOTE=benchz23;1513807]i forgot to put DO in my program. since i was instructed to use DO-WHILE LOOP. i still have the same output if i use this code. But better to have the DO inserted. [/QUOTE] Yes, you forgot to use DO. How you can forget DO when the assignment calls …

Member Avatar for daviddoria
0
178
Member Avatar for spixy
Member Avatar for spixy
0
2K
Member Avatar for wdearth

[QUOTE=wdearth;]I'm supposed to make a program using getchar() to input the operation entered, then return the result of the operation after extracting the operands and the operator and calculating the result. I was thinking of using functions like isdigit() or ispunct() to extract the operands and operator [/QUOTE] That seems …

Member Avatar for thekashyap
0
116
Member Avatar for ashrafu1
Member Avatar for Tamlyn

[QUOTE=Tamlyn;]Hey everyone :) Hope you can help Here is what I've done with the instructions given: I need to know the average price difference between the cash and credit prices. But i'm pretty sure that only comes in at the end. Here is what my this function is supposed to …

Member Avatar for Tamlyn
0
121
Member Avatar for benjybob

Depends on what "red line" means. We can't even hazzard a guess without more information. Like maybe an error message.

Member Avatar for WaltP
0
226
Member Avatar for Khoanyneosr

[QUOTE=VernonDozier;]I don't see any char variables, so I presume you're trying to read a char into line 19, which asks for an int? [/QUOTE] No, he wants to read an [I]int[/I] but a non-int does it's looping thing. You need to read the input as a string and after you've …

Member Avatar for Khoanyneosr
0
158
Member Avatar for Philiplee

[QUOTE=Philiplee;]If I have .txt file include 10 digits such as 0//start bit 1 1 0 0 0 0 1 0//parity bit 1//end bit If I put those into an array, how to check the first bit, the last bit and parity bit? [/quote] When you've read the data into your …

Member Avatar for WaltP
0
95
Member Avatar for garu525

First you need to fix many things you are doing completely wrong. 1) [url=http://www.gidnetwork.com/b-57.html]fflush(stdin)[/url] is an error -- follow the link 2) Never NEVER call [iCODE]main()[/iCODE]. [iCODE]main()[/iCODE] is not a recursive function. Create a loop instead. 3) The syntax [CODE]void error (int), add (int, int, bool, bool), subtract (int, int, …

Member Avatar for WaltP
0
718
Member Avatar for RyanMcMillan

It shouldn't have. Problem #1) Never define a variable in a header file. The statement [iCODE]float PI = 3.146;[/iCODE] should [B]only[/B] be made in a source file. If you add the header to 4 source files, you will have 4 definitions of PI causing lots of errors. Problem #2) The …

Member Avatar for RyanMcMillan
0
178
Member Avatar for thetwig
Member Avatar for thetwig
0
173
Member Avatar for harinath_2007

[QUOTE=harinath_2007;]hi.. i am using windows 7 (32 bit) ultimate. where can i get turbo c++ for windows 7?? what should i use for compiling and running c/c++ programming in windows 7[/QUOTE] How about a [url=http://www.microsoft.com/express/Windows/]compiler from 2010[/url] instead of 1980's If you have Windows 7 [I]Ultimate[/I], why do you want …

Member Avatar for Ancient Dragon
0
238
Member Avatar for Mal-man

[QUOTE=Mal-man;]Stuck on a program i've been trying to work on for the last few hours. A user enters 2 arrays, both are charater arrays with 5 spaces each. They are passed into a function that compares the 2 arrays to each other [I]character by character[/I]. If they are idenital the …

Member Avatar for darkdai
0
7K
Member Avatar for daniweb2011
Member Avatar for Charlton21

1) [url=http://www.gidnetwork.com/b-38.html]Formatting[/url] - your code is too hard to follow without proper formatting 2) Based on the problem as stated - "[I]I can't get it to print out the new equation[/I]" - use [iCODE]cout[/iCODE]. If that's not helpful, try explaining the problem. Don't make us guess.

Member Avatar for WaltP
0
155
Member Avatar for hobbyenthusiast
Member Avatar for WaltP
0
269
Member Avatar for caut_baia

[QUOTE=royng;1509381]IRC is a chat room with you can chat with other online posters. No point going there since there are around 5 regular people there[/QUOTE] And how do we get more people on IRC if you don't want anyone to go there? Make up your mind!

Member Avatar for royng
3
236
Member Avatar for C.Cen

1) Why are you inputting [B]all[/B] your stock prices into [iCODE]stock[32][/iCODE], which is beyond your stock array? It stops at [iCODE]stock[31][/iCODE]. 2) Why are you adding all the stock prices by hand rather than -- a) in a loop? -- b) accumulating them during input? 3) What month do you …

Member Avatar for DHEERESSAA
0
244
Member Avatar for sreekiranws

A DOC file isn't text, it's binary. The only way to do what you want is to understand the format of a .DOC file. Use GOOGLE.

Member Avatar for jonsca
0
213
Member Avatar for Mitchell VB 6
Re: VB 6

[QUOTE=debasisdas;1508417]Login info must be stored in Database, to enable multiple user with their individual password.[/QUOTE] Or a text file.

Member Avatar for AndreRet
0
109
Member Avatar for opawix

How do you add 2, then 3 to get the values you want? Where would you add 2, then 3 in your program?

Member Avatar for opawix
0
92
Member Avatar for salty11

[QUOTE=salty11;]that my code, im having trouble with the counting letters and words part, any suggestions?? [/quote] Sure. Explain why you think it's not counting words and letters. [QUOTE=salty11;]also im not even getting an output, but thats probably sometihng minor with the last function?[/QUOTE] You're calling the output function. What makes …

Member Avatar for WaltP
0
639
Member Avatar for lochnessmonster

If you wish to use [I]his[/I] solution, ask him. Otherwise, you 1) call the [iCODE]isFull()[/iCODE] function. 2) if the stack is not full, return FALSE. 3) if the stack is full, return TRUE. How you test for full is up to you since you design the stack itself. There is …

Member Avatar for WaltP
0
93
Member Avatar for maybnxtseasn
Member Avatar for programing

Given this sorted array 1,2,4,4,4,5,6,7,7,8,8 what steps would you take to find the mean sitting at your desk with pencil and paper. Write those steps down. What steps can easily be converted into code? Which ones can't? Those that can't need to be broken down into more steps. Post what …

Member Avatar for WaltP
-1
116
Member Avatar for atticusr5

Please format your code so it's readable. Get rid of all the comments that force each line to be too long.

Member Avatar for WaltP
0
143
Member Avatar for clutchkiller

[QUOTE=Zjarek;]According to system function discussion. For me system("pause") is the best way to leave window open for Windows users to see results. [/quote] And you'd be wrong. [QUOTE=Zjarek;]On my system I just get info in terminal that this command was not found and program finishes normally. [/quote] And this is …

Member Avatar for Narue
0
2K
Member Avatar for bantex07

[B]bantex[/B], even though [B]jephthah[/B] comes tromping into your thread being condescending and belligerent, spouting derisions and opinions with no backing explanations, he is correct. He feels you are just supposed to trust him. Allow me to add the small bits of information he neglected to tell you: [QUOTE=jephthah;1133171]get rid of …

Member Avatar for WaltP
-2
153
Member Avatar for DJSAN10
Member Avatar for lochnessmonster

Look up [iCODE]sprintf()[/iCODE]. That will allow you to put a string together from different variable types.

Member Avatar for rubberman
0
111
Member Avatar for Dr_Anonymous

[url]http://www.daniweb.com/software-development/c/threads/274866[/url] [url]http://www.daniweb.com/software-development/cpp/threads/340595[/url] [url]http://www.daniweb.com/software-development/c/threads/340188[/url]

Member Avatar for Adak
0
109
Member Avatar for NYCrealist

The documentation of the functions themselves. Where did you hear about them?

Member Avatar for rubberman
0
102
Member Avatar for garber

When you make a post and it looks bad, click the EDIT button to the left and [B]fix it[/B]!

Member Avatar for rubberman
0
143
Member Avatar for vineeshvs

[QUOTE=vineeshvs;]the line [CODE]free y[/CODE] cause problems. [/QUOTE] After 30+ posts you should know better by now. Ground it for a month with no TV. [QUOTE=vineeshvs;]should i use it after [CODE]return y[/CODE][/QUOTE] If you use it after [iCODE]return y[/iCODE] will it be executed? What does [iCODE]return y[/iCODE] do? [EDIT] I see …

Member Avatar for vineeshvs
0
259
Member Avatar for lochnessmonster

[QUOTE=NicAx64;] But from the meaning of string, string is a something that ends with null character.[/QUOTE] In C, you are correct. In C++ you are not correct. In C++, a [I]string[/I] is defined via the std:string [I]type[/I]. The definitions are not interchangeable.

Member Avatar for WaltP
0
168
Member Avatar for dizzyboy

By the way, [ICODE]isalpha()[/ICODE] only checks for Letters, [ICODE]isalnum()[/ICODE] checks for Letters and Digits..

Member Avatar for dizzyboy
0
212
Member Avatar for darkelflemurian

[QUOTE=BitBlt;]You actually don't need vbscript to do this. Go to a DOS prompt and type [CODE]dir /?[/CODE]That will show you how to get a list of all the things you need. Try this:[CODE]dir *.jp* /s /b > myfiles.txt[/CODE]This will give you a list of all files (with directory information!) that …

Member Avatar for debasisdas
0
356
Member Avatar for rjbrjb777

[QUOTE=rjbrjb777;]help me.. why data and floats are not being passed in sort function??? [/QUOTE] They are. You print statements are wrong, so if you expected a certain output, you won't get it. You are only printing 1 single value from both [B]A[/B] and [B]D[/B]. But since [B]i[/B] has no defined …

Member Avatar for WaltP
0
4K
Member Avatar for Shanti C

The [url=http://en.wikipedia.org/wiki/Amish]Amish[/url] -- no phones, no modern conveniences.... You know, the buggy drivers.

Member Avatar for ~s.o.s~
-1
404
Member Avatar for dstoltz

[QUOTE=cscgal;1504304]I think that a carat is a good idea. [/QUOTE] Of course you would, you're a girl. Especially if it had 23 friends. :D Me, I'd like a carrot.

Member Avatar for ~s.o.s~
0
230
Member Avatar for biancaW

[QUOTE=VernonDozier;1504897]There's no way in hell I'm going to look at code with spacing like that. Get rid of the blank lines and add some [B]indentation[/B], etc.[/QUOTE] Notice [B]indentation[/B]! [url=http://www.gidnetwork.com/b-38.html]See this[/url]

Member Avatar for L7Sqr
0
407
Member Avatar for Ancient Dragon

Here's a list of ICODE possibilities: Using icode-tags on one line like this gives Using `icode tags` on one line like this gives Using icode-tags on two lines like this gives Using `icode tags` on two lines like this gives Using icode-tags on three lines like this gives Using `icode …

Member Avatar for WaltP
0
129
Member Avatar for Marcial
Member Avatar for plang007
Member Avatar for n3red

[QUOTE=n3red;1501027]Can u follow up whit a code example[/QUOTE] No. We won't write your code for you. As per the Member Rules you were supposed to read, [B]you[/B] post code and we help you fix it.

Member Avatar for abhimanipal
0
125
Member Avatar for n3red

Is there a better definition of [B]problems[/B]? Can you explain what [B]problems[/B] mean now? If you changed code, maybe if we know what the code looks like [I]now[/I] it would be helpful, especially since we don't know what was tweaked nor how.

Member Avatar for Narue
0
327
Member Avatar for khayabi
Member Avatar for Khoanyneosr

Because [iCODE]while (done [B]=[/B] false)[/iCODE] sets [B]done[/B] to FALSE, so your test is FALSE.

Member Avatar for Narue
0
233
Member Avatar for JordanHam

You need to parse the line. Find each (,) and 1) Convert the value to float and store it. 2) Search for a comma 3) If found, skip over it and go back to 1

Member Avatar for JordanHam
0
4K
Member Avatar for Prisms

[QUOTE=Prisms;]Hey guys I am currently writing a code that will take the user input of a number and convert it to its hexadecimal form with the use of Stack ADT. This is what I have so far and would appreciate any help.[/QUOTE] With what? It's helpful to explain [I]in full[/I] …

Member Avatar for WaltP
0
238

The End.