Wrong Hex Value
Hello, I have a string of binary number and I want to convert it into decimal and then output to a file in hexadecimal format as follow: int main(){ str = "1001110001111111"; oFilePtr =...
View ArticleReading lines of GetResponseStream
Hey all, I'm using the following to GET web pages: Dim request As HttpWebRequest = DirectCast(WebRequest.Create(url), HttpWebRequest) request.CookieContainer = logincookie Dim response As...
View ArticleThis property cannot be set for anonymous users.
I'm starting to learn c# and asp.net, because I want to start a career around it. I know it's ambitious, however I really want it. I've tried fixing it by myself, debugging (?) and googling for...
View ArticleFor Loop never stops
My for loop never ends, I don't understand. for (int count = 0; count < NUM_QUESTIONS; count++) { //Generate two random singal digit numbers num1 = gen.nextInt(RANGE); num2 = gen.nextInt(RANGE);...
View ArticleMy value always outputs as 0 because I had to initialize it
This is my first post on here. This is for my homework but I am not asking anyone to do it for me. My code does not have any compile errors at the moment. My problem is that when I run the program the...
View Articlei cant make my java project to jar file
i cant seem to create my java project into jar files so any one can run it. i have a folder with 10 java files and two folder and some images and music. take a look at my project files tree. its on a...
View ArticleRead part of a line with fgets and ignore rest.
Hi all, I have the code below where I am reading an input file, reading line by line processing it and printing it out to an output file. What I need to print out is 61 chars, but the record comes with...
View ArticleFinding a derivative in C++
Hello ! As the title says , i can't seem to find out how to find a derivative of a function. I have a project in which i first have to find the analitic derivative (as a text ) which i managed to do...
View ArticlePlease answer my question.
I have done making a simple system with a MS Access database, and I just want to know if database is still run if the computer doesn't have MS Access, thanks.!
View ArticleTrying to get input text from JPasswordField
Hello everyone! I am struggling with an annoying piece of code, for the login of my launcher. I have create a JPasswordField, variable 'password' and I want to get the text the user has typed in. I...
View ArticleA Main Class?
How do I add a main class? Where? Here is my code import java.util.*; class healthProfile { private String first; private String last; private char gender; private int birthMonth; private int birthDay;...
View ArticleC++ triangle side by side problem
Hello, I would like some help with this homework problem. I have to create a c++ program that will output this triangle pattern: http://gyazo.com/124b7f7235749e8cdf0367eb29483000.png This is my...
View ArticleWhat is wrong with my local header to make it not work?
#include <stdio.h> #include <math.h> #include <conio.h> #include "Celsius.h" int main() { float x; printf("Enter the degrees Fahrenheit you wish to convert to Celsius: ");...
View Articleobjects , writing files
this may be a long shot , but im totally stuck and need help. i have a farely large project where we have to read in some some numbers, and these numbers represent triangles and will be used to make a...
View ArticleC++ Potion Store
This assignment is as follows : CS260 Lab: Shelf Life Instructions Your RPG game includes all sorts of valuable items, including different types of potions. Normally players find potions on quests or...
View ArticleUsing vs finally
Hi there all good people, I am using a lot of excel objects, and to be sure all have been completly closed i am using marshall realase inside finnaly block of try. Some time ago i found out about using...
View Articleerror: class, interface, or enum expected?
So when I compile my code I keep getting that error message at the end of my class bracket, I'm sure its something simple or at least I think it is, but I can't figure it out. If you know what I should...
View Articlecant get my table to display
this code i got for a dropdown box displaying my xml file and then when click on the xml file the table display the xml file data but its not working. here my xml code and my php code XML <?xml...
View ArticlePassing objects between classes.
I have 3 classes in total. Run.java - the java class which contains the main method to run the other 2 classes. public static void main(String[] args) {toGUI tg = new toGUI(); } toLogic.java - no main...
View ArticleHelp with director mx!
Ok so i'm creating a game using director mx. A part of the game is the user has to select the numbers in ascending order in order to go to the next level. now i know how to make them disappear : on...
View Article