Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~6K People Reached
Favorite Tags
c++ x 14
java x 13
php x 3

11 Posted Topics

Member Avatar for YingKang

The main function looks so messy. I am wondering if there is a way I can move some of the code from the main function to Student.cpp. Could anybody help please? Thanks. [CODE] //main #include <cstdlib> #include <iostream> #include <iomanip> #include "Student.h" using namespace std; int main(int argc, char *argv[]) …

0
67
Member Avatar for YingKang

I keep getting compiler errors. Could anyone help please? Thanks This is the error message: F:\DPR226\Homework\Student\main.cpp In function `int main(int, char**)': 39 F:\DPR226\Homework\Student\main.cpp invalid conversion from `int' to `int*' 39 F:\DPR226\Homework\Student\main.cpp initializing argument 4 of `void Student::setStudent(std::string, std::string, std::string, int*)' F:\DPR226\Homework\Student\Makefile.win [Build Error] [main.o] Error 1 [code] // main.cpp #include …

Member Avatar for vidit_X
0
120
Member Avatar for YingKang

Don't know why I keep getting error messages. This is first the error message: 5 F:\DPR226\Homework\Customer\Customer.h:3, from main.cpp In file included from Customer.h:3, from main.cpp Could anybody help please? Thanks [CODE] // main.cpp #include <cstdlib> #include <iostream> #include <string> using namespace std; #include "Customer.h" int main(int argc, char *argv[]) { …

Member Avatar for Stefano Mtangoo
0
128
Member Avatar for YingKang

I just learned class and object today, couldn't even get the code compiled. could anyone help please? Thank you I have three files: Product.h Product.cpp TestProduct.cpp We haven't learned to put everything in a project yet. so for now, just just these three source files. [CODE] class Product { private: …

Member Avatar for mike_2000_17
0
749
Member Avatar for YingKang

I am writing a PHP program with sticky form. I want to use Text area for the "comments" part, but I couldn't make it work. Can anyone help? thanks. [code] <html> <head> <title>guestbook</title> <style type="text/css"> .error {color: #FF0000;} </style> </head> <body> <?php extract($_REQUEST); $errors = array(); if(isset($_REQUEST['submit'])) { validate_input(); if(count($errors) …

Member Avatar for YingKang
0
490
Member Avatar for YingKang

I am writing a java applet that calculate heat index and wind chill. it requires the user to input temperature , wind speed and humidity, and then let the user choose either Metric ( kph, °C) or English (mph, °F) I have some problems with the code. First, the Calculate …

Member Avatar for YingKang
0
123
Member Avatar for YingKang

This code outputs the result in console. I want to implement a Swing JFrame, producing output readable by user. Do I have to change all my code if I want to use JFrame? Can anyone help? I am not familiar with JFrame at all. Thanks : ) [code] import javax.swing.*; …

Member Avatar for masijade
0
196
Member Avatar for YingKang

the program draws lines, but every time I draw a new line, the previous one disappears. How can I let it show all the lines drawn? I know my problem is in the array, but how to fix it? thanks for help [code] import javax.swing.JPanel; import java.awt.*; import java.awt.event.*; import …

Member Avatar for YingKang
0
823
Member Avatar for YingKang

The function should remove all the occurrences of an integer (say, removeItem) from an array. If the value does not exist or the array is empty, ,output an appropriate message. My program is able to print the array without all the occurences of removeItem , but I don't know how …

Member Avatar for YingKang
0
194
Member Avatar for YingKang

After user choose ticket type(first class, business, or economy) and desired seat, for example row 2 A, the program will output the form: A B C D E F row 1 * * * * * * row 2 X * * * * * // now user chooses row …

Member Avatar for YingKang
0
3K
Member Avatar for YingKang

This is a part of the problem in my homework. I have : int alpha[20]; int beta[20]; int inStock[10][4]; I need to write a function copyAlphaBeta that stores alpha into the first five rows of inStock and beta into the last five rows of inStock. my program is here, but …

Member Avatar for YingKang
0
298

The End.