JAVA MySQL login,
Hi, I'm trying to make a login in Java and MySQL,.My GUI is running but I think my calls is wrong. Furthermore, my "While" won't work and I cannot figure it out. Any suggestions.Hope I post my code...
View ArticleMethod returns zero (perhaps null?)
Why is my method returning zero? Class public class Payroll { private String name; private int idNumber; private double payRate; private double hoursWorked; public Payroll(String n, int id) { name = n;...
View ArticleProject Ideas
Hello, my name is Luke. I am 16 years old and recently started programming for the first time, in other words I am a beginner. I have only looked at 'C#' and would like some 'ideas' on possible mini...
View ArticleUnderstanding logic for final
Hey there codies, I need help getting something to work, and or understand why and the heck I'm getting the output i'm getting. I'm supposed to write a C++ program that reads a "checkbook register"...
View ArticleInstantiating a class?
Is such a thing even possible? I'm supposed to implement GameInterface and and have my RouletteGame class have private instance variables for a RouletteWheel, and RouletteTable.(These are other...
View Articlemalloc question
According to cplusplus.com: Quotevoid * malloc ( size_t size ); Allocate memory block Allocates a block of size bytes of memory, returning a pointer to the beginning of the block. The content of the...
View ArticleQuestion about School
So a quick background, I'm 24 serving in the United States Navy. I've finally decided to go back to school, specifically for Software Engineering. The problem is I have to go to an online program, due...
View ArticleDataGrid Insert One Data to all Rows of a Specific Column
Good Day to all, Got a problem here and been searching the net for days and no luck.. My problem is I just wanted to add one value to all rows of a specific column. For example in a column DateToday...
View ArticleNo Database Selected error on php page
Hi, I am getting "No Database selected" eroor,Here's the code: <?php $Username = $_POST['username']; $Password = $_POST['password']; // 3020ta, 3020 if (($Username != '3020ta' AND $Password !=...
View Article2D Array Operations error
OK this is an assignment due at 11:30pm tonight. I have very little time left. I am getting this when I try to run it. java.lang.ArrayIndexOutOfBoundsException: 3 at...
View ArticleProgramming Order of Operations
I apologize if this is the wrong forum. It seemed like a catchall category and this is a general question. I'm writing a calculator and am thinking about how to implement order of operations. Infix...
View ArticleMy problem is that the solution to the map is not marked right
When I run my code for my maze it solves the maze but it doesn't print the correct path. /** * @author Chris * */ public class Maze { // Class Variables final static char BLANK = ' '; final static char...
View ArticleHow does this C++ program work internally?
Hi, im new here. I was trying to teach myself C++ before I have to take it in the spring. I came across this example, and I don't understand how it works. d_random.h is a random number generation...
View ArticleGetting an array index out of bounds exception error at run.
As title says im getting an index out of bounds exception error at runtime. Here is the code. public class Assign7 { public static void main(String[] args) { int [][] intar = { {10, 12, 13, 14 }, {15,...
View ArticleSave the content to a file
I am suppoed to save the information that the user inputs to a file that the user names. #include <fstream> #include <iostream> #include <string> #include <cstdlib> using...
View ArticleIS0 C++ forbids declaration of 'diffstruct' with no Type [-fpe
That's name of the error message I get when I try and compile this program. I've just started learning c++ again and I'm making a simple program with a separate header called "diffclass.h. I want to...
View Articlepolymorphism, inheritance: get method is not getting anything
i have traced the problem to my vehicle class, me set method is setting as it should, but my get method is not getting anything. not sure where i have gone wrong. thanks for any help or hints. /** *...
View ArticleHow to manipulate variables in batch loop
Hey everyone, I am having some issues on how to manipulate variables in a for loop that I am sending to a jar file... any suggestions would be appreciated. The code runs, but the math doesnt.. @echo...
View ArticleIssue delaying Servo Motor
Hey all, I'm working on a model drawbridge project using two servo motors and I'm having an issue trying to delay two servo motors when it reaches a certain y-axis peak read by my microprocessor'a LED...
View ArticleSort by Last Name Linked List on C++
This is what I have for now. I need to : Modify function Find() to locate a person by last name in the linked list.Function Sort() shall organize the linked list by last name.Function Print() shall...
View Article