199,112 Archived Topics
Remove Filter ![]() | |
hi guys im working on making a program where u get given a machine code. The first 6 bits are the opcode, the next 5 bits is the source register, the next 5 bits is destination register and the last 16bits is the immediate. What we have to do is … | |
I have a table off which I need to parse out the data using certain criteria. The table contains 3 datetime columns called '[B]ReadingTakenOn[/B]', '[B]StartedOn[/B]', and '[B]StoppedOn[/B]' Here's the criteria for selecting the records: The Dates in the 'ReadingTakenOn' column should lie between the Start Date and Stop Dates (both … | |
The following is a piece of python code: [B][COLOR="Red"]sum=0 for i in range(1,f(n)+1): sum=sum+i[/COLOR][/B] f(n) is a function call. I need to find a tight big oh upper bound for the time taken by the above written piece of code in the following cases: 1. when the time taken for … | |
Is there anyway to compare lists or check to see how many of the objects in one list are the same as the other list? eg: L1 = [dog, cat, john, moo] L2 = [dog, cow, moo, stuff] there is two of the same "things" in it I'm trying to … | |
Problem Description My pi is an irrational number, i.e. it cannot be written as a fraction. It's approximate value of p is 3:141592653589793. Below are 5 di erent series which can be used to approximate p: 1. P= 4(1-(1/3)+(1/5)-(1/7)+(1/9)-... 2. P= sqrt(12(1- (1/4)+(1/9)-(1/16)+(1/25)-...)) 3. P= sqrt(6 (1+ (1/4)+(1/9)+(1/16)+(1/25)+...)) 4. P= … | |
Hi, Here's my code [code] #include<iostream> #include<fstream> #include<string.h> #include<math.h> #include<stdlib.h> #include<stdio.h> using namespace std; int cIndex(char *x,char **featlist,int len) { int i; for(i=0;i<len;i++) if(strcmp(x,featlist[i])==0) return i; } int main(int argc,char *argv[]) { std::ifstream featFile(argv[1],ios::in); std::ifstream trainFile(argv[2],ios::in); // std::ofstream svmFile(argv[3],ios::out); char line[20000]; char feat[100]; char **featlist; int i=0,len=0,fl=0,j; char* x; int … | |
hi, i am pretty new at using c++. i am trying to read a mathematical expression from a file but i keep getting errors. i am using the cin.get function to read it but it isnt working. can anyone help me please. this is what i have. the file being … | |
hi,i m making a windows forms application and i want to make a treeview which displays input of textbox Under the Parent Node . i have tried searching over the internet,but nothing seems to be working. i have added the parent nodes from the properties tab,but how do i change … | |
[QUOTE]Hi I have an INSERT INTO SQL that keeps on retuning an Syntax error in Insert Into. I cant seam to see where the error is, can anyone Help. This is my SQL.[/QUOTE] [ICODE]Dim DesignSQL As String = "INSERT INTO Design_tbl (CustmrID,[User],Builder,Model,Type) values ('" & _ CustID & "', '" … | |
I've got to make a Property To Let program that can allow the user to add, view or delete property details to and from a text file. I have done the add and view part but i am having trouble getting the delete working. I've managed to get it to … | |
I work and have to save an important file in four other locations besides a Linux HD. Instead of having to save the same file for four more times, I would like to automate the procedure through a linux script file in which the [B]first[/B] saved file on the Linux … | |
Plink is a command-line version of PuTTY, a Windows SSH client program. I am trying to get the output from plink to display in a textbox within a VB form. I can get it to work but I must hit the ENTER key twice before it shows anything, everytime. So … | |
Hello Experts When the system user Log off the system , shutdown and so on How to know that in vbcode Bcoz When user Log on i have vb application that automatically work, but when user logg off , shut down i have write code in application Please Help me … | |
I`m trying to to use if statement but something going wrong. statement must be 2 steps IF There is still room in the array and IF there is not an Appointmen on the same Date and Time! Apointment will be accept...... im not getting any error or worning but its … | |
In The Name Of God Hello All i will connect to my table in sql server 2008 but display this message to me. [url]http://www.uploadgeek.com/share-10D4_49F1AEF5.html[/url]. can anyone tell me how can solve this prfoblem? thanks alot. goodby. | |
I am not a java guy.. but made this code ( to open new page sized.. on another page of mine but darn i can not get it to do so on this page? Is it a DIV thing... new to these tags too/// [url]http://www.mastar.com/Presentations.html[/url] Where it say Teamviewer button … | |
I am a EE student who took some C++ classes and is not trying to learn Java. I like to write my code in Notebook++ and want to know how to run in from the Cmd Promt. I was using Netbean, but I do not like all the code it … | |
i have created an exe which shows a message but the problem is i want to create another program from which a person can enter his name, choose destination and click create after clicking create a new exe if made in the location he chose which has the name he … | |
Im trying to run a query like this: Display the names of pairs of customers who have booked the same room together with the details of the location and room. I did try like this: [CODE]select cust_name, room_name, cost_per_day, capacity, loc_name, avenue_site.address from customer, aroom, booking, avenue_site WHERE aroom.room# = … | |
how do I get the maximum, minimum and the average of an array? this may be different but how do I get to stop inputting number in an array. for example if the array is 20 and i only need 10 of them. i think its something about EOF but … | |
hey, im having a problem getting file stored into linkedlists. the program crushes when start reading. [B]these are the structs:[/B] [code=c]typedef struct category { char categoryID[5]; char categoryName[25]; char fareType; char categoryDescription[250]; unsigned numItems; ItemTypePtr headItem; //ptr to item struct CategoryTypePtr nextCategory; } CategoryType; typedef struct item { char itemID[5]; … | |
Hi, Following code snippet show the maximum number of nodes to be created. I execute this code and show the count : 7874 My problem is that I want to create more node than 7874. I have compiled this code by Turboc version 3.0 on Windows XP. [CODE]#include <stdio.h> #include … | |
[code=cplusplus]#include <iostream> #include <fstream> using namespace std; void PrintError(fstream&, char, bool&); int Conversion(fstream&, char&, bool&); int main() { fstream InFile; char Bit; int Decimal; bool BadBit = false; //Open file to read InFile.open("f:\\Binary.txt",ios::in); //Read the first bit of the number InFile.get(Bit); //continue reading all numbers till the end of file … | |
Hello, all: I am trying to get this script to work... What I'm trying to do is to be able to email back customers whose emails I have saved on in my database. So pretty much the emails get sent as it runs the "while" loop. Somehow it doesnt seem … | |
hi, i have spent more than whole day trying to figure out what is wrong in this php sript LINE 3 AND 14, ihave changed the quotes, but it didnt work, it works normal when you enter the date to GUESS THE NUMBER, but in the start page the ERROR … | |
hi everyone! I have two files, main.py and sprite_class.py. sprite_class.py is in a separate folder called lib. here's a quick diagram: ------------------------------------ /folder engine/ main.py /folder lib/ sprite_class.py ------------------------------------ ...sprite_class.py contains a class called Sprite: [CODE] # sprite class class Sprite(): def __init__( self, start_x, start_y, image_path ): self.x = … | |
Hello, I have a form that has several checkboxes. It looks similar to this: [CODE]<input name="service_needed[]" type="checkbox" value="service1" class="checkbox" /> <input name="service_needed[]" type="checkbox" value="service2" class="checkbox" /> <input name="service_needed[]" type="checkbox" value="service3" class="checkbox" /> [/CODE] I'm trying to store the values of whichever boxes are checked inside of one variable so that … | |
Hey everybody, I need a bit of help please. I need to create an 8086 application that will draw a line between two points on the screen that you click on. It's using Bresenham's line algorithm to do the calculations between the two points. I'm using Tasm and Tlink to … | |
Hi all........... i want to use CSS with c# windows appliction control for standard design. But i could not use it. i do not know, how i can link a cssClass for a control such as button, label. Friends plz give solution with a example. Fahad | |
Hey guys, How would I partially specilize a template in a manner as below? Is that even possible? I have these two functions: [code=cpp] bool node::read(const char *filename) { ifstream f(filename); if (!f.good()) return false; bool success = read(f); f.close(); return success; } bool node::write(const char *filename) { ofstream f(filename); … | |
hello, i have just begining learn php, in this form every things looks ok, however a error message that i can't solve it. please give some help because i cant move on before solve this problem. thanks **HTML FORM CODE** <html> <head> <title>simple HTML FORM</title> </head> <body> <form method="post" action="listing9.2.php"> … | |
hi all, i have created a class names members which looks like this.. class mymembers{ int data; float dummy; char* thename; public : mymembers() { cout<<"the value of i is "<<data; data =12; } mymembers(int ic,char* name) { thename = name; data= ic; cout<<"hello this object's data value is "<<data<<endl; … | |
Well, I don't want to do lot of copy-paste in my code, so, I'm just wondering - is it possible to have two different names of one functions(I prefer that function name describe what is used for): ex: [CODE]int do_my_client(int info) { blah blah blah; .... .... return inf; } … | |
I have been working on my final project that i am going to do a simple soccer game. Not graphical. I will ask the user to choose or create a team. Teams are saved in the same file as the code as text files. where i am stuck is, i … | |
Hello! I have a problem when I try to do some interrupt in assembly program. When I try to execute, executable file i get this message "Segmentation fault.". Please help? I have this problem almost all interrupts. Sorry for my bad English. | |
Hello, I've just recently gotten back into VB. I am currently developing a Database for a sort of hobby project, and I am having trouble with displaying it properly. Here is my situation. I have a ComboBox which allows a user to select from a series of categories. Each category … | |
![]() | hi again i want to make something that captures images of my window and sove them into either a gif file or a video file, i thought about using win32s [code] win32gui.GetDesktopWindow() [/code] but i wasnt sure how to use this to save it to the file how could i … |
Hi there, I am having a problem with the following code: [CODE]#include <iostream> #include <string> #include <fstream> using namespace std; int findRows( string line ); int main() { string line; int rows = findRows( line ); cout << "Number of rows: " << rows << endl; } int findRows( string … | |
Following is my client code....I am receiving data of equal size of JPG file... so if anyone can help me out with reading buffer properly and writing it in to jpg file at client side ================================================ do { memset(buffer,0x0,BUFFER_SIZE); // init line rc = read(sd, buffer, BUFFER_SIZE); if( rc > … | |
Question 1: Write a program that reads repeatedly 3 integers a, b, and c and test if they are Pythagorean triples. Whether or not . Your program should keep reading in triples until all three values entered are zero. When The user enters three zeroes, it should exit without printing … | |
Hello, i'm very new to c++ and i'm trying to create some sql but dont really know how. i need a very simple query in php i would do something like: [CODE] $page = "pagedata"; $sql = "INSERT INTO data SET field = '$page'"; [/CODE] i know i cant do … | |
Pls assist me in graph programming in java, how to draw graphs, scale graph and other stuffs of graph | |
Write a class, TimedInstantiation, which will have a toString method which returns a string of the following form: I was instantiated on 12 June 2008, 35 seconds after the previous instantiation of me. if there have been previous instantiations, but if not (that is, if we are dealing with the … | |
When I try to print data to a file, I am getting an error dealing with security saying that I don't have permission to write to a file. Can anyone help me out? Here is the code //import packages import javax.swing.*; import java.awt.event.*; import java.awt.*; import java.io.*; import java.util.*; import … | |
Hi, I am expected to use sscanf function in a program, but I couldn't understand how it works. Can you explain it with an easy example? Thanks -- newbiecoder | |
Hello guys , i created a text based RPG , now how can i save what the player did before he exit? for example , he have killed some monsters , gained exp .. i need to save the exp , his name when he start a new character , … | |
I have a drop down box in a form like this... [code]<select name="product[]" id="unitcost"> <option value="92">92mm</option> <option value="130">130mm</option> </select>[/code] The value selected is passed to a shopping cart. However, I also need to pass a unit price which is different depending on the value selected. Can anyone give me any … | |
Assembly is by far the lest abstract language I am aware of (short of getting a hex editor and punching in raw bits and bytes). I am aware that understanding less abstract topics require greater knowledge. I know it would be silly of me to ask is there a quick … | |
I'm having a problem with the substr function. I want it to be dynamic in a for loop as follows: [code="perl"] for ($i = substr $bin, $sub, 1 ; $sub < $len2 ; $sub++){ [/code] You can probably guess what this code is meant to do. I want to read … | |
Hello Everybody, Need abit of help in my code: Basically I have two forms, namely form1 for Login and form2 is the actual application. The first issue I had was hiding the form1(login-screen) after a successful login which I was able to do by declaring [code=c++] Hide(); [/code] Now the … |
The End.