5,676 Posted Topics

Member Avatar for baby_c

See: [url=http://www.gidnetwork.com/b-57.html]this[/url] [url=http://www.gidnetwork.com/b-62.html]this[/url] [url=http://www.gidnetwork.com/b-56.html]this[/url] and [url=http://www.gidnetwork.com/b-66.html]this[/url]

Member Avatar for WaltP
0
218
Member Avatar for yozzie

Is there anywhere in your problem description that states you [I]must[/I] save each input somewhere?

Member Avatar for yozzie
0
2K
Member Avatar for seanman13579

And what is [iCODE]if (pos=str.find("<" && ">",pos+1)) [/iCODE] supposed to do? You said "[I]My problem is it is not working right[/I]" which is fine but tells us absolutely nothing. So I waited with bated breath for what it was doing wrong. All I got was "it seems to be here". …

Member Avatar for WaltP
0
2K
Member Avatar for plang007

As you show the number of birds, add the number to a running total, like [iCODE]totlaBirds += numberOfBirds[/iCODE] Be sure to zero the total before starting.

Member Avatar for plang007
0
247
Member Avatar for johann26

My psychic powers aren't working well. The problem I got was it made the coffee too bitter.

Member Avatar for abhimanipal
0
95
Member Avatar for joru819
Member Avatar for biancaW

Look at the [B]hint[/B] and rewrite your input functions first. Where did you find the second code?

Member Avatar for abhimanipal
0
197
Member Avatar for lil_miss_choc
Member Avatar for lalala423

[QUOTE=lalala423;]PLEASE HELP! [/quote] Don't shout. We can hear you! [QUOTE=lalala423;]I don't know what to do for main.cpp.. [/quote] Function call that solve the problem. Loops to go through the matrix... IFs to test the return values from the calculation with the greatest sum found so far. No file access at …

Member Avatar for pseudorandom21
0
165
Member Avatar for Kirbyzdashiznit

Print out your values in [iCODE]main()[/iCODE] between your function calls. See where the values become bad.

Member Avatar for chrjs
0
409
Member Avatar for j23
Member Avatar for oybek

[QUOTE=oybek;]Hi guys, I'm not good at programming so would you help me with this?! No fancy codes, just make it simple.[/QUOTE] So you want us to provide you with the answer to this program? Just make it simple. Is that correct?

Member Avatar for oybek
0
164
Member Avatar for Lokril

I'd be willing to help if I could read your code. You need to [url=http://www.gidnetwork.com/b-38.html]format it[/url] so all of us can see what you are doing -- including you.

Member Avatar for WaltP
0
2K
Member Avatar for sms5660

It's easiest to help you if you attempt to write [I]option1()[/I] and if it doesn't work post [I]that[/I] code. Then we can see what you tried and explain how to fix it.

Member Avatar for sms5660
0
134
Member Avatar for debasisdas

Asking a question on a Forum does not give you the right to a perfectly coded answer to your question.

Member Avatar for VernonDozier
0
203
Member Avatar for Veneficvs

[QUOTE=Veneficvs;1520147]Thank you very much, sir! But how do I rotate to the right k positions, please? From what I see there, it rotates it to the left one time. Thanks.[/QUOTE] So do it [B]k-1[/B] more times -- use a loop.

Member Avatar for vijayan121
0
2K
Member Avatar for TheDocterd
Member Avatar for alex1050

[QUOTE=alex1050;1519879]yeah triumphost thats what im trying to do...how can i achieve this?[/QUOTE] You [B]are[/B] allowed to read more than just the last post. [B]Arbus[/B] gave you the solution.

Member Avatar for alex1050
1
281
Member Avatar for gaurav_13191

Since your nodes don't store the parent, about the only thing you can do is read all the nodes and look for your current node in the children pointers. IMO, you need to modify your node structure to add the parent node since you are traversing up the tree.

Member Avatar for thekashyap
0
426
Member Avatar for swathys

The only thing I did not see in this thread is: Use the [ICODE]difftime()[/ICODE] function check the time difference. But what I do see is a lot of help given and no attempt, only attitude, from the person asking for help. Please reread this thread and try using the help …

Member Avatar for swathys
0
352
Member Avatar for manofhouse

[QUOTE=manofhouse;1519722]yea i know but unfortunately its a requirement to check both[/QUOTE] No, it's a requirement to [B]have[/B] a check for both. It's not a requirement to continue checking after a failure as [B]Vernon[/B] suggests.

Member Avatar for WaltP
0
467
Member Avatar for uditjindal

[url=http://www.gidnetwork.com/b-38.html]Format your code[/url] so we can follow it. Then tell us what's happening, don't make us guess.

Member Avatar for abhimanipal
0
145
Member Avatar for codeyy

It looks to me like everyone miss this line in your instructions: [QUOTE=codeyy;]train construction commands from standard input (i.e. just use [B][COLOR="Red"]read[/COLOR][/B]).[/QUOTE] Your instructor told you what command to use for input, didn't he? I agree [iCODE]fgets()[/iCODE] is better. Then again, maybe he meant it only as an example.

Member Avatar for Adak
-1
562
Member Avatar for shyla

where did you follow the [I]hint: use an integer array of size 128 and use the ASCII values of letters to index into the array to store and retrieve counts for the letters[/I]? By not using the hint, your code is much larger than it needs to be.

Member Avatar for shyla
0
1K
Member Avatar for hawita

You posted Code that makes no sense at all. [CODE] 1) Output a message 2) define a string variable 3) Sort nothing since all you did was declare a variable 4) declare a prototype for a non-existant function 5) start a loop the a) inputs a string b) outputs the …

