5,676 Posted Topics

Member Avatar for Kirbz

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

Member Avatar for WaltP
0
287
Member Avatar for begyu

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

Member Avatar for WaltP
0
155
Member Avatar for ~s.o.s~

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

Member Avatar for Dani
2
358
Member Avatar for TheOnlyRoss

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

Member Avatar for TheOnlyRoss
0
2K
Member Avatar for pato wlmc

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

Member Avatar for Tumlee
0
5K
Member Avatar for Zssffssz

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?

Member Avatar for vijayan121
0
885
Member Avatar for Liuhh00

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

Member Avatar for D33wakar
0
127
Member Avatar for Unethikal

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 …

Member Avatar for WaltP
0
285
Member Avatar for ThatGuywithCode

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

Member Avatar for WaltP
0
231
Member Avatar for B031110034
Member Avatar for mc3330418

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

Member Avatar for WaltP
0
144
Member Avatar for SmokeyCannon71
Member Avatar for jefgreen

[ICODE]mi=forwardname.substr(space1pos+1,space2pos);[/ICODE] is your culprit. Is the 2nd parameter the ending location or is it number of characters?

Member Avatar for WaltP
0
99
Member Avatar for pratik sagar

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

Member Avatar for hkdani
0
193
Member Avatar for Azmah
Member Avatar for Azmah
0
297
Member Avatar for diafol

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

Member Avatar for jonsca
0
551
Member Avatar for Kyle Willett
Member Avatar for clorofaysal

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

Member Avatar for cossay
0
142
Member Avatar for lbgladson

Please fix your formatting. Explain "[I]not giving the correct answers[/I]". We aren't psychic.

Member Avatar for Schol-R-LEA
0
6K
Member Avatar for r_k_k

[QUOTE=r_k_k;1696938]is this program correct????????[/QUOTE] Does it give you the correct answer?

Member Avatar for WaltP
0
223
Member Avatar for Vermouth

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

Member Avatar for WaltP
0
141
Member Avatar for jlake

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.

Member Avatar for WaltP
0
207
Member Avatar for JayBaron
Member Avatar for zeroliken

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.

Member Avatar for zeroliken
0
501
Member Avatar for tunde011

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 …

Member Avatar for TrustyTony
0
139
Member Avatar for thetechlady21

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 …

Member Avatar for WaltP
0
181
Member Avatar for geeknick

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.

Member Avatar for WaltP
0
114
Member Avatar for minghags

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

Member Avatar for WaltP
0
1K
Member Avatar for MrNo

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 …

Member Avatar for N1GHTS
0
1K
Member Avatar for Sluazie

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.

Member Avatar for WaltP
0
124
Member Avatar for timetraveller92

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.

Member Avatar for WaltP
-2
190
Member Avatar for PrimePackster

No. We have a 1 in 50 chance of picking the correct line the error is on.

Member Avatar for PrimePackster
0
103
Member Avatar for ERINY
Member Avatar for wmurrow

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.

Member Avatar for WaltP
0
148
Member Avatar for kcp
Member Avatar for xsharpx

The first index needs to be specified: [iCODE]string catalog[5][] = {... [/iCODE]

Member Avatar for amt007kmr
0
110
Member Avatar for BoBok2002

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

Member Avatar for vijayan121
0
3K
Member Avatar for klimburt

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

Member Avatar for lokeshg
0
302
Member Avatar for doomsday1216

Try reading each character instead of the whole line. Then when you read the | or \n you can do your special magic.

Member Avatar for WaltP
0
169
Member Avatar for happikoto

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.

Member Avatar for WaltP
0
199
Member Avatar for amitshree
Member Avatar for az.rathore

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?

Member Avatar for WaltP
0
1K
Member Avatar for phorce
Member Avatar for zeus god

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

Member Avatar for YAMNA MIDHAT
0
240
Member Avatar for sethii

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

Member Avatar for YAMNA MIDHAT
0
228
Member Avatar for YAMNA MIDHAT

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

Member Avatar for YAMNA MIDHAT
0
166
Member Avatar for jadzrev13

Yes. Search the web for "VB6 autofill" and you should find some examples. It's relatively complicated.

Member Avatar for WaltP
0
134
Member Avatar for Aghtar

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

Member Avatar for MandrewP
0
1K
Member Avatar for compzets
Member Avatar for thines01
0
171
Member Avatar for jnmisa

The End.