132,726 Archived Topics
Remove Filter ![]() | |
Define a method hypotenuse that calculates the length of the hypotenuse of a right triangle when the lengths of the other two sides are given. (Use the sample data in the table below) The method should take two arguments of type double and return the hypotenuse as a double. Incorporate … Software Development java | |
1) why cant my static function see the class variables and a non-static method can: example: [CODE] class Chess { int columnStart; int rowStart; int columnEnd; int rowEnd; public static void Main(string[] args) { int[] locationMap = new locationMap[4]; columnStart = locationMap[0]; rowStart = locationMap[1]; columnEnd = locationMap[2]; rowEnd = … Software Development promotion | |
Hi there, I'll be dropping in quick: I'm trying to pull four <t> nodes from a XML file, eg. [CODE='XML']<?xml version="1.0" encoding="UTF-8"?> <tasks tid="TERMINAL012345"> <t> <reqs>keuringen/bammens3h.xml</reqs> <deadline>200120111600</deadline> <desc>WML keuring BAMMENS-3H</desc> <loc>Danzigerbocht 87 AMSTERDAM</loc> <ocode>TEST1234567890</ocode> <form>quiz</form> <sn>0000000001</sn> </t> <t> <reqs></reqs> <deadline>200120111630</deadline> <desc>Vulgraad meting</desc> <loc>Danzigerbocht 87 AMSTERDAM</loc> <ocode>TEST1234567890</ocode> <form>quiz</form> <sn>0000000002</sn> </t> <t> … | |
I have an application X version 1.0 in Visual Basic 2008 and forwarded through setup installed on a user's PC. In this application was in these settings: Imports System Imports MySql.Data.MySqlClient Now you have a link to webshop and uses HttpWebRequest. There fore I added the following settings : Imports … Software Development vb.net visual-basic | |
create a Report of Customers and my database are MicroSoft Access 2000 Coding are Following Plz somebody hlp me in my project [code=java]import javax.swing.*; import java.awt.*; import java.awt.event.*; public class FrmCustomerReport extends JDialog{ public static JTable JTExpTable; //Start create variables JButton JBSearch = new JButton("Print",new ImageIcon("images/print.png")); JLabel JLPic1 = new … Software Development java java-swing microsoft-access | |
How do I make Two frames? when frame1 is open the frame2 is hide,and when frame2 is open the frame1 is hide? Software Development java | |
Dear all, Scope resoultion operator is used to call the properties or methods of the class. Properties : =========== Variables Constants Why scope resoultion operator cannot be used for non-static variables . Can any one help me out . Thank you, With Regards, Prem Software Development java | |
Hello fellow c programmers( I made a "hello world" program so I'm a c programmer too :) ). Anyway I want to know if there is anyway to make a Dev C program perform an action if it is a certain day such as printing the schedule for the day … Software Development c | |
Implement the following integer methods: a.Method celsius returns the Celsius equivalent of a Fahrenheit temperature, using the calculation b. C = 5.0 / 9.0 * ( F - 32 ); c. Method fahrenheit returns the Fahrenheit equivalent of a Celsius temperature, using the calculation d. F = 9.0 / 5.0 … Software Development java | |
I tried many codes in internet for this but it says Access violation. Can somebody provide me the code snippets in C++ and C# for this? | |
[code] #include<stdio.h> #include<stdlib.h> #include<math.h> #define pi 3.14159265 int **transpose(int **x,int m,int n); int **matrix_mul(int **m1,int **m2,int r1,int c1,int r2,int c2 ); int **dc4(int **x,int nrows,int ncolumns); main() { printf("hi"); int nrows=80000,ncolumns=1,i,j,**x,**dc4_x,**ix,M=nrows,N=ncolumns; //memory allocation for x x = malloc(nrows * sizeof(int *)); if(x == NULL) { printf("out of memory\n"); return 0; … | |
i recently posted a code that i had that i needed assistance for and it was solved it was for displaying all tables in a database.but now i have this code for showing all column names in a table i was in the process of turning it from oledb to … Software Development vb.net | |
i have created a user control for text box to enter date. I have saved time and effots to type for each text (date) box code to check date validity and key typed. but i have lost text and locked property of text box as it is not available on … Software Development visual-basic | |
Want to know how to fix an election without resorting to bribery and corruption? Ever thought about throwing some Return Oriented Programming into the voting equation? Ordinarily, the hacking into of an electronic voting machine might spark a little bit of interest if there were an election looming perhaps. That … Software Development c cybersecurity pdf | |
beth = ted; // beth equal to ted ( 1776 ) beth = *ted; // beth equal to value pointed by ted ( 25 ) [B]beth = &ted; // is this statement result in a compiler error? if beth is an int variable[/B] Software Development c++ | |
[CODE]#include<stdio.h> #include<conio.h> #include<math.h> void hanoi(int x, char from,char to,char aux) { if(x==1) { printf("Move Disk From %c to %c\n",from,to); } else { hanoi(x-1,from,aux,to); printf("Move Disk From %c to %c\n",from,to); hanoi(x-1,aux,to,from); } } void main() { int disk; int moves; clrscr(); printf("Enter the number of disks you want to play with:"); … Software Development c | |
hi there i want to ask if how to transfer data from datagrid to textbox using vb6.0!i'm using Ms Access 2007!!!the code that i have are already ok when saving the information on the Access my problem is i dont know the codes to transfer the data from datagrid on … Software Development visual-basic | |
how to stop the other form from appearing when i clicked the item in combo box?? Software Development visual-basic | |
i have corrected my conn string i am now using sql connection but now when i run the code it gives me he error Object reference not set to an instance of an object. [CODE] 'I put this code in the load event ListBox1.Items.Add(CType(GetTables().ToString, String)) [/CODE] [CODE] Public Shared Function … Software Development vb.net | |
uhm, hello, i was hoping if anyone here can help me with my project its due on next week, im gonna fail if i dont submit this one, problem is i dont really understand visual basic, so im seeking for help here.. well here it goes.. i was asked by … Software Development visual-basic | |
I noticed in vb 2008, you can right click a text box, and in that menu it says, "Text" or something of that variation. You can paste all of the text right there, and your program will start with that text in it. I was wondering if there was a … Software Development visual-basic | |
Hi, I am in need of a good reference for C++/CLI. Right now I need to know how to exit the main loop of a form, such as if the user clicked the 'X' at the top right. Nevermind, the function Close() is what I needed. Software Development c++ | |
this is the way that i used to fill dataset in the formloader (); [CODE] String Query; DataSet ds; SqlDataAdapter myadapter; SqlCommand mycommand; connInterface conn = new connInterface();//connection class private void Form1_Load(object sender, EventArgs e) { cmbEmpID.DataBindings.Clear(); Query = "select * from dbo.bind_tab b"; mycommand = new SqlCommand(Query, conn.createconnection()); myadapter … | |
Ok.. so uptil now I've been using the DOS compiler and IDE for C++, version 3.0 by borland...(which is like ancient history).. But now I think it's about time to upgrade :P So since I have been away from C++ for a loooooong time, I need to start from scratch. … | |
I am a total Visual Basic (VB) novice & am thinking about learning VB; but, before I do expend the time, there’s three question that I need answered first: Can anyone tell me if a VB program can control mouse clicks & program options in a PhotoImpact (a non-Microsoft photo … Software Development visual-basic | |
I got this program that supposed to display a diamond but I only got the top part of diamond to work. As for bottom part I am not sure what calculation I could use. Any hint would be appreciated! Thanks This is the part: [CODE]//Bottom Part for ( row = … | |
Hi, Need help in creating backup/restore on database using SQL Server 2005 with VB6.0 code when the database is on the network. Please Help. frexyang Software Development sql visual-basic | |
I have a program which needs to take the logical drives returned from the GetLogicalDriveString function and store them in a string array for later use in a filepath. I tried doing this directly and it failed. Here's my code: [CODE]#include "stdafx.h" #include <iostream> #include <io.h> #include <time.h> #include <string> … Software Development c++ | |
Ok, so there is a place where the code is being converted into ASCII standard, and then being converted back I believe. I think I know how to do it, but I wanted to get help to make sure that when i am testing for bugs later that this isn't … Software Development c++ | |
Hello everybody.Say i have a template declaration of a class: [code] template <DWORD Style=BS_DEFPUSHBUTTON, LPSTR Type="button"> class WndObj { WndObj (); }; [/code] Now in the cpp file the definition should look something like this: [code] template <DWORD,LPSTR>WndObj<>::WndObj () {} //so i can go ahead and typedef WndObj<> Button; [/code] … Software Development c++ | |
using textpad w/ jdk When trying to use single print line: System.out.println("\n" + var1,"\n" + var2); I get error: symbol : method println(java.lang.String,java.lang.String) location: class java.io.PrintStream System.out.println("\n" + var1,"\n" + var2); I understand that \n is new line, and My instructor told me to just use + "Integer name" for … Software Development java | |
I'm looking for a way to get the first letter of of a string. I already know about the .startswith() but that is for "if" statements I want something like [CODE]print text.startswith() # to give me the left most symbol[/CODE] Software Development python | |
My c++ program asks for input of a integer type if the user inputs a character/string then the program crashes is there another method for this or another way to fix it thank you. Software Development c++ | |
Hello) Explain to me please - that's what does this error mean - [CODE] static void SearchPathBetweenCities(out string ReturnValue, CITY StartPoint, int n2 ) { // ReturnValue += "\n"; n2 += 2; // if (StartPoint.roadmass!=null) {} }[/CODE] error - [QUOTE]Error 2 The out parameter 'ReturnValue' must be assigned to before … Software Development ![]() | |
Hey everyone, Relatively new to Perl and had a quick question. Is it possible to assign a SQL query result to a variable? The query will always return a single interger result. This is what I have thus far: [CODE] use DBI; use DBD::DB2::Constants; $dbh = DBI->connect("dbi:DB2:SLOGAN","","") or die "Cannot … Software Development perl | |
[CODE]#include <cstdlib> #include <iostream> #include "ccc_time.h" using namespace std; int main(int argc, char *argv[]) { double r[10]; Time now; int seed=now.seconds_from(Time(0,0,0)); srand(seed); for (int i=1; i<=10; i++) { r[i]=(rand()%10+1); cout << r[i] << endl; } system("PAUSE"); return EXIT_SUCCESS; } [/CODE] This generates numbers between 1 and 10. What do I … Software Development c++ | |
Hi everyone I need a general formula that is used for finding the determinant value of a NxN matrix.. please help me out........... Software Development c | |
If I have example code: [CODE]url = "someurl" values = {"username" : USERNAME, "password" : PASSWORD} data = urllib.parse.urlencode(values) req = urllib.request.Request(url, data) urllib.request.urlopen(req)[/CODE] it passes username and password to the url that you request. So I want to post a thread in a forum. When I look at the … | |
I have an assignment due tonight. I am in the hospital with kidney stones and in much pain! I brought my laptop but am kind of out of it. Could someone please help so I do not get a bad grade, please! This is for a module of an electrical … Software Development c engineering | |
Hi, I recently installed jcreator and jdk 1.6 i was testing out the program to see if it worked correctly I used a really simple program(below) but whenever I type a second integer, the error "Make sure you enter an integer" appears, I've tried a few simple programs to the … Software Development java | |
hi i write some code to write for access file (.db) but i have some problem and i dont know how to solve it... Here is the code : [CODE] string a = ""; foreach (Control c in this.Controls) { for (int i = 1; i <= 80; i++) { … Software Development | |
I know that arrays have to be given a size when using them, so I tried to, but this piece of code doesn't seem to want to be accepted by the compiler. data is a std::vector<char> so i tried using the .size() function to use the size of the vector … Software Development c++ | |
Hello, I have a textfile added to a resx file. The resx file is called Resources. I have a filestream, and I want to create a filestream object with the textfile. I swear it was working, but now it throws me an argument not valid exception here is my code … Software Development | |
I've got a simple string problem I can't seem to fix. The string itself contains things like "random" & random.next(1,3) & "random2" etc. The string registers all of this as a string and doesn't actually calculate random numbers. Is there any way to fix this? I know that was confusing, … Software Development vb.net | |
I'm building a program allows me to answer questions with radio buttons, and then save a list of the questions and the selected answers to a .txt file which I can convert to a .pdf from Word or some other program. Im using a PrintWriter to write the file, and … Software Development file-system image java pdf | |
In a statistics book there is an algorithm of generating pseudo-random numbers with uniform distribution [0,1]. It says: I. Enter an initial variable X positive integer. II. Multiply X by variable "a", which should be at least 5 digits long. III. Divide a*X by value p (positive integer). IV. Take … | |
[CODE]Table table; table.UpdateSeats(false, false, false, false, false, false); std::list<bool>::iterator Test = table.GetSeats(); std::cout << "The current status of seats: "; for (int i = 0; i < 6; ++i) { std::cout << " " << *Test; ++Test; std::cout << std::endl; }[/CODE] No compiler errors or warnings, just a Debug Assertion … Software Development c++ | |
Hi all, first post. I am a C# novice, but I have some experience in other C-derived languages. I am trying to close a Windows Form and open another. This is the code that I am trying to use: [code=c#] FormChat fm = new FormChat(client, username); fm.Show(); fm.Activate(); this.Close(); [/code] … Software Development microsoft | |
I have tried every thing but it wont work...This program get md5 hashes of files. Here is all of my source code, please help me: ERROR: When trying to put data of MD5Hashes the program automatically sends an empty slot in the array, I even tried to push it one … Software Development open-source |
The End.