Member Avatar for hawita
0
138
Member Avatar for Bedo

That's because [iCODE]if ( time1 != 'p' || time1 != 'a' )[/iCODE] is always FALSE. Write out a truth table for your comparison.

Member Avatar for WaltP
0
84
Member Avatar for bigwhiteegg
Member Avatar for bigwhiteegg
0
91
Member Avatar for daniaed

You're welcome. But for what I don't know. It's hard to answer your question since you didn't ask one.

Member Avatar for WaltP
0
114
Member Avatar for ITKnight

I use [iCODE]instr()[/iCODE], [iCODE]mid()[/iCODE], [iCODE]right()[/iCODE], and [iCODE]left()[/iCODE]

Member Avatar for ITKnight
0
211
Member Avatar for alex1050

Interesting post. You might want to work on your [url=http://www.gidnetwork.com/b-38.html]formatting[/url], though. It's inconsistent.

Member Avatar for alex1050
0
85
Member Avatar for rbduck09

[QUOTE=rbduck09;1517338]I made the report header in the printHeaderInformation function what I don't understand is the instructions to create the table for the amortization[/QUOTE] That statement makes no sense. You wrote all that code and don't know how to output the data from it? I guess you need to give a …

Member Avatar for WaltP
0
141
Member Avatar for tricket_7

[QUOTE=tricket_7;1516863]I am working on a rainfall program that will ask the user to enter the total rainfall for each month, then will calculate the total rainfall for the year, the average monthly rainfall and is supposed to display the month names for the highest and lowest month. I have everything …

Member Avatar for tricket_7
0
653
Member Avatar for happygeek
Member Avatar for cse.avinash

[QUOTE=cse.avinash;]There is some error, due to which I am getting wrong answer.[/QUOTE] 1) If "[I]there is some error[/I]" then you have a mistake. We are not psychic. What's the error? 2) [url=http://www.gidnetwork.com/b-38.html]Format your code[/url]. We can't help you if we can't follow the code.

Member Avatar for mitrmkar
0
1K
Member Avatar for Smartflight

The [I]time()[/I] function is not used by the [I]rand()[/I] function. It's only a way to seed the [I]srand()[/I] function with a different value every time it's called. [I]rand()[/I] returns a value from 0 to RAND_MAX (32767 on many systems).

Member Avatar for Smartflight
0
267
Member Avatar for diedie

