5,676 Posted Topics

Member Avatar for ZeQuia
Member Avatar for love_you_4rever
Member Avatar for WaltP
0
83
Member Avatar for nida.lodhi.7

getch() blindly gets a character. getche() echos the character. Both of which you would have been able to answer in seconds by trying them. But, avoid using them because they are not standard and are only supported in a couple compilers.

Member Avatar for manishanibhwani
0
142
Member Avatar for devender22

Probably because you are reading into a pointer but there is no storage space so you are overwriting some unknown memory you shouldn't be touching. When asking for help, be sure to give better detail. There are hundreds of "*runtime errors*". Which one? And what statement? And don't use anything …

Member Avatar for Ancient Dragon
0
122
Member Avatar for OurNation
Member Avatar for vinnitro
1
16K
Member Avatar for sozan.galal

Since you barely know C++, is it a good idea to start another language and leave C++? Why waste the last 7 months? Develop your skills.

Member Avatar for m4ster_r0shi
0
172
Member Avatar for love_you_4rever

Looks straight forward to me. It might help to explain what you don't understand.

Member Avatar for love_you_4rever
0
100
Member Avatar for userIT

> Given a 7x4 array generate four random numbers from the array with no repetition. Your code and your description don't match at all. Where is your 7x4 array? How do you "*generate four random numbers **from** the array*"? what's in the array?

Member Avatar for userIT
0
537
Member Avatar for dixit ankit

My guess is the problem wants you to create your own BigInteger program, not use a ready-made library. What do you actually learn by using someone else's code?

Member Avatar for WaltP
0
154
Member Avatar for Bumpehh

It's difficult. You have to understand how to design, store, and retrieve data from a database you design. I'd go with something like craps, tic-tac-toe, mastermind (also somewhat complex). A game that remembers a little bit of information but not too much.

Member Avatar for Bumpehh
0
740
Member Avatar for Squidge

Lucky you... It must be your signature 'cuz *IT Consultant* usually makes grls run away! ;-) Just report the spammer (as you did) and they will be banned.

Member Avatar for happygeek
0
135
Member Avatar for WhYuLoOkIn

First, [url=http://www.gidnetwork.com/b-38.html]format your code[/url] properly. What does your book/instructor say about a FOR loop and/or statement? What's it do? What does it execute? What does the program you wrote do? What does it not do?

Member Avatar for Namsisi
0
562
Member Avatar for kirenemook12

No, this is a help board -- not a teaching system. You'll have to do a lot of research on robot and firmware programming.

Member Avatar for mike_2000_17
0
274
Member Avatar for shkr

You don't. You parse a file by reading it and breaking the line read into fields. *Then* you can store it in your structure.

Member Avatar for Ancient Dragon
0
161
Member Avatar for amelia.rox

> I am so lost on what to do so please help how ever you can. > I must write a program to calculate the cost and time it takes to fill a swimming pool. Take each step and program it. Start with: > * Inputs: > Length, Width, and …

Member Avatar for WaltP
0
680
Member Avatar for sillyboy
Member Avatar for I_m_rude

They are incorrect. Anything that is "*compiler dependent*" should be avoided. As **deceptikon** said, it's *undefined*. Listen to experts, not friends.

Member Avatar for deceptikon
0
141
Member Avatar for funnyguy1

Format your code. Explain what? You didn't tell us anything we can explain.

Member Avatar for JasonHippy
0
2K
Member Avatar for abelingaw

> if(user=="abel" && pass=="pass") Look up how to compare strings again. You need to use `strcmp()` And remove your 2 `#define`'s. They make the code harder to understand, not easier.

Member Avatar for WaltP
0
149
Member Avatar for newbie14
Member Avatar for newbie14
1
2K
Member Avatar for WaltP

Can someone (Dani?) please reset my PM count to zero since I have no messages and its claiming I have 1?

Member Avatar for Ancient Dragon
0
218
Member Avatar for XodoX

I don't see why (nor how) semaphores would be used in this problem. My solution would have a 4-integer array representing the lanes which contains the number of customers in it. A loop looks at the values and finds the minimum value. That's your chosen lane.

Member Avatar for XodoX
0
115
Member Avatar for I_m_rude

> Companies always ask these tricky-defination type questions. They do? How many job interviews have you been on? Paraphrasing for ease of understanding: An expression is that portion of a statement that has operators (\*+-<> etc). A statement ends in ; There's more to it but that's what you can …

Member Avatar for I_m_rude
0
210
Member Avatar for techy23

>Like it's on fire. Covered with ants. Ants on fire. Roasted ants! Yummm!!!!

Member Avatar for WaltP
0
704
Member Avatar for laavanya
Member Avatar for rithish
0
144
Member Avatar for shankarz

Try outputting the values you input to see if they are correct. Since you are probably using, as **DeanMSands3** supposes, Turbo (I'm sure he's correct) find out what the *largest integer* is you can have in your compiler.

Member Avatar for I_m_rude
0
153
Member Avatar for techy23

> I have worked alot on graphics.h after including it in dev C++. in Dos Box your program will crash(without undefined reason) again and again(it is my personal experience). My brain hurts! 8(

Member Avatar for I_m_rude
0
1K
Member Avatar for newbie14

> We are capturing each network packet which is in this format. What format? A list of bytes is not a format... > The problem is that we would like to get the url if it exist in the packet in the form of http://...... ? What is the best …

Member Avatar for newbie14
0
180
Member Avatar for anallan

[QUOTE=alsoumhi;449323]please reply to me if it is correct or not[/QUOTE] Obviously not, since [B]Narue[/B] added the code tags for you. And you did not explain what your problem is. When someone suggests you read something, you should do it. Go back and read [B]Salem[/B]'s link -- and also read [url=http://www.gidnetwork.com/b-38.html]this[/url] …

Member Avatar for saurai3h
0
1K
Member Avatar for jmichae3
Member Avatar for jigar23

> a C file always require a main function to execute as in the case of multiply.c Take another look at **test1.cpp**. `main()` is right there! After changing **test.cpp** to **test.c**, add **multiply.c** to the compile line.

Member Avatar for jigar23
0
314
Member Avatar for techy23

> How to start... Same way you do with **any** program 1) decide what you want to make (without graphics) 2) write down how the game works 3) write down the steps it takes to play the game 4) expand each step until you can't expand it any more 5) …

