5,676 Posted Topics

Member Avatar for HIT_Braga

Sure. Write some code, try to do what you are asked to do. And if it doesn't work, post it here and explain as much as you can about what you did and what went wrong. Don't forget to follow the Member Rules.

Member Avatar for WaltP
0
82
Member Avatar for dumbncool
Member Avatar for alfroad
Member Avatar for dola91raw

I assume your question is still sorting? I don't see any attempt so it's hard to know what you're having trouble with. Start with a basic pencil & paper solution. Write down these numbers. 5, 32, 12, 8 Step by step, how do you sort them if they were on …

Member Avatar for WaltP
0
69
Member Avatar for softapu

Of course you can access a CD drive with C. Floppy, too. If you're having trouble with a floppy, you're probably just doing it wrong.

Member Avatar for mcodesmart
-1
103
Member Avatar for Soileau

Here you go: [url=http://www.gidnetwork.com/b-59.html]Why [ICODE]scanf()[/ICODE] is bad[/url] If you haven't been taught anything but [ICODE]scanf()[/ICODE], you must live with its idiosyncrasies until you are taught something better. Bulletproofing input is not trivial and you don't seem to be ready for it's complexities. Give it a few weeks.

Member Avatar for Dave Sinkula
0
4K
Member Avatar for matharoo

Read the input as a string and test each character to make sure it's in the proper format [iCODE]nn:nn[/iCODE]. Then convert the numbers.

Member Avatar for WaltP
0
227
Member Avatar for syue87

Would you care to explain the problem? Explain [B]==[/B] good description with plenty of details Explain [B]!=[/B] vague description with no useful information

Member Avatar for WaltP
0
3K
Member Avatar for dinamit875

[QUOTE=dinamit875;1147418]Hi everyone, I have written a program here about customers, it works fine so far, but I am having a problem with getting customer details, for example, when I enter customer name, age...etc, it saves this info into a customer.txt file, I can see this information until I exit the …

Member Avatar for WaltP
0
130
Member Avatar for chubkakes1

Look carefully at your IF statements. Are your comparison operators correct? Also, [url=http://www.gidnetwork.com/b-38.html]format your code[/url]. you'll need to if you want to keep posting because if we can't follow your code, we can't help.

Member Avatar for WaltP
0
146
Member Avatar for jose385

How can it be hard? [code] Loop I from 1 to N Loop J from 1 to I Print * Print \n [/code]

Member Avatar for jephthah
0
302
Member Avatar for JdTSC

Look at the [iCODE]MsgBoxStyle.xxx[/iCODE] value from the parameters and show the buttons specified.

Member Avatar for JdTSC
0
112
Member Avatar for goodeye28
Member Avatar for lexeroni
Member Avatar for CreativeCoding
0
123
Member Avatar for wilko1995

#1) Use better variables: PswdIn, Pswd, Name, NameIn would be much better. #2) Display the values before the IF statements to make sure they are the same.

Member Avatar for wilko1995
0
123
Member Avatar for nats01282

[B]kdcorp87[/B], use the preview button once in a while.... [QUOTE=nats01282;1154699]i have been told to use a do while loop instead of a goto statment,[/quote] That is an excellent suggestion. Although in some cases a [ICODE]while[/ICODE] loop would work, too. [QUOTE=nats01282;1154699]but when i run this program it goes through every loop …

Member Avatar for photoyid
0
103
Member Avatar for ravenrider

The executable files in these systems are different. They follow the conventions of the OS. That is why they are not interchangable.

Member Avatar for ravenrider
0
56
Member Avatar for Masterace

Of course it's possible. How can you keep track of the receipt number? Why are you starting a new thread? Did the other one get answered?

Member Avatar for WaltP
0
60
Member Avatar for Bart_sg

Also try [url=http://www.gidnetwork.com/b-38.html]formatting your code[/url]. With code this large, your inconsistent formatting makes the program almost impossible to follow.

Member Avatar for WaltP
0
71
Member Avatar for Mushy-pea
Member Avatar for WaltP
0
117
Member Avatar for sikeufoo

[QUOTE=sikeufoo;1155154]The highlighted part below is where the function located...Is there any problem with the input?[/QUOTE] I don't know. Does it work?

Member Avatar for WaltP
0
127
Member Avatar for ineedhelp:(

No, since you didn't bother to tell us anything. The code does [I]exactly[/I] what you told it to do, so it's working.

Member Avatar for mrnutty
0
122
Member Avatar for lionaneesh

[CODE] do { condition = fgets(save,30,reading); printf("\n%s",save); }while(condition != NULL); [/CODE] When you read the last part of the file, [ICODE]condition[/ICODE] is not NULL. It doesn't become NULL until you try to read [I]after[/I] you've reached the end. Now you have an error. But you output the last stuff read …

Member Avatar for Aia
0
130
Member Avatar for cyberguy007

No, you cannot use [iCODE]fread[/iCODE]. The proper answer to [B]gerard4143[/B]'s question was "[I]text[/I]", althought the proper question should have been "[I]Is the file a binary or text file?[/I]" Without knowing what actually happened using [i]fget[/i] (whatever that is) we can't really tell what you did wrong. Maybe you should try …

Member Avatar for WaltP
0
101
Member Avatar for sidhu51
Member Avatar for photoyid

[QUOTE=Fbody;1154601]Use in-code documentation. Pay closer attention to what you are doing. Think before you type. Remember your program's structure. Take notes. Take your pick.[/QUOTE] Actually, pick them [I]all[/I]. And heavy on [B]think[/B]. That's what the brain does best.

Member Avatar for WaltP
1
148
Member Avatar for munadel

As the code stands, I see nothing wrong with it. It does exactly what you told it to -- tells you if each of two values are in the proper order, and which values. If that's not what you want, you need to tell us more than "[I]what's wrong with …

Member Avatar for WaltP
1
111
Member Avatar for iamvish

Posting two threads on the same topic is not allowed. Please reread the Member Rules.

Member Avatar for WaltP
0
86
Member Avatar for richman0829

I suggest: [CODE]infile.open("C:\\pathnameToFile\\charsfile.txt", ios::in | ios::out);[/CODE] to make sure you can see the file during development.

Member Avatar for richman0829
0
159
Member Avatar for techie1991

Why is it new people always think that "something is wrong" is an explanation of the problem? If you take your car to get fixed, will "something is wrong" be enough for the guy to correct the problem? Details! What is wrong? What did you expect to happen? What [I]actually[/I] …

Member Avatar for WaltP
0
482
Member Avatar for smeghead007

Would you like to help pinpoint where the problem is a little closer than somewhere in 200 lines of code? And have you ever heard of periods? They are those little dots that end sentences. They are used to help others understand the written word so they don't have to …

Member Avatar for WaltP
0
105
Member Avatar for M.FARAG

Wouldn't a question to the folks that wrote the code yield better and faster answers? Just a thought...

Member Avatar for WaltP
0
112
Member Avatar for acemaster3

there is no reason for: [code] Enter artist name: Grateful Dead [B]Another artist? [/B](y,n): y Enter artist name: Lucinda Williams [B]Another artist? [/B](y,n): y Enter artist name: Third Eye Blind [B]Another artist? [/B](y,n): y etc. [/code] If the artist is not entered, assume that is the 'no'. All you need …

Member Avatar for WaltP
-2
179
Member Avatar for missmedude
Member Avatar for Robert1995
0
114
Member Avatar for BillWebber

Just look at the numbers already chosen and if the current value is a duplicate, choose again. This can be done in a loop. You might consider making [B]lblLotto[/B] a indexed value instead of separate values. This way you can set up a [B]for[/B] loop to load the numbers and …

Member Avatar for Kelbow-Mendes
0
2K
Member Avatar for kendricktamis
Member Avatar for WaltP
-2
123
Member Avatar for missmedude

[QUOTE=missmedude;1152991]I have having trouble with this problem. [/QUOTE] That happens a lot. [QUOTE=missmedude;1152991]Can you guys advise? [/QUOTE] Sure. Write the code correctly. [QUOTE=missmedude;1152991]I am not sure I am doing this right but this is what I have now. [/QUOTE] Neither do we, since we didn't write it. It looks like …

Member Avatar for WaltP
0
172
Member Avatar for Iam3R

You might want to state a clear question, not just a bunch of observations and things you've heard. It seems that the code you wrote answers most questions you might have.

Member Avatar for Salem
0
124
Member Avatar for tom23

Yes it is completely possible. First, stop flooding the forum with useless messages. When someone logs in that can answer the question, they will answer. No need to badger us when no one is logged on. Second, use sentences. Don't run all your sentences together. In order for us to …

Member Avatar for tom23
0
116
Member Avatar for bbrradd

So output the proper number of spaces before the *s You can obviously output the *s, just do the opposite for spaces.

Member Avatar for WaltP
0
126
Member Avatar for ahp@aol.in

Because [B]arr[/B] is not a pointer. It is the address of the array and you cannot change to it.

Member Avatar for ahp@aol.in
0
128
Member Avatar for lionaneesh

[QUOTE=rajendra.parmar;1152926]above programme is right, but you have to maintain the indentation in the programme.[/QUOTE] After you posted that unformatted code in another thread you have the gall to mention indentation here? Practice what you preach.

Member Avatar for WaltP
0
287
Member Avatar for micjan

[QUOTE=csurfer;1149812][B]@micjan : [/B][COLOR="Red"]Congrats you got the code !!! I certainly wish the two smart people above get you everything you want in your life[/COLOR][/QUOTE] Especially since both of them answered with terrible non-standard code, which makes the code dangerous to people's understanding of good code practices. Please ignore the code …

Member Avatar for WaltP
-3
123
Member Avatar for ETP

Or you could try reading the Member Rules, or the pertinent sticky posts at the top of the forum, like the post [B]Read This Before Posting[/B]

Member Avatar for WaltP
0
158
Member Avatar for lloydi12345

But what if there are SPACEs in the text box? How about using [iCODE]If trim(Text1.Text) = "" Then [/iCODE] to be sure.

Member Avatar for gms_019
0
195
Member Avatar for Menathradon

[QUOTE=Menathradon;1151947]Hello All, I seem to be having a relatively small problem with a Maze program I'm working on. Basically, I read a txt file containing a maze into a 12 x 12 2D array, but the problem is when I try to display it, none of the white spaces that …

Member Avatar for WaltP
0
2K
Member Avatar for ajjg123

With what? You haven't shown us anything we can help you with. Based on the info you've given, all we can do is write it for you.

Member Avatar for Lerner
0
147
Member Avatar for bluerosebuddha

Sit down with pencil and paper and execute the code a line at a time. Watch what values come up. That's the best way to understand anything.

Member Avatar for M.FARAG
0
149
Member Avatar for endframe

I don't see where you even [I]tried[/I] [B]Fbody[/B]'s suggestion [CODE] cout<<"Even numbers are:"; for (int i = 0; i < numberOfEvens; i++) { cout << " " << y.even[i]; } [/CODE] All you are doing is testing [B]i[/B] with a value in the array. That's never going to work. How …

Member Avatar for endframe
0
118
Member Avatar for theonlywalks

[QUOTE=theonlywalks;1151546]Hey everyone, I have a simple simple problem that is literally driving me insane. Basically, I have a database of numbers seperated my spaces. I just took a segment of my code because I am soooo completely lost with the output!! If the database is: 1 2 3 9 7 …

Member Avatar for Dave Sinkula
0
133

The End.