199,114 Archived Topics
Remove Filter ![]() | |
I'm working on this code for class, I am not expecting anyone to do my homework but help would be appreciated. Nodes are confusing for me and my professor did not explain well. The errors I am getting are where I declare the functions, I dont know the nodeType(?) that … | |
Hello, follow my code please. I created this code for read values from Mitsubishi FX3G linked with FX3U-ENET i this work. I put the right port and always i put *INICIAR* e read all values. Now i need to read this values automaticly , minute to minute. I try diferent … | |
![]() | I am trying to overload enum types so that I can get input and show output using these enum types... My program bombs out when I run it, please help. Here is an example of what I am trying to do (a rock classification program): #include <iostream> #include "classify.h" using … ![]() |
the program works the way i want it to except for the inputmismatchexception. import java.io.File; import java.io.IOException; import java.util.Arrays; import java.util.InputMismatchException; import java.util.Scanner; public class Exception { public static void main(String[] args) throws IOException { int num = 100; int tempNum; int index; String[] strArray = new String[num]; int[] numArray … | |
hello please help me on the assignment i cannot recognise the classes and a little functionality of the classes+ how stimulate the scenerio in each class and how to set predicate function, multiple classes....... with ?????please help me urgent [Click Here](http://www.scribd.com/doc/245021293/Assign-Emt-1) | |
`Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\administrator\admin\schedule.php on line 187` admin/schedule.php //LOAD CLASS LIST $sqlstr = "SELECT * FROM class_list INNER JOIN `group` ON class_list.group_id = `group`.group_id INNER JOIN teacher ON class_list.teach_id = teacher.teach_id INNER JOIN class ON class_list.class_id = class.class_id WHERE datetime > '".date('Y-m-d … | |
![]() | The code below is a working program, but I just can't figure out how to correct the loop. I need it to loop back at the complection of case A, B, C and to end with case X. using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AtmProject { class … |
Hi I'm creating a program that holds three arrays one for the persons last name, one for the points scored and one for the player number, I've got everything done but my ProcessDelete method is changing all of the array instead of instead of just the element where the user … | |
Hey guys, I am currently taking a c++ class and I have an assignment that I am really struggling to understand. I kinda have an idea of what the assignment is asking, but I just dont know how to put it together in a program. I dont know where to … | |
Hello all, I'm code php concern with google map api, run it don't alert error, still marker and display infowindows but map don't display, I need hear some advice or guide to solve it problem. thank for help P/s: Sorry that my ability of English is not good http://i1095.photobucket.com/albums/i472/OLAKEN91/ff_zps9e66a073.png | |
**HERE IS PART OF MY CODE THAT REALLY MATTERS! AND BELOW IS THE PRINT OUT I GET WITH THE Program ** B200-LOGC.** INITIALIZE WS-MISC, P1-DTL1-LINE.** MOVE EMPL-FRST-NAME TO WS-FRST-NAME. MOVE EMPL-LAST-NAME TO WS-LAST-NAME. MOVE WS-NAME TO P1-EMP-NAME MOVE EMPL-GROS-SLRY TO P1-EMP-SLRY. IF EMPL-GNDR = "M" MOVE "MALE" TO P1-EMP-GNDR ADD … | |
The simulator will simulate one or more line-ups for customer service at a business. In the default setup, it will take between 1 and 6 minutes for a customer service request to be handled (random) once a customer reaches the front of the queue, after which the customer will leave. … | |
![]() | using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DiceRollTwo { class Program { static void Main(string[] args) { // Declare and initialize variables. Int32 intDiceOne = 0; Int32 intDiceTwo = 0; Random rnd = new Random(); String sResponse = String.Empty; // Greet the user. Console.WriteLine("\n\tWelcome to Vegas Dice Roller!"); … |
I have user login info stored with JPA along with a room. The room has a list of users, the users have a transient field, which is where my problem is coming in. @Entity public class User{ //some other stuff ids and such @Id @GeneratedValue(generator = "increment") @GenericGenerator(name = "increment", … | |
Using .Net's SHA1 Crypto Service to compare hashes between a user's password and their stored hashed password. Simplez =0) | |
I have a code that read some input data from a text file, and I want to add a loop using WriteModel() to print out the same data like the same format in the text file, can you help me how to do that? | |
Hi I try run this program(TestLib1.asm) [Click Here](https://github.com/mysteriouspants/SlopBukkit/blob/master/CS118/examples/ch05/TestLib1.asm) in my Visual Studio 2012 pro but I got errors I think the erros not in code I think in my Visual Studio 2012 configuration! Anyone know how can I fix it Error3 error LNK2005: _main@0 already defined in proj1.obj Error4 error … | |
hi :) I have a pro. here>>I have to write a prog. to get info. from a file and then to take these info. and to put them in a tree >> so what happened here ,,that the compiler reads the info. correctly from the file and take them ..but … | |
Hi, all. Currently i am facing some problem with my coding. I am used this code to insert data from multiple checkbox values into database. but its still not happen anything. Sorry, i am new to php. Please can anyone help me on this? I would be more appreciate if … | |
hello guys.. i have made a form in checkbox which is in fieldset by categories.. so now the values is success inserted into database.. but i've got problem to make it displayed. The form will pass value YES if user select from form. if user select a checkbox at form. … | |
<div class="btn-group"> <button type="button" class="btn btn-sm btn-success btn-flat dropdown-toggle" data-toggle="dropdown"> Action <span class="caret"></span> </button> <ul class="dropdown-menu" role="menu"> <li><a id="action" class="a" href="#action" data-index="100" data-toggle="done">Done</a></li> <li><a id="action" class="a" href="#action" data-index="100" data-toggle="processing">Processing</a></li> <li><a id="action" class="a" href="#action" data-index="100" data-toggle="error">Error</a></li> </ul> </div> <script> $( "#action" ).on("click", "a.a", function(){ //alert('working'); var id = $(this).data('index'); var status … | |
Dear all, I need the code for counting sort algorithm but I try this code but is not working #include <iostream> #include <conio.h> #include <time.h> #include <stdlib.h> //srand and rand functions using namespace std; void add_random_numbers(long arr[], long b); void countingSort( long left, long right, long vector[], int k, long … | |
Hi, I have a `std::string getName(){return name}` function and `std::string name` is a private variable. The problem is that when ever I try to `getName() == object` , the statement is always `false` even when the values are the same. if (command.compare(0, 4, "get ") == 0){ std::string object = … ![]() | |
Hello buddies! I'm new at Java SE Porgramming with PHP background. I've made a simple app which uses JSON to save some data and I would like to use MySQL database but there was some question for me. 1. If I used MySQL or any database, how much would my … | |
How to make the code with Random numbers and Time Executation? #include <iostream> /* cout */ #include <cstdlib> /* srand, rand */ #include <ctime> /* time() */ #include <list> /* list */ #define BASE 10 // # of buckets to use #define ARRAY_SIZE 50 // max # of elements in … | |
im new in web development and i wanna know, how can make a dynamic file path or dynamic source directory. its like : <img id="branding-logo" src="/image/logo.png"> <link rel="stylesheet" href="/images/green.css"> <script src="/js/jquery.js"></script> main { background: url('/images/CAT119/hp-images/hptilebggreen.jpg') top left repeat-x; } so basically what i want to know is how can i … ![]() | |
Hello, I am trying to create a messaging system inter-user within the same website. 1 message_id int(4) 2 from_stu_username varchar(30) 3 date datetime 4 messages varchar(200) 5 to_stu_username varchar(30) admin/messages.php //Hapus berita // undefined index: mode if (!empty($_REQUEST['message_id'])) { $message_id = $_REQUEST['message_id']; $result = mysql_query("DELETE FROM messages WHERE message_id =".$message_id) … | |
Hi my fellow programmer! Here's a quick scenario of my logic. I call a stored procedure and bind the result to a data table then loop depends on how many data are there in my data table to fill in the fields that are empty. It is done by opening … | |
Hi everyone, Consider below code, package thread; public class Noti5 extends Thread{ Calc c; Noti5(Calc calc){ c = calc; } public void run(){ synchronized(c){ try{ System.out.println("waiting for calculation.."); c.wait(); }catch(Exception e){} System.out.println("Total is.."+c.total); } } public static void main(String[] args) throws InterruptedException { Calc calculator = new Calc(); new Noti5(calculator).start();new … | |
Hi guys, I'm created the variables in the loops to generating the list of values and channels, I want to use the variable outside of the loop so I can get the list of values. I have a problem with get the list of values. When I try this: # … | |
I'm new to git bash using console2: what Im trying to do here is to "ti build -p android -T device" but at the end it shows me the following error events.js: 72 throw er // unhandled 'error' event ^ Error: spawn OK at errnoException(child_process.js:980:11) at childProcess._handle.onexit(child_process.js:771:34) | |
I need to know how I can display the data stored in the database using php when a user load a page, without necessary puting them as it is on a static web page. | |
//Trevor Potter // Nov. 11,2014 import java.util.*; public class student { public static void main (String [] args) { int[] student= new int [20]; int[] exam1= new int[20]; int[] exam2= new int[20]; int[] exam3= new int[20]; int[] avg= new int[20]; int i=0; Scanner input = new Scanner(System.in); for(i=0; i<=19; i++){ … | |
hi. i'm seeking help with checkboxes.i have built a ordering system. i have two tables "food" and "refreshments" both consists of columns "name,price" . what i want to do is . if i click on my submit button , all the checked checkboxes should be added up and have a … | |
Hi, Currently we have legacy system which is build purely using java and runs on jboss. We notice its using a lot of jms and also httpurl connectivity to pass on files. The system basically supports rossetta net framework where it allows file transfers between trading partners. We notice with … | |
 In the above model I have an Images table which holds all the filenames relevant to the image. I have two relationship tables (Image_Has_People and Image_Has_Event). Both of these tables have an FK ImageID linked to the Image table's PK idImage. I'm wondering, if I set both relationship … | |
Hello, Thank you for reading my message! I have an applet, where I make two instances of the custom JPanel objects and I add them into two JFrames and display them. Both of these panels have a 10 x 10 grid of buttons and an event handler is added on … | |
Basically, the slider does not work on my website. I think that this is due to a javascript conflict however i am not 100% sure about that. I have used firebug and it came up with the error "TypeError: my_glider is undefined" Here is the code: <div class="homepage"> <div id="slider"> … | |
I want to write a code for Radix Sort based in this way how I made the Quick Sort, how can I do with Radix Sort, can anybady have any idea I have search a lot but I can not find any exactly what I need #include <iostream> #include <conio.h> … | |
Hello, I am having some serious difficulty trying to create a class in a header file. I have found that when using the #ifndef I will recieve an error message stating "unknown type name 'class'", however if I use #ifdef it will compile with no problem but has linking problems … | |
Write a function called mostIntersecting which receives as parameters three arrays of type float, and an integer n; where n is the size of each array. The first two arrays are called X, and Y and contain the x and y coordinates respectively of the centers of n circles on … | |
Dim db As New Connection 'Dim tbpro As New ADODB.Recordset 'Dim db As Database Dim tbpro As Recordset Private Sub Command1_Click() rsMyRecordset.Open (App.Path & "\" & "super.mdb") rsmyreco End Sub Private Sub Form_Load() 'db.ConnectionString = (App.Path & "\" & "super.mdb") 'tbpro.ActiveConnection "table1", db, adOpenDynamic, adLockOptimistic db.Open (App.Path & "super.mdb") Set … | |
I very new to C Shell. I am trying to read a file from the command line, and determine whether it's a zip file, a .txt, a symbloic link, a pipe, or whatever ("unknown"). Then I'd like to execute a few instructions depending on the type. For instance, if it's … | |
I am not sure what I am doing wrong but can't seem to recieve test email for this php form the form is at the bottom of this code snippet <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>MIAPP</title> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/> <!-- FAVICON --> <link rel="shortcut … | |
#include <stdio.h> #include <stdlib.h> void main() { int salaryIn = 0.0; int years = 3; float salaryOut = 0.0; printf ("\nWhat is your salary (0 to stop)? RM" ,salaryIn) ; scanf ( "salaryIn" , salaryIn) ; do { do { printf ("\nYear " , years); for (double rate = .03; … | |
i cant add in the data? code of add info: Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click If String.IsNullOrWhiteSpace(txtadmin.Text) Or String.IsNullOrWhiteSpace(txtname.Text) Or String.IsNullOrWhiteSpace(txtcourse.Text) Or String.IsNullOrWhiteSpace(txtic.Text) Or String.IsNullOrWhiteSpace(txtgender.Text) Or String.IsNullOrWhiteSpace(txtaddress.Text) Or String.IsNullOrWhiteSpace(txttel.Text) Or String.IsNullOrWhiteSpace(txtemail.Text) Or String.IsNullOrWhiteSpace(txttpye.Text) Then MessageBox.Show("Please complete the on the box.", "Authentication Error", MessageBoxButtons.OK, … | |
Hi All, I'm having trouble understanding how the spl_autload (and namespaces) should be implemented. I have the following: namespace A\Core; class Controller { } extended by: class SiteController extends \A\Core\Controller { public function __construct() { echo 'Created SiteController!'; } } * I'm not sure if this is the correct/best way … | |
Hi all, I was having a look at this tutorial on asp.net master pages http://www.asp.net/web-forms/overview/older-versions-getting-started/master-pages/creating-a-site-wide-layout-using-master-pages-cs but alas I have to apply this the other way around: as you would normally expect, you'd create the master page first and then content pages, but I have content pages and now I have … | |
Hello guys, since I have now effectively completed my first asp.net application (it's a very basic application where people...ahem, where I can record overtime) I was wondering what the best way is to add some validation. The page which allows you to upload the details needed (date, hours worked and … |
The End.