Member Avatar for WaltP
0
419
Member Avatar for Geeksoftie

> find the min and max nodes a quad tree Are you missing a verb or something??

Member Avatar for L7Sqr
0
148
Member Avatar for gizmo7008

First off, you should use WHILE statements instead of FOR statements. You are not iterating through the string a set number of times, only until a specific condition is met. This will also let you process the string in 3 *distinct* segments: 1) find @ and end this loop 2) …

Member Avatar for gizmo7008
0
186
Member Avatar for Qonquest

> I can't find any information and how to return a string without using pointers. So use pointers.

Member Avatar for WaltP
0
181
Member Avatar for vijayabhaskar.chowdary

> What numeric system do you know where 1 + 3 = 5? It's obvious -- for large values of 1 & 3 and small values of 5! ;o)

Member Avatar for WaltP
-1
91
Member Avatar for Ian Woodgate

Are you kidding me??!!?? Forst of all, we don't write programs for people, we **help** them write their own. And the code: #define ODD(X) (X%2) // Why? This is just confusing when used main(nargs, args) // I haven't seen this MAIN signature since int nargs; // 1985! AFAIK, this has …

Member Avatar for profyou
0
136
Member Avatar for Dani

Actually, yeah, it probably matters in at least one case. If there were 1000 views with no responses, the OP will probably get upset that no one cares about him. Therefore, the number of views could make someone feel bad. Hence, number of views should be left in the bit …

Member Avatar for gerbil
0
206
Member Avatar for rithish
Member Avatar for Perry31

Think about how you want your breakpoint to work. What happens when the breakpoint is activated? What does the user get to do when your breakpoint is activated? How do you want to continue from the breakpoint? Figure out all the ins and outs of your breakpoint concept. Once you …

Member Avatar for Ancient Dragon
0
339
Member Avatar for dlmagers

When you enter a negative number, what do you do with it? You process it as if it was a salary. After RATE = 0.06, you loop back, to get a new salary, but RATE is still 0.06. Is this what you intended?

Member Avatar for dlmagers
0
197
Member Avatar for rithish

1) [void main()](http://www.gidnetwork.com/b-66.html) 2) [gets()](http://www.gidnetwork.com/b-56.html) 3) "*not producing correct output*" -- Can you be less vague? Direct answer: There's something wrong then.

Member Avatar for Sokurenko
0
228
Member Avatar for techy23

No idea what's **best**. That depends on what you like. And what you know. Since we are ignorant of both, what can we say? Craps is a game. So is Halo. Are they great? Depends.

Member Avatar for DeanMSands3
0
241
Member Avatar for rithish

>will this work sir???? What part of > you need to use an intermediate integer. > > int a,b,temp; > > temp = a > a = b > b = temp did you not understand?

Member Avatar for WaltP
0
103
Member Avatar for lil_bit

I'd also study about useful output messages: `Error deleting file` -- which file? `File successfully deleted` -- which file?

Member Avatar for mrnutty
0
211
Member Avatar for rithish
Member Avatar for Ancient Dragon
0
187
Member Avatar for tmunyemana

The code you claim is the problem certainly has a major problem: if ((i = 10) && (userGuess != RANDOM_NUMBER)){ This says: set i to 10 is i true? Yes, it's 10. It's ALWAYS true... Did you want, perchance, to *compare* **i** with 10???? ;-) Also, do you really want …

Member Avatar for WaltP
0
2K
Member Avatar for andy8521

> This programs seems to run perfectly fine. but there is a bug in the get_number function I tried to find for hours but I couldnt. The mind just boggles! >See if you guys can help me. Any help is greatly appreciated. Thanks We could, but you didn't give us …

Member Avatar for WaltP
0
164
Member Avatar for rosechen

And your [formatting](http://www.gidnetwork.com/b-38.html) makes the code very difficult to follow. Try a better fomrat and we can be much more helpful.

Member Avatar for WaltP
0
169
Member Avatar for nekoleon64

> I'm still doing arrays starting from beginning to better get used it it. Therefore **speakon**'s code violate your major parameter -- using arrays. **phani1092** actually has the answer with "*All you need to do is divide the program in two halves*". The rest of his post though goes off …

Member Avatar for WaltP
0
3K

The End.