- Strength to Increase Rep
- +17
- Strength to Decrease Rep
- -4
- Upvotes Received
- 1K
- Posts with Upvotes
- 1K
- Upvoting Members
- 372
- Downvotes Received
- 390
- Posts with Downvotes
- 216
- Downvoting Members
- 130
5,676 Posted Topics
Re: [QUOTE=NetJunkie;]... but I have been on here since August 23rd, or somewhere in there, and I already have 135+ posts. I have been contributing to the site as much as possible and if the post count determines the knowledge or the credibility of a user...[/QUOTE] It does not. I've seen … | |
Re: [QUOTE=vegaseat;1127017]"You get what you pay for." -- unknown wise guy[/QUOTE] "You'll pay for that" -- probably the same guy | |
| |
Re: 7 * 3 * 3 * 2 * 2 Pi R Squared No Pie R Round Cornbread R Square | |
Re: Nothing. I don't eat anymore. It's bad for my health. | |
Re: Then [I]originalPointer[/I] is getting too large. What is in the array [I]inputText[/I]? Not what you [B]think[/B] is in it, but what actually is the value of every single element in the array? Print it out value by value, as integers, and make sure the last word in the array is … | |
Re: Because [B]!infile[/B] is TRUE until you hit the End Of File. When you read the last line, you still haven't hit EOF so you fo through the loop once more. The first input hits EOF and continues through the loop since you are beyond the check already. The last line … | |
Re: [QUOTE=adoleh;]I have to create a program that asks a person to enter a 2 digit number (10-99) and convert it into words. I've been working on this for days and I still don't see what I'm doing wrong! PLEASE HELP ME!!! [/QUOTE] With what? You didn't bother telling us what … | |
Re: You can't. [I]graphics.h[/I] is not compatible with Dev-C++ | |
Re: >sir i got error 112th line Sorry, but that's what you get for using someone else's code and not fixing your own code. You don't understand what he did and can't fix it. | |
Re: Why not just hit Ctrl-C. It'll stop the program too. :icon_wink: You need to test the return from [iCODE]cin[/iCODE] and look for [B]EOF[/B] | |
Re: Another thing to consider is the line [INLINECODE]else if ( ( a == b ) && ( a == c ) && ( b == c ) )[/INLINECODE] is a little longer than it needs to be. If [B]a[/B] == [B]b[/B] and [B]a[/B] == [B]c[/B], isn't [B]b[/B] automatically equal to … | |
Re: Or, Read in the numbers into the array Sort the array [i]Then[/i] the duplicates are easy to find. | |
Re: And what do you need help with, other than learning how to [url=http://www.gidnetwork.com/b-38.html]format your code[/url] so we can understand it. | |
Re: Does that compile? You need to write short sections of code, compile and test each as you go. Otherwise when you get 800 lines of uncompiled/untested code, you will have a nightmare of errors to try to fix. | |
Re: [QUOTE=GeekByChoiCe;]Everything that was written as possible solutions are not really good. Downvoting...hmm that doesn't happen a lot (at least in the VB forums)[/quote] So? It happens enough. And even if [I]in your opinion[/I] is doesn't happen enough, so what? Downvote them and it happens more? IMAO, your reasoning why you … | |
Re: In your first post you did good -- mentioned what you wanted and what the program actually did. This time you left it up to us to figure out what happens. [I]always[/I] tell us 1) what you did, 2) what the program did, and 3) what you expected instead | |
Re: I've used [url=http://www.hyperionics.com/]HyperSnap[/url]. It had the most options I needed (included command line invocation). The author is also very responsive to bugs and requests. | |
Re: Why are you asking for a seed value? And why are you not using it? | |
Re: [QUOTE=TkTkorrovi;412602]And using %d, the sscanf does some strange things. %d must read int, but when we read into int and then print that number, it prints correctly even numbers which are greater than 65536. This should mean that it would write into memory larger than int allows, which is overflow. … | |
Re: [QUOTE=Compton11;569810]Brittany, you can't do cin >> number[i]..That will not read a value and store it in the array...Do something like this: ...Remember to add to my reputation![/QUOTE] That is [I]exactly[/I] how to read in a value into the array. Don't know where you get the idea it can't. [code=cpp] //Find … | |
Re: [QUOTE=dawn.visp;1128490]I just hate when someone in the office downloads huge amount of files because the connection starts to slow down.[/QUOTE] His wife won't let him download that stuff at home, though. | |
Re: Oh, why not. 1, 0, 1, 3.14 | |
Re: [QUOTE=sun_kangane;347764]How To Calculet Time Complexity Of An Algo[/QUOTE] By reading the responses posted in this and the other link you hijacked. | |
Re: [QUOTE=Naruse;]Hi all.. How i can make a report without using database. Data can directly from the active form. Thank you in advance[/QUOTE] If the form has all the info for the report, just start outputting the info the way you want it. If that doesn't help please give some details. | |
Re: Take for example you want to convert 7520 seconds into hh:mm:ss. Use integer math To get hours: [ICODE]hr = sec/(60*60); // int math truncates [/ICODE] What's left is: [ICODE]sec = sec - (hr*(60*60)); // remove the #hrs[/ICODE] Or using mod: [ICODE]sec = sec % (60*60)); // gives remainder if hrs … | |
Re: [QUOTE=dusktreader;1176168]There is actually a very simple solution to this problem. First, you are trying to do two things here: [icode] 1. Split an input number into separate digits. 2. Add the digits together. [/icode] First of all, I would not recommend putting your input into an int type. If you … | |
Re: [QUOTE=Amiet Mhaske;]Hi, guys I am working on vb project, which will save client database. I've done the coding of ADD, NEW, SAVE, EDIT button. Now, I am stuck at DELETE button. When I delete any particular client then I want my client_id (it's a column in my access database) should … | |
Re: [QUOTE=WAIWAIWAI;1149599]How to add, subtract, multiply and divide 2 different numbers from 2 different form. Pls help me. The code i think is way too simple example: (Result.text = result) (Text1.text = number from form2)(Text2,text = Number from form3). the code i think is like this and this one is not … | |
Re: If you use a FOR loop from 1 to N, this loop would control each line. Then inside that FOR loop you have more loops that control the pattern of each line. Your job is to figure out how to create the line pattern. What is the same in each … | |
Re: Then you need to find some fonts compatible with Borland's graphics library. | |
Re: It really helps to [format your code](http://www.gidnetwork.com/b-38.html) so others can follow it. Formatting also helps *you* when you get an error like "end of file during compile" of "else without if"... Also, **conio.h** is non-standard and should be avoided. You certainly don't *need* it in these programs. | |
Re: [QUOTE=aianne;1118779]try this code. [/QUOTE] But he wants it for the computer, not the iPhone... :D | |
Re: [CODE]Start at the end of each array (ones digit). Add the two values. If < 10, store in the last entry of the answer array If >=10, store (val MOD 10) instead save (val / 10) to add to the next digits Move to the 10's digit and repeat [/CODE] | |
Re: [QUOTE=kumarmpk4u;1546852]is it possible to copy a zip file and exe file from one directory to another using c program?[/QUOTE] Yes. | |
Re: [QUOTE=~s.o.s~;278814]You cant as such check for such conditions in case of a simple sort like bubble sort. Take for eg. this array. 1 2 3 4 5 6 8 7 During the first seven passes no swap is performed since the next number is always greater than the current but … | |
Re: > It's using the below but you need to include <string.h>, on dev c++ just <string> doesn't seem to work. That's because `string` is the header for the C++ string class. `string.h` (or more correctly in C++ `cstring`) is for c-strings. | |
Re: When you post a request for help, you need to tell us what's wrong. Don't just tell us there's an error and expect us to look for the error. | |
Re: 1) Store the offset of the current line (for fseek) into an array 2) Read the line of the file 3) Increment COUNTER that counts the line 4) Continue at 1 until EOF 5) Get a random number based on COUNTER 6) [iCODE]fseek()[/iCODE] to the line 7) Read the line. … | |
Re: Possible, of course. Doable with your current knowledge of C, the compiler, graphics, etc, only you can decide. | |
Re: [QUOTE=ibthevivin;]@Narue: I've never written a change making program. I didn't find any reference of that in my textbook. What should I look under?[/QUOTE] It doesn't matter. If you've written a change program, you can use the concepts you learned. Since you haven't, you have to do this program without that … | |
Re: [QUOTE=Aia;535722]Pursuit of such skills are as irrelevant to a programmer as it would be for an aspirant mountaineer to learn how to make ropes out of camel's hair.[/QUOTE] You wouldn't say that if you were lost in the Sahara Mountains! :icon_mrgreen: | |
Re: A somewhat minor nit-pick: [QUOTE=ravenous;]In ASCII the letters 'a' to 'z' and 'A' to 'Z' are converted a continuous set of numbers when you convert them from [icode]char[/icode] to [icode]int[/icode]. [/QUOTE] Letters are not [I]converted[/I] to numbers, they [B]are[/B] numbers. 66 is a number, and if output as a character … | |
Re: Well, don't know how to load the pic, and can't delete the message... Oh well. | |
Re: I'm sure Ahmed and Vicky had been sitting in front of their computers for two years just [I]waiting[/I] for your response. Good Job. | |
Re: That's because you didn't learn C++. You learned C. And if your instructor was really teaching C++ then you unfortunately received a very bad education. It's like taking a car repair class and all you worked on were motorcycles. After all, they have engines, too, don't they? | |
Re: To put this in perspective, the habanero pepper (previously the hottest pepper) is a measley 100,000–350,000 Scoville units. | |
Re: what is da speciality in dat? Does u no Uncle Remus 2? Hez so fun! |
The End.