5,676 Posted Topics
Re: [QUOTE=Kirbz;]Problem: I need an array to hold the cards and an array to calculate the total[/quote] So what's the problem? What is it you don't understand? [QUOTE=Kirbz;]It doesn't seem that tough but I was instructed to only use the switch(num) statement and shuffle code once in the program. [/quote] It … | |
Re: [QUOTE=begyu;]Hi all, I need help in the following problem. I have a data file containing 100 columns, with different number of rows.[/quote] How can [B]a[/B] file have a different number of rows? [QUOTE=begyu;]I would like to read for example the columns from 45 to 56 and calculate something on these … | |
Re: I disagree. 1) IMO, the [I]# of solved threads[/I] is a bogus value to begin with. It has no real purpose and gives a skewed view of most poster's 'help'. It's even less useful than REP. 2) It's not our place to mark threads solved -- it's the OP's place. … | |
Re: [QUOTE=TheOnlyRoss;]I need to write a quiz program that generates random questions. My group and I determined that we would probably need to make use of the random function, so we did our research and were able to write the following program [CODE] #include<stdio.h> #include<stdlib.h> int main() { int i; int … | |
Re: [QUOTE=Clinton Portis;]I believe that 'i' is used in accordance with the rules of Hungarian Notion; a coding style used to self identify the type variables (int type vars use 'i'). [URL="http://msdn.microsoft.com/en-us/library/windows/desktop/aa378932(v=vs.85).aspx"]Check out Hungarian Notation.[/URL][/QUOTE] Nope. [B]i[/B] has been used long before Hungarian [I]Notation[/I]. From Wikipedia: "[I]The original Hungarian notation, which … | |
Re: Maybe you need to clarify what you mean by Unix Time. AFAIK, time is time. What are the differences you know that we don't? | |
Re: [QUOTE=Liuhh00;]hey everyone on Daniweb, I'm liuhh00 in need of some dire suggestions for my program. I can't seem to solve why my program is not working right after i select my choice for case. The program is suppose to accept any 20 random integers, store them and allow the user … | |
Re: If it compiles 'perfectly' the files are in the proper folder. You should usually assume on a perfect compile that the error is with code, not the compiler. After you enter a number, why shouldn't the program end? What statements are there to keep the program running? I believe the … | |
Re: [QUOTE=ThatGuywithCode;]The code below takes an entered infix and converts it into a postfix but I don't know how to take that postfix and evaluate it. Every single tutorial I've seen evaluates a postfix entered directly instead of a infix, so I have no clue what to do. [/QUOTE] I don't … | |
Re: And please don't yell at us. | |
Re: [QUOTE=mc3330418;]What is the purpose of function with nothing in the parentheses? Like this something(). [/QUOTE] Many times the function is for input, and it simply returns the data entered (getchar() for example) Other times it can load your class data from values saved on disk, for initialization or returning to … | |
Re: [ICODE]mi=forwardname.substr(space1pos+1,space2pos);[/ICODE] is your culprit. Is the 2nd parameter the ending location or is it number of characters? | |
Re: [b][boilerplate_help_info][/b][code] Posing requests for help must be well thought out if you want help quickly and correctly. Your post did not meet the criteria for quality help. You may get some posts, but are they going to be useful? Check your post with these checkpoints - what is it [i]you[/i] … | |
Re: You should be talking to a lawyer. We aren't qualified for legal advice. | |
![]() | Re: [QUOTE=ardav;]What do you think? ;)[/QUOTE] I think ... you're letting your 3-year-old daughter answer the question! She's prob'ly smarter than any ol' bot anyway! |
Re: Don't us [B]char[/B], use [B]string[/B] | |
Re: [QUOTE=clorofaysal;]hello everyone, can anyone suggest me any software that is portable in pen-drive and c++ program can run in pen-drive.[/QUOTE] I carry [url=https://downloads.embarcadero.com/free/c_builder]Borland 5.5[/url] with me. | |
Re: Please fix your formatting. Explain "[I]not giving the correct answers[/I]". We aren't psychic. | |
Re: [QUOTE=r_k_k;1696938]is this program correct????????[/QUOTE] Does it give you the correct answer? | |
Re: [QUOTE=Vermouth;]I want to make a table like this: Seq. Name Class Seat VIP? Mileage(km) ==== =============== ===== ==== ====== ========== 1. Peter B 5A VIP 1046km 2. David F 1A VIP 2150km ...... Do I need to use for loop, strncpy to do so? Or do I need to use … | |
Re: How do poker hands help in a blackjack game? A royal flush would be busted after the third card and never get the other 2. | |
Re: I now pronounce you student and guru. You may now Genuflect toward the great VD. | |
Re: Major problem #1 Executable code does NOT go in a header file. They go in .C file Variable definitions do NOT go in a header file. They go in .C file I'd fix these items first. | |
Re: Get out some paper. Start by listing all the reasons why and why not do this task. Then if the why's win: Write down all the functions your system must have. List as many as feasible. Run through that list and choose 2-4 that are mandatory. List each of those … | |
Re: Put your cursor on the [B]Do While[/B] statement. Press F9 Run the program. When it stops, look a the values of the variables. Are they correct? If not, check to code to see why not, and hit STOP If so, < press F8, check variables, repeat > until you find … | |
Re: This is a forum of computer geniuses, not math geniuses. There is lots of help on the web to do what you want to do. | |
Re: [QUOTE=minghags;]Hello! I wanna ask you guys for help with this program. Here is my problem explanation: I want that user gives an input in the beginning of the program how big should tictactoe board would be. For example: input: 4 so board would be 4x4. Code of the current problem … | |
Re: Sounds like you need to learn some coding techniques. "[I]just throwing codes together[/I]" rarely results in a working program. And "[I]I believe I have the function that inputs the trapezoidal rule correctly[/I]" is also a recipe for disaster. If you don't... [code] Questions: 1) Can you solve the equations by … | |
Re: Does what you have work? That's your first step. Don't try writing the whole thing at once. Get [iCODE]LoadArray()[/iCODE] working well first. Output the entire array at the end of [iCODE]main()[/iCODE] And use CODE tags. | |
Re: Moved because it was completely unhelpful to the thread posted in, and really needs to be seen by as many people as we can manage -- esp. those that hire programmers. | |
Re: No. We have a 1 in 50 chance of picking the correct line the error is on. | |
Re: Don't know. You didn't tell us. | |
Re: Thanks to your formatting your code is extremely difficult to read. I can't even find [I]FindDaysOver()[/I] [url=http://www.gidnetwork.com/b-38.html]Reformat using this link[/url] and repost. | |
Re: The first index needs to be specified: [iCODE]string catalog[5][] = {... [/iCODE] | |
Re: [QUOTE=annette123;]How do I modify the CreateProcess function to create multiple processes and have them run at the same time? [/QUOTE] Contact microsoft and ask them for the source code to [I]CreateProcess[/I] so you can modify it. Of maybe you can use [I]CreateProcess[/I] 10 times? | |
Re: [QUOTE=timetraveller92;]You can remove the define and replace the word NUMBERS with 5 through out program to make it purely for evaluating lowest of 5[/QUOTE] :icon_rolleyes: Yes you can. But going from a useful, good coding practice that makes further development easy to hardcoded, poor coding practice that makes further development … | |
Re: Try reading each character instead of the whole line. Then when you read the | or \n you can do your special magic. | |
Re: Make 2 IF statements so it's more readable. [ICODE]If month { if day }[/ICODE] Or put the number of days in an array and a simple [CODE]if (d <= MonthDays[m])[/CODE] makes the job painless and readable. | |
Re: Do you know how to 1) check if a value is even or odd? 2) check if one value is < or > the next number? 3) move through an array from one number to the next? | |
Re: [b][boilerplate_help_info][/b][code] Posing requests for help must be well thought out if you want help quickly and correctly. Your post did not meet the criteria for quality help. You may get some posts, but are they going to be useful? Check your post with these checkpoints - what is it [i]you[/i] … | |
Re: [QUOTE=sethii;]Hi everyone![/quote] Hi there!!! [QUOTE=sethii;]This is my first post and ...[/quote] Really? I wondered what that [B]1 posts[/B] meant under your name! How 'bout that! [QUOTE=sethii;]... i'm also a newbie so don't be harsh on me![/quote] Why not? If your question is lame you deserve it. If your question is … | |
Re: that all depends on what the errors are since you didnt bother to tell us what they are we dont know what to look for you cant just drop code on us an say fix it you have to xeplain what the problems are because we arent compilers were human | |
Re: Yes. Search the web for "VB6 autofill" and you should find some examples. It's relatively complicated. | |
Re: [QUOTE=Aghtar;]Hello again. Well, I've been trying to get this to work, and I finally was able to combine two functions into one, [/quote] Why would you want to do that? Each function had it's individual purpose - leave it at that. A function should do one thing. In your case, … | |
Re: And is this abominable code useful in some way? Other than to show how not to code? | |
|
The End.