64,152 Solved Topics
Remove Filter ![]() | |
1. GIVEN THE DATA BELOW, DESIGN IA-32 INSTRUCTIONS TO CONVERT THE BINARY STRING IN X TO AN UNSIGNED INTEGER AND SAVE IT IN Y. X BYTE "10110011" Y DWORD ? 2. GIVEN THE DATA BELOW, DESIGN IA-32 INSTRUCTIONS TO COUNT THE NUMBER OF 1'S IN X AND SAVE IT IN … | |
Hi i have been fiddling around with the wxPython GUI toolkit for a bit and i wanted one of my programs to start with the window expanded. I googled it but couldn't find an answer there so any help here would be greatly appreciated. | |
I'm currently trying to make an address book that can store data in a .txt file. [CODE] print "Virtual Address Book" print "Austin Jackson; Project 4 : Jun 14, 2008" print " " print "1. Add New Contact Information" print "2. View Adress Book" choice = input(">") if choice == … | |
If i have a table with say x columns and y rows how do i get the contents of the 'i'th column into a arraylist | |
I don't understand what is happening to my program... I have a feeling that private members are marked private for a reason, because I'm having a serious error with accessing base-class data types via inheritance and declaring friends within classes... If you run the test program after attaching the header … | |
Ok, I know this has to be simple. My Javascript skills are very weak (will become obvious in the code.) What I'm trying to do is use two Submit buttons in a form. The called function I want to send one named variable if one Submit is clicked and another … | |
my form contains user contrors in a matrix spreading like this: [CODE=syntax]Main_Board = new Virtual_Vertex[9,7]; for (int i = 0; i < 9; i++) for (int j = 0; j < 7; j++) { Main_Board[i, j] = new Virtual_Vertex(); Main_Board[i, j].Location = new Point(8+(i*dist), 30+(j*dist)); Main_Board[i, j].VirtualVertexClicked += new VirtualVertexClickedHandler(CreateNewVertex); … | |
Hello. Im Majoring in Computer Science and Engineering and I take a Computer Architecture cource this semester. I have a research report to do as a part of the cource. I have choosen a good topic to research about which is: Prediction of Indirect Jumps. Of-cource the report should be … | |
I am practically done with this project but got stumped in one area I am trying to use operator overloading and multiplying 2 to the complex number. Since I used operator* already, how do I call the operator with 2* complex no? How do I write the code for it? … | |
I'm trying the following code to combine ints, and then get the original ints back: [CODE]#include <iostream> using namespace std; int getleft(int n){ return (n >> 24); } int getright(int n){ return ((n << 8) >> 8); } int main(){ int i = 15; int j = 28515; int combined … | |
I'm being asked to make my default constructor "interactive" by having it prompt for an input and store the three phone number pieces you see below. They are strings, and they get called for display in main with the telnumber yournumber piece of main. How would one do that? [code] … | |
I wish to check if a variable (I am pulling the variable as mysql_fetch_array) contains the number 2008 in it. If so it is displayed. Now I have the display working fine but it displays everything and I want to optimize it to just show the variables containing 2008. Any … | |
Nevermind, I'm a retard. I had phpMyAdmin opened to the live server, not the testing server which is still empty. I need a drink. | |
In C,how to define an array which is of a length specified by the user? I tried writing a code, but outputs were strange. Sometimes first two elements are correctly displayed, sometimes only first. Other seems some random values (extremely large sometimes). May be the problem is in initializing the … | |
Hi all, I am currently revising for an exam which will cover all the basics of object-oriented programming, it was going quite well until I met Collection :) I have got two questions to which I have started writing answers to but got stuck...Could someone please have a look at … | |
Hi everybody, is it possible to refresh/reload a webpage from a child page ? I f possible, may I knw the code for that? | |
Hi, i am new to c/c++ and i need to execute external cabextract program to extract archive, but if i sprintf command and file name to command variable i get segmentation fault. How i need to modify code to avoid segmentation fault? Here's an example: [CODE=C++]void cabext(const char *fname) { … | |
I have been programing a php online bot with an admin panel. It mainly works good an all but my forms are double posting. So the way I have designed the form is that the user enters the data. Then clicks the submit button which sends the data to MySQL. … | |
For my computing project last year I created a simple booking system in Access 2003 with a little bit of VBA to enhance it a little. However this year I need to improve it. One of the main problems I found with my booking system is that double bookings can … | |
I have the function below in three base classes, one base, then one derived, and another derived from the second. I'm getting external resolution errors when I try to build it. [code] virtual void printtostream(ostream& out); //Since it is a virtual function the above was not defined in any of … | |
sir, question.. can i get the exact len of string when quering? because i have two format in my TransID. The one is the 10digit for the MSAccess and the another is the 11 Digits in my MySql. So if i update all in the MySql database the problm is … | |
I have a "two stage" inheritance piece I'm writing. The overall class is telnumber, the worknumber is derived from telnumber, and billnumber is derived from worknumber. The problem is in in my billnumber.cpp. In the main there are two lines referring to the billnumber class with only 4 parameters, and … | |
Hi, I am writing a program where I want the user to be able to e-mail me feedback, so I have downloaded javax.mail and I'm trying to send myself an e-mail to test it out. I have Yahoo Mail Plus. Below is my code, which I tweaked from one of … | |
I'm trying to get some HTML code from a page. The only way to do this that I know of is [CODE=javascript]document.getElementById('id').innerHTML = 'newhtml';[/CODE] But the problem is that the page is taken from the web and it has no IDs to get and I can't modify it by putting … | |
can i have more then one JTextArea and JTextField for one inner class (MyUndoableEditListener())? [CODE=JAVA] . . MainTabbed mPane = new MainTabbed(); . . . mPane.area.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.locField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.dateField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.ndBuddyField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.depthField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.firstBuddy.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.weightField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.timeInField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.tOutField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.startTimeField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.sTimeField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.bTimeField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.startField.getDocument().addUndoableEditListener(new … | |
currently i am facing a problem for these method. when my program copying or cutting a selected text and paste to another selected area, unexpected result, it paste the selected text to all of the fields and areas of my program. is there anyway to check current selected area or … | |
Hello everyone, This program compiles fine and runs fine in Eclipse(C++ IDE) but when I compile it in UNIX and Visual Studio its fine but when I run it, it gives me an error. For Unix is segmentation fault The problem is when I initialize VNT, it calls Matrix and … | |
Hi all, i was hoping some on could help me solve this problem i am having:i have been going over it for the past two hours but can not find the mistake\s. I have three files i am working on 1 header and 2 cpp ones(implementation of header file and … | |
Hello! I have a little problem. I am a relatively new Java learner, and I just finished a little project for a friend. I use an IDE, called JCreator, that solves basically all of my needs without ever having to touch the command line. Since all the coding I've done … | |
The following script function "btnRunScript_onclick" works as long as it does not access the HTML control "txtMessage". If it does, "Page Error" is shown in the statusbar of Internet Explorer (6). Knows anybody why? Thank you. [code] <%@ Page Language="vb" AutoEventWireup="false" Codebehind="GuessingGame.aspx.vb" Inherits="Ch07Le04.GuessingGame"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> … | |
[CODE=c++]#include <iostream> using std::cout; bool help = 0; bool expl = 0; int main(int argc, char *argv[]) { for(int i=1; i + 1 <= argc; i++) { if((argv[i] == "-h" | argv[i] == "--help" ) && help != 1) { cout << "This is an experiment for parsing arguments.\n" << … | |
How could I put the following sql statement into a php variable? [code=sql]load data local infile ".$filename." INTO table testtsttbills FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n'(account,service,date,time,timebandtype,destination,callednumber,mins,airtimecharge,tollcharge,amt,privatenumber)[/code] when I tried to putting it in the variable...it's showing not working because it recognizes the double quote in … | |
Hi everyone, I'm new in this forum. By the way it's not longtime since I started learning python. After a couple o months of studying and tutorialing I'm now nearly finished with my first application. I've used Tkinter as GUI and there's one thing that's making me nervous: I want … | |
I wonder something. I have a Form with Vertical ScrollBars. When running this code below that are inside a buttoncontrol when the scrollbar is at the top of the Form, the Form Scroll downs a bit, perheps 5-10 cm. This is because I set button1->Enabled = false; [I](I don´t know … | |
I am doing a simple program that will add elements to a static stack using structures but Iam failing to implement it. The proram accepts input the first time but then crashes after that. Here is my structure declaration [code=cpp] struct stack{ int top=1; int values[4]; }; [/code] the definition … | |
Hello everyone, I have got some questions and i am really hopping someone could help me out with them. I have a class privately encapsulated in another class. Now, I'm trying to make an object of it in my testDriver but I'm not quite sure how to do that. I've … | |
[code=cplusplus] #include <iostream> #include <string> using namespace std; int findNum () { int num; cout<<"You have 10 chances to guess the number that is generated by this program."<<endl; cout<<"All numbers generated are of positive integers"<<endl<<"Good Luck!!"; cout<<"Enter you guess "; cin>>num; return num; } string start (int guess) { int … | |
I've tried [URL="http://developer.yahoo.com/yui/editor/"]YUI rich text editor[/URL] and found it great but I still can't figure out how to to integrate it with php . If I put the textarea in a form with method=POST what will be the $_POST['??'] that will give me the html ? thanks. | |
Right now this is my setup: I have these classes Point2 Point3 Vector2 Vector3 Ray2 Ray3 Both Point classes and both Vector are independent. Ray2 contains a Point2 and a Vector2 object, and Ray3 contains a Point3 and a Vector3 object. I have two questions. 1) Should I somehow just … | |
hi, I develloping an engine but I have an small error and can't find it... I want the user the say with icon he wants to use for his program : [CODE] WNDCLASSEX wndclass; // ... wndclass.hIcon = LoadIcon(m_hInstance,MAKEINTRESOURCE(GetIcon())); wndclass.hIconSm = LoadIcon(m_hInstance,MAKEINTRESOURCE(GetIconSmall())); // ... void SetIcon(WORD icon) { m_wIcon = … | |
Hi, I am very new to php and this forum so sorry if this has been asked over and over but I can't find anything when searching. Anyway I have used some script I found on the net which has a register a new member form and a login form … | |
Hi Guys I have a List Box ("LISTJOBTYPE") and so the User can select more than one Item: Junior Stylist Hair Stylist Senior Stylist Principle Stylist In my database I have the following: APP_NAME Jack APP_JOBTYPE Hair Stylist, Senior Stylist APP_NAME Jill APP_JOBTYPE Hair Stylist This is my SQL: SQL … | |
hi, I am doing a insert query over here and if the query is executed successfully, there will be a success message. However, whenever the query is being executed successfully, the success message is not being displayed. here is a snipet, can anybody guide me along? thanks alot. [code=php]//Execute SQL … | |
Hello, I have a CListCtrl and a button to modify the selected row in the CListCtrl. My problem is that my list has several columns and I want to be able to select a row by clicking on any column of the row that I want selected. Now I can … | |
I'm trying to call this function requested times. All functions and variables are members of one class, access is public. So, I'm calling like this: [code] void MultiReader::CreateThreads() { unsigned int nThreadNo; for( nThreadNo = 0; nThreadNo < vDirectories.size(); nThreadNo++) { CreateThread( NULL, 0, &MultiReader::ReaderThread, vDirectories.at(nThreadNo).sDirectoryName, 0, NULL); } } … | |
I have a large multidimentional array that I am looping through to change it's structure and theoretically this function will work accept the "variable array" part. And maybe that's not the right name for it as I have checked my resources and cannot come up with the right syntax for … | |
I am studying stacks, queues, and heaps at the moment but i dont know how i can apply this in real life. Well my question is how can these may i say operations helpful and when are they really needed as opposed to others. I hope you can get my … | |
I am working on making my own chat server and client, but have reached a little hiccup. The first line of text that the client send is not displayed by the server. Everything else is, just not the first line. Client [code=python] import socket uname = raw_input('username:> ') uname = … | |
Hello please can somebody help me to display a listview item to a textbox. | |
Hello everyone. This is my first post here. I am only posting here under the most extreme circumstances because I cannot for the life of me figure out how to make my save function for RPG game to work. So for it will only save in the first room. So … |
The End.