Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+4
Strength to Decrease Rep
-1
93% Quality Score
Upvotes Received
11
Posts with Upvotes
11
Upvoting Members
9
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
2 Commented Posts
1 Endorsement
Ranked #857
Ranked #1K
~34.2K People Reached
Favorite Tags
c++ x 17
php x 10
c x 6
type x 2
Member Avatar for noorullah06

The first thing that I would suggest is for you to use some comments stating what everything is and what is is supposed to do and maybe some pre and post condition statements around the class methods. Look, I don't want to do your assignment or anything, but here is …

Member Avatar for tinstaafl
0
4K
Member Avatar for Jamblaster

I think I have the answer to this: First you get a self proclaimed expert who says it is absolutely wrong to ask for other people to write code for you (a la iamthewee) in this discussion here--> http://www.daniweb.com/software-development/cpp/threads/467572/question-a-car-class Then you find this self proclaimed expert begging for other people …

Member Avatar for diafol
1
376
Member Avatar for saja.omarii.7

I'm sure that when you get a job as a programmer your boss will be really glad that you know how to use Google, but I don't know how happy he's going to be that you can't write a program to save your life...

Member Avatar for Jamblaster
0
335
Member Avatar for qhweeman

What you really want to do is to use functions to perform your processing or classes (but function are really more appropriate here). The prototypes might look something like this: void get_user_input(void); void get_sum(int*, int*, int*); void get_average(int*, int*, int*); void get_product(int*, int*, int*); void get_smallest_and_largest(int*, int*, int*); You could …

Member Avatar for Jamblaster
0
163
Member Avatar for Mr.M

Not to be judgemental or anything, but this subject interested me so I did a short search on it and I found multiple ways using system information files and registry techniques to do just this thing--and it took me maybe a couple minutes to find the information... I can tell …

Member Avatar for Mr.M
0
202
Member Avatar for Dannyo329

When using cin and cin.getline() together the order is important because the '\n' character can sometimes make input skip. Here is a simple example of how you could use them together in the right order and with clearing '\n' so it doesn't get in the way: #include "stdafx.h" #include <iostream> …

Member Avatar for Jamblaster
0
2K
Member Avatar for nadiam

echo ("<b>Your Total Income is $dtotal</b>"); <!--here you have a typo--> $dtotal is undefined, $total is defined. If you fix that one typo it might fix the problem.

Member Avatar for nadiam
0
393
Member Avatar for catastrophe2

Ok, here is what I see. I see that you have worked hard on developing this program,but there is something I don't understand. In your function--> int openFile(File1, File2, File3) I see that you test if 3 files were open after the function returns to main, but what I see …

Member Avatar for catastrophe2
0
223
Member Avatar for Jamblaster

I have been reading about exec() and passthru() and system() and different ways to use these, but so far not one of them is working. The Closest I have gotten is to get a request from CMD printed up on the page and so I researched how to pass a …

Member Avatar for Jamblaster
0
7K
Member Avatar for jalpesh_007

If you have a working SMTP email server installed on your web-server then you can use a simple PHP function to send mail: mail($to, $subject, $body, $headers); Headers are optional, but if you want to use them you prepare the $headers variable like this: $headers = "From: Example@Email.com \r\n"; $headers.= …

Member Avatar for Jamblaster
0
322
Member Avatar for smitty68503

If you post your actual code it would make it a lot easier to understand what your problem might be.

Member Avatar for raidenx44
0
338
Member Avatar for sanjit.dasgupta2

Something like this maybe: // right where you collect option the first time put this cin >> option; option = tolower(option); while(option != 'c'){ } // right above return 0; you put this to close the while loop I don't know if that is exactly what you're looking for, but …

Member Avatar for sanjit.dasgupta2
0
1K
Member Avatar for Saboor880

I learned the basics from a book called Microsoft Visual Basic 2010 Comprehensive. It doesn't teach you anything really interesting, but it teaches you the important basics of using VB.NET within Visual Studio--so you could learn about both at the same time using that book.

Member Avatar for Deep Modi
0
375
Member Avatar for Pranshu_1

What to do is to post the code here so people can view it instead of linking to external resources.

Member Avatar for deceptikon
0
194
Member Avatar for lehlohonolo.mohaila

I know that I worked (and still do) very hard to learn how to code a program from requirements and I feel like some of the other posters above that people who REFUSE to even try to learn to write a simple program shouldn't be getting any kind of programming …