[QUOTE=diedie;]I ask a user to input {2 + (3-6) * 8} as a string. then I want every each of the string in array : ar[0] = { ar[1] = 2 ar[2] = + ar[3] = ( and so on until } how do I implement this in c++?[/quote] Every …

Member Avatar for WaltP
0
186
Member Avatar for Dexxta27

Also, one of your [iCODE]do-while[/iCODE]s is testing [B]repeat1[/B], but the variable is never set nor read. It contains garbage.

Member Avatar for Dexxta27
0
151
Member Avatar for alex1050

These are questions for you to consider, not to tell me: Where do you ask for YES or NO? Where do you accept the answer? Into what variable? Where is the end of the loop that requires the answer? What makes it continue/exit? Do all these lines make sense in …

Member Avatar for alex1050
0
221
Member Avatar for Giorgio33

In order to get help, you need to ask a question, not just post code and hope we can figure out [B]if[/B] there's an error and what it might be..

Member Avatar for WaltP
0
91
Member Avatar for ben25x
Member Avatar for d_panayotov

You didn't pass your file pointer into [iCODE]fn_out()[/iCODE]. You created another one which was destroyed when the function ended. Pass [I]fp[/I] into your open function. Also, [url=http://www.gidnetwork.com/b-62.html]see this[/url] about [iCODE]scanf()[/iCODE] and [url=http://www.gidnetwork.com/b-57.html]this[/url] about [iCODE]fflush()[/iCODE]

Member Avatar for d_panayotov
0
172
Member Avatar for naseerhaider

That's pretty much it, except 1) [ICODE]main()[/ICODE] is an [B]int[/B], so always use [ICODE]int main()[/ICODE]. 2) Watch your [url=http://www.gidnetwork.com/b-38.html]formatting[/url]. Be consistent. This section [code] while ( i <= num ) // factorial { result *= i ; i++ ; } cout << num << " ! = " << result …

Member Avatar for naseerhaider
0
176
Member Avatar for DaniwebOS

[QUOTE=DaniwebOS;]I'm getting a LN2019/LN1120 error, and I have no clue why... any suggestions?[/quote] My guess if you did something wrong somewhere in that 100 lines of code that the compiler didn't like and it gave you a cryptic error message that no one understands because we aren't compilers. Try posting …

Member Avatar for Ancient Dragon
-1
137
Member Avatar for gruffy321

Peeps? :icon_rolleyes: [url=http://lmgtfy.com/?q=C+printf]Try This[/url] and [url=http://lmgtfy.com/?q=+scanf]This[/url]

Member Avatar for gruffy321
0
211
Member Avatar for rbduck09

Look carefully at the parameters being passed to the print function. They are incorrect.

Member Avatar for rbduck09
0
1K
Member Avatar for Ezzaral

Out with the Bad Blud, in with the good -- no wait, that's not right...

Member Avatar for WaltP
0
107
Member Avatar for AODfan

[code] void PartA(); // These are function prototypes, void PartB(); // which is good and proper. void PartC(); void PartD(); void PartE(); void PartF(); void PartG(); void PartH(); int main() { FileOut.open ("o:\\Answers2.txt"); void PartA(); // These also are function prototypes, void PartB(); // not function calls void PartC(); // …

Member Avatar for WaltP
0
120
Member Avatar for beejay321

You are making it hard on yourself. The board should be 4x4 because those are the playing positions. On output you should add the borders. That would alleviate all the checking to see if you are going to trash a border or not.

Member Avatar for WaltP
0
861
Member Avatar for PM312

[QUOTE=shonen;1515372]i have d same problem. [/QUOTE] If you have the same problem, read this thread. It's marked [I]solved[/I] so the solution has been found.

Member Avatar for WaltP
0
570
Member Avatar for rp45

[QUOTE=rperez3;]Hello, I just joined this web site and i'm new to programming and i'm stuck on this program, can't seem to finish it, after couple of days of trying to figure this program out, i realize i need help. The program is pretty much done i just don't know where …

Member Avatar for VernonDozier
0
95

The End.