- Strength to Increase Rep
- +4
- Strength to Decrease Rep
- -1
- Upvotes Received
- 11
- Posts with Upvotes
- 11
- Upvoting Members
- 9
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
Re: 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 … | |
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 … | |
Re: 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... | |
Re: 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 … | |
Re: 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 … | |
Re: 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> … | |
Re: 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. | |
Re: 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 … | |
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 … | |
Re: 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.= … | |
Re: If you post your actual code it would make it a lot easier to understand what your problem might be. | |
Re: 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 … | |
Re: 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. | |
Re: What to do is to post the code here so people can view it instead of linking to external resources. | |
Re: 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 … | |
Re: 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 … | |
Re: 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 />"; … | |
Re: 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...). | |
Re: 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 … | |
Re: 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 … | |
Re: 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. … | |
Re: 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 … | |
Re: 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 | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: To find the desktop you could use the my namespace. My.Computer.FileSystem.SpecialDirectories.Desktop | |
Re: 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 … | |
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 … |