- 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:
QUESTION: A CAR Class Write a class named Car that has the following member variables: year. An int that holds the car’s model year. make. A string that holds the make of the car. speed. An int that holds the car’s current speed. In addition, the class … |
|
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:
A palindrome is a word or sentence that reads the same forward as it does backward. Write C++ code that read string consist of 6 characters only and check if the string palindrome word or NOT. |
|
Re:
please help i would like to Write a program that inputs three integers from the keyboard and prints the sum, average, product, smallest and largest of these numbers. |
|
Re:
Hi Dw I've created a program which I don't want it to be visible by any means, I don't want it to be visible to people who will be using Group View tools to manage the computer, I want it to be like the windows system files which does not … |
|
Re:
I've been trying to fix a problem with getline() and cin.getline().Here's a example I've made and it still has the problem: [TEX]" No matching function to 'getline(std::istream&, char[100])' "[/TEX] Here's the code: [CODE] #include <iostream> #include <windows.h> #include <string> using namespace std; int main() { char name[100]; cout << "\nEnter … |
|
Re:
so i wanna echo a result from my database and i have successfully done that but im trying to place the result at a specific place on my page. this is the code if($result) { { echo "<div class='total'>"; echo "<b>Your Total Income is $total</b>"; echo "</div>"; } } and … |
|
Re:
hello we have to make a program that grades multiple choice exams from input files by the user and outputs the id of each student followed by their appropriate score. here are the input files: > exam file abcdefabcdefabcdefab 1234567 abcdefabcdefabcdefab 9876543 abddefbbbdefcbcdefac 5554446 abcdefabcdefabcdef 4445556 abcdefabcdefabcdefabcd where the first … |
|
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:
Hello, I am working on a project in php.Now i want to send a mail to any e-mail id. How can i send it? Is there any mail API for PHP there or not? because right now i am running project on localhost(for testing).After completion of it i will upload … |
|
Re:
I am currently working on a project that has a textbox I need to do a validation on. I want to actually do two validations: 1) Make sure it is an integer and 2) Make sure it is divisible by 10. I have done a lot of searching and have … |
|
Re:
I am using Turbo C++ 3.0. Things to be noted : 1.) I am very new to C++ 2.) I can only use the above said compiler. 3.) List, vector, functions, classes, file-handling, structures, templates and objects cannot be used in the program as per my assignment. Here's my Code: … |
|
Re:
I have been using Visual basic 6.0 for one year. 1-I want to know that what is difference between visual studio and vb 6.0? 2- What is difference between vb 6.0 and vb.net? 3- Now i want to use vb.net. So tell me how can i install vb.net? and from … |
|
Re:
I'm getting an error X#=0D,CS=0A97 IP=000001D1.The NTVDM CPU has encountered an unhandled exception . I wrote exactly the same program, but still i'm getting an error! Can you please tell me where the error has occured? Because i'm not able to find out! I'm Using Windows 7. http://www.4shared.com/file/xvAIAHNz/TELEPHON.html http://www.4shared.com/file/2SOg9Kqs/TELEPHON.html This … |
|
Re:
write c++ code that has a function int GreaterThan (int array [], int size, int searchItem). The fucntion should count and return number of elements in the array greater than SearchItem. you are free to generate the element randomly or let the user enter them, the size must be less … |
|
Re:
Dear Sir, I have following codes to save record in MySql. <?php include("connect.php"); $insert_query = "INSERT INTO ghee (sno,pack,weight) VALUES (18,'kk',80)"; $insertion_result = mysql_query($insert_query); //check whether the data insertion was successful if(!$insertion_result) { die("Sorry! Something went wrong.</p>"); } else { echo "<p>Record saved successfully.</p>"; } mysql_close(); ?> These codes work … |
|
Re:
<?php $count; session_start(); print_r($_SESSION); $myarray=array(); $myarray=@$_SESSION['myarray']; $myarray=array(); $myarray=@$_SESSION['myarray']; $host="localhost"; // Host name $username="root"; // Mysql username $password=""; // Mysql password $db_name="candidates"; // Database name $tbl_name="qbank"; // Table name // Connect to server and select databse. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); if($_POST['next']=="next") { if(@$_SESSION['count']<=10) { echo @$_SESSION['count']; … |
|
Re:
class string { public: string( char const* t ) : s(t) {} ~string() { delete s; } char const* c_str() const { return s; } private: char const* s; }; there is a problem in the above code can anyone help |
|
Re:
1. Write a C++ program that simulates the throw of a dice. The program allows the user to enter the number of throws he/she would like to do. The program then, will calculate the statistics of the number of faces appears in these throws. The program should satisfies the following: … |
|
Re:
Thats the code i have so far: int _tmain(int argc, _TCHAR* argv[]) { for ( int i = 1; i <= 9; i++) { for ( int j = 1; j <= 15; j++) { cout << "*"; } cout << endl; } return 0; } but can't figure out … |
|
Re:
Hi everyone, I'm new in vb.Net programming and i just want to ask how to validate a "Double" data type. for example. Dim number as Double number = textbox1.text If the value of "number" variable is in "Double" data type like 1.23 or 0.12 it returns a correct value and … |
|
Re:
How To Determine The Best Score? I am doing a lab regarding 'guess number game' Actually,the answer should be the random number,but I set the exact number to 88,because it is easy for me to test other requirement. I need to printf("Best Score so far [X]") How to make comparison … |
|
Re:
cant figure out how to get the floors and occupancy rate to show Public Class Form1 Private Property occupancy As Integer Private Property occupancysum As Integer Private Sub GroupBox1_Enter(sender As System.Object, e As System.EventArgs) Handles GroupBox1.Enter End Sub Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click Dim intOccupancy(8) … |
|
Re:
I have this code working on VB.NET 2008 but not working in VB.NET 2010 and show no error code. When I use the query analyzer the query work good, but when I try on my code nothing happen. I can do SELECT code and that ok, it’s just the update … |
|
Re:
I just need a simple program fragment that saves sentences/phrases and can load as exactly as the input. Do not rely on this code as I had made several failed attempted solutions. This is only what I remember: #include<fstream.h> #include<iostream.h> #include<string.h> #include<conio.h> main() {int x=0;char strings[5][50]; ofstream save("data.txt",ios::out) while(x<5) {gets(strings[x]); … |
|
Re:
please can you help me to solve this problem :>>> no develop a bookstore information system. The bookstore manages a collection of books it is selling, book orders, and customers who purchased from the store. A book store also has a counter that accepts cash from book sales. Each book … |
|
Re:
I'm having trouble with this part.My professor wants us to do this, when each button is clicked it 'gathers' the input and calls a sub named Result. I'm guessing we're suppose to use a Sub names Result that will call the other sub procedures. this is what I have so … |
|
Re:
Hello, I have been using StreamWriters for a long and time and it has always worked but now I seem to be getting an Access Denied error while trying to save to the current users Desktop... Dim savePath As String = "C:\Users\Josh\Desktop\EpiPhone\029.csv" Using sw As New StreamWriter(savePath) '...Rest of code... … |
|
Re:
Code the click event of the Play Game button to do the following i. Generate a random integer between 1 and 100 ii. Code a loop that will end when the user guesses the number or 10 guesses have failed to find the number. iii. Use an inputbox function so … |
|
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 … |