5,676 Posted Topics
Re: [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 … | |
Re: You don't even want to try so you want us to program it for you? That's what you're saying, right? | |
Re: [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 … | |
Re: Use an array that holds all the IDs in use. | |
Re: [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 … | |
Re: Depends on what "red line" means. We can't even hazzard a guess without more information. Like maybe an error message. | |
Re: [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 … | |
Re: [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 … | |
Re: 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, … | |
Re: 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 … | |
Re: Try outputting the values you input, to see if they are correct. | |
Re: [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 … | |
Re: [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 … | |
Re: [url=http://www.lmgtfy.com/?q=vb+combo+box]Here[/url] | |
Re: 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. | |
Re: Where do you deal with the highest value? I only see lowest. | |
Re: [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! | |
Re: 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 … | |
Re: 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. | |
Re: [QUOTE=debasisdas;1508417]Login info must be stored in Database, to enable multiple user with their individual password.[/QUOTE] Or a text file. | |
Re: How do you add 2, then 3 to get the values you want? Where would you add 2, then 3 in your program? | |
Re: [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 … | |
Re: 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 … | |
Re: 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 … | |
Re: Please format your code so it's readable. Get rid of all the comments that force each line to be too long. | |
Re: [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 … | |
Re: [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 … | |
Re: Look up [iCODE]sprintf()[/iCODE]. That will allow you to put a string together from different variable types. | |
Re: [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] | |
Re: The documentation of the functions themselves. Where did you hear about them? | |
Re: When you make a post and it looks bad, click the EDIT button to the left and [B]fix it[/B]! | |
Re: [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 … | |
Re: [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. | |
Re: By the way, [ICODE]isalpha()[/ICODE] only checks for Letters, [ICODE]isalnum()[/ICODE] checks for Letters and Digits.. | |
Re: [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 … | |
Re: [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 … | |
Re: The [url=http://en.wikipedia.org/wiki/Amish]Amish[/url] -- no phones, no modern conveniences.... You know, the buggy drivers. | |
Re: [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. | |
Re: [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] | |
Re: 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 … | |
Re: Very simple. Why don't you try something and if it doesn't work, post it. | |
Re: [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. | |
Re: 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. | |
Re: Because [iCODE]while (done [B]=[/B] false)[/iCODE] sets [B]done[/B] to FALSE, so your test is FALSE. | |
Re: 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 | |
Re: [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] … |
The End.