Member Avatar for happygeek
-1
388
Member Avatar for tqmd1

The code from Bachov Vargese above is correct, except you don't use quotes around numeric input to databases and that is probably where the error came from: I took the quotes off from around the number 18 and that should fix it. With '18' you are telling SQL to look …

Member Avatar for Jamblaster
0
273
Member Avatar for Prathibha K G

If you want multiple radio buttons to work together (user can only select one at a time) then you have to give all of them the same name like so: print "<input type='radio' name='Choices' value='$value1'>".$value1."</input><br />"; $value2=$row['choiceB']; print "<input type='radio' name='Choices' value='$value2'>".$value2."</input><br />"; $value3=$row['choiceC']; print "<input type='radio' name='Choices' value='$value3'>".$value3."</input><br />"; …

Member Avatar for mchourishi
0
106
Member Avatar for sris20013

Just an observation...you do realize that a very useful and well defined string class already exists and you can include it in your program with #include <string> (if you want to use a string class...).

Member Avatar for Jamblaster
0
128
Member Avatar for uswer

Most of the people on here could easily help you with this, but you need to show some initiative and actually write some code that we could look at and help you with. I don't know your level of skill, but this program is a very, very, simple one. Step …

Member Avatar for Jamblaster
0
161
Member Avatar for PulsarScript

Here's a hint at a simple way to print out multiple lines with different things using conditions. I didn't want to do the assignment for you--you have to figure out what to put in each for statement, but maybe this hint can help you see the basic structure you might …

Member Avatar for darkfire3133
0
190
Member Avatar for decade

Here is the solution to your problem. First, to solve the conundrum presented by DDanbe, you need to use a MaskedTextbox and set a custom mask using as many numbers and you want on the left then a decimal point and then as many as you want on the right. …

Member Avatar for decade
0
3K
Member Avatar for Ng

You need to add a variable to hold a temporary best score with a default value and then test against that each iteration like this: #include <stdio.h> main() { int GusNum,TotalNum,BesSor,a; char again; // a variable to hold the best score int BEST_SCORE = 10; // Variable to hold fewest …

Member Avatar for Jamblaster
0
225
Member Avatar for Heather_1

For floor as Integer = 1 To MAX_FLOOR MAX_FLOOR Doesn't have a value so that loop will never execute. You never set the value for MAX_FLOOR anywhere. After this line--> richtextbox1 = InputBox("Enter the number of rooms occupied.", "Floor: " & intCount) Place this line--> MAX_FLOOR += 1

Member Avatar for Jamblaster
0
427
Member Avatar for DanielTradeWs

You have nothing wrong with your code that I can find. I copy/pasted your code and changed the connection string to connect to .accdb instead of .mdb and it ran perfectly. I created quick test Db and a windows form with just the 1 button and it ran. Below is …

Member Avatar for DanielTradeWs
0
322
Member Avatar for Jun Bryan

Your spaces are disapperaring because you aren't using an input method that grabs a whole line and stores it (like getline(cin, <string>), for instance). Maybe you could also just use the string class instead of C-strings because they make so much more sense and are so much more useful in …

Member Avatar for Ancient Dragon
-1
138
Member Avatar for pro_student

Read the exact specifications of the assignment--what has to be done (methods) what has to be tracked/stored (instance variables) and create the classes with the variables and the methods to perform the required processing. It looks to me that you are on the right track and all you really need …

Member Avatar for pro_student
0
281
Member Avatar for joester007

I'm not sure exactly what you're asking, but if you wanted to click a button with a sub procedure or function or another event handler, or whatever, then you need to use the Object.PerformClick() procedure. Let's say that you have a button called btnStart and you want it to click …

Member Avatar for tinstaafl
0
184
Member Avatar for Yorkiebar14
Member Avatar for Jamblaster
0
782
Member Avatar for spac

For something like this with a pre-determined number of guesses and a sentinel value (Correct guess exits) you would want to use a do-loop while(X <=10 And Correct = False) You would declare X prior to the loop as an Integer with a value of 0 and Correct prior to …

Member Avatar for Jamblaster
0
257
Member Avatar for Jamblaster

I am having a problem getting this code to work in deleting records from a database. The path to the database is correct and I have another couple of event handlers that work fine using this same datbase so I know that the path to the Db is good. Any …

Member Avatar for Jamblaster
0
176