132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jsefraijeen

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
Member Avatar for bibiki
0
3K
Member Avatar for NewOrder

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
Member Avatar for tripleD
0
172
Member Avatar for katmai539

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> …

Software Development vb.net xml
0
150
Member Avatar for dre-logics

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
Member Avatar for Teme64
0
113
Member Avatar for u_v

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
Member Avatar for Akill10
0
110
Member Avatar for kitt_simple

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
Member Avatar for Akill10
0
94
Member Avatar for prem2

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
Member Avatar for Akill10
0
152
Member Avatar for sketchiii

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
Member Avatar for MosaicFuneral
0
392
Member Avatar for jsefraijeen

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
Member Avatar for masijade
0
911
Member Avatar for meensatwork

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?

Software Development c# c++
Member Avatar for ddanbe
0
246
Member Avatar for vineeshvs

[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; …

Software Development audio c
Member Avatar for vineeshvs
0
111
Member Avatar for tendaimare

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
Member Avatar for tendaimare
0
159
Member Avatar for PM312

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
Member Avatar for AndreRet
0
130
Member Avatar for happygeek

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
Member Avatar for MosaicFuneral
0
628
Member Avatar for lochnessmonster

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++
Member Avatar for ravenous
0
116
Member Avatar for Chinjoo

[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
Member Avatar for yash00yash
0
481
Member Avatar for eiven_05

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
Member Avatar for peter_budo
0
153
Member Avatar for raven_rainagi

how to stop the other form from appearing when i clicked the item in combo box??

Software Development visual-basic
Member Avatar for AndreRet
0
56
Member Avatar for tendaimare

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
Member Avatar for tendaimare
0
1K
Member Avatar for hachikocares

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
Member Avatar for AndreRet
0
118
Member Avatar for 3d0army

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
Member Avatar for AndreRet
0
251
Member Avatar for pseudorandom21

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++
Member Avatar for jonsca
0
312
Member Avatar for dinesh.isuranga

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 …

Software Development dataset sql
Member Avatar for dinesh.isuranga
0
172
Member Avatar for insanely_sane

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. …

Software Development c++ ide microsoft
Member Avatar for mike_2000_17
0
194
Member Avatar for stevelll

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
Member Avatar for AndreRet
0
105
Member Avatar for smcr01

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 = …

Software Development java legal
Member Avatar for masijade
0
134
Member Avatar for frexyang

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
Member Avatar for AndreRet
0
2K
Member Avatar for GeekInTraining

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++
Member Avatar for MosaicFuneral
0
451
Member Avatar for MasterGberry

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++
Member Avatar for MasterGberry
0
191
Member Avatar for caut_baia

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++
Member Avatar for mike_2000_17
0
109
Member Avatar for alonewolf23

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
Member Avatar for alonewolf23
0
19K
Member Avatar for Thropian

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
Member Avatar for Thropian
0
282
Member Avatar for thekitoper

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++
Member Avatar for pseudorandom21
0
341
Member Avatar for vedro-compota

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
Member Avatar for saravind84
0
199
Member Avatar for winky

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
Member Avatar for d5e5
0
2K
Member Avatar for XerX

[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++
Member Avatar for MosaicFuneral
0
3K
Member Avatar for jordankaushik

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
Member Avatar for DavidB
0
65
Member Avatar for Enders_Game

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 …

Software Development html-css python
Member Avatar for snippsat
0
224
Member Avatar for CB44

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
Member Avatar for MosaicFuneral
0
135
Member Avatar for BLUEC0RE

Kind of programing in general question but I'm doing it in c so I'm posting in the c forum. My class is dealing with VCards and my prof talks about a process call "unfolding". I have no clue what this means so can anyone give a quick briefing or point …

Software Development c
Member Avatar for MosaicFuneral
0
77
Member Avatar for tedelston

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
Member Avatar for tedelston
0
280
Member Avatar for moshe12007

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
Member Avatar for lolafuertes
0
97
Member Avatar for MasterGberry

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++
Member Avatar for MasterGberry
0
127
Member Avatar for MrCapuchino

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
Member Avatar for MrCapuchino
0
130
Member Avatar for Resentful

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
Member Avatar for Resentful
0
121
Member Avatar for scottdurica

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
Member Avatar for mcriscolo
0
736
Member Avatar for XerX

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 …

Software Development algorithm c++
Member Avatar for mrnutty
0
4K
Member Avatar for PhysicsExpert

[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++
Member Avatar for PhysicsExpert
0
814
Member Avatar for dotancohen

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
Member Avatar for dotancohen
0
189
Member Avatar for agam360

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
Member Avatar for ShahanDev
0
218

The End.