No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hello, all! I have a (hopefully) quick question: I have an array of 128 ASCII characters called blockData[] that I am trying to convert into a string. [code] for (int i = 0; i < 128; i++){ blockStuff = inFile.read(); blockData[i] = blockStuff; if (blockData[i] != 0){ String aChar = … | |
Hi, I have a rather large binary file that I am attempting to read in, but I only want to read in the first 100 characters or so. I've tried searching the internet for help or an example, but I've only found examples that read in the entire file...and this … | |
Good evening, everyone! I'm currently writing a game for a class, and I'm attempting to add a few extra features that aren't required. The one that is giving me difficulty is the high scores. I am saving the score and the name as a string. When a game ends, it … | |
Good morning, all! I have a Java project that is complete, but it's not due for another week. I've been poking around trying to "spruce it up" a little with maybe a pull-down menu for one of the options. The examples I've found online all deal with web development. Will … | |
Good evening! I'm working on an assignment, and I'm not seeing what is wrong with my logic here. Any assistance would be greatly appreciated. It's a basic appointment book, and if there is an appointment at the current time, I would like the "New Appointment" button disabled. However, if I … | |
Good evening, all! My current assignment is a small Appointment Book written in Java. It should scroll through the times of the day, and display the appointment (if any) for that particular time of day. I can scroll through the different times with no issue, but I can't seem to … | |
Hello! I have a small problem with a MySQL query inside a PHP site. If a user clicks "Yes" to delete a record, the record should be deleted (which works great) However, when the user clicks "No", it should redirect the user to another location, leaving the record intact...but it … | |
Good afternoon, all! I'm in the process of writing a chat program. The server is completed, and if I simply telnet into the server with 2 different windows, 2 people can chat in fluid fashion. However, when I connect 2 clients, the chat appears in lock-step fashion. (ie. Client 1 … | |
Good morning, all! As the title suggests, I am having a syntax error. I'm using Notepad++, and I don't seem to be missing any curly braces. Is there somthing else I'm missing? Thank you [code] <?php session_start(); include('header.php'); if((isset($_GET['movie_users_id'])) && (is_numeric($_GET['movie_users_id']))) { $movie_users_id = $_GET['movie_users_id']; } elseif ((isset($_POST['movie_users_id'])) && (is_numeric($_POST['movie_users_id']))){ … | |
Hello, all! I'm trying to understand how a client/server would work, and I found a server example I could play with on the internet. However, I can't get it to compile due to a bunch of undefined variables (sendto, socket, etc). Are there some options I should include in the … | |
I'm trying to write a short code that will take in a string of text, and tell me how many vowels are in it, with the information being passed between a parent and child process using pipes (I am only testing for "a" at the moment until I get that … | |
Good morning! What I am trying to do is: display some text, wait 3 seconds (so the person can read it) and redirect that person to a different web page. I can get it to either: 1 - Display the text or 2 - Sleep(3) and redirect them to the … | |
Good afternoon all! I am writing an address book for a class that I have, and am stuck on this last part. Any help would be greatly appreciated! When the user selects the "Edit existing record" option, I can't figure out how to make the file overwrite the previous record. … | |
Good evening, all! I'm trying to display multiple checkbox values in a summary screen of sorts. The website is about movies, and if somebody checks that they like more than one movie type, I would like all of their choices shown. I currently get "Your favorite movie type is: Array" … | |
First off, thank you for taking the time to read this. Here is my question: I am reading data in from a file that contains names for items that I will be placing onto a heap for use in a program. The program gives me all of the desired data … | |
Hello, all! I'm getting an error that I don't understand, and would greatly appreciate some other input from somebody more experienced than me! So here's the problem: I have a tree that I can put nodes on, take nodes off, search, etc etc. I have one last function that I … | |
Hello all!!! First off, I'd like to say THANK YOU for such a great site. I've learned a lot here in the last 2 months! I'm currently in a Data Structures class and our current assignment is: Read data from a .dat file (name, address, phone #) and store the … |