92 Topics

Member Avatar for
Member Avatar for venus87

private void decrypt_Click(object sender, EventArgs e) { v = Convert.ToDouble (txtencrypt.Text); t = Math.Pow(v, d); MessageBox.Show(Convert.ToString(t)); MessageBox.Show(""+t.ToString()); MessageBox.Show("" + Convert.ToDecimal(n)); msg = Convert.ToInt16(Math.Pow(v,d) % Convert.ToDouble(n)); txtdecrypt.Text = Convert.ToString(msg); } this is the code im working now for rsa decryption. the problem im getting is the pow function return in exponential …

Member Avatar for ddanbe
0
230
Member Avatar for CoilFyzx

*I know that this may seem like a re-occuring question, but I can't seem to find anyone who has asked this question in a very succinct manner. They always seem to beat around the bush, instead of clearly expressing themself.* **Here is the situation:** I have an application called S.M.A.R.T. …

Member Avatar for JamesCherrill
1
371
Member Avatar for jyothsnach
Member Avatar for Lynne Good

I have registered new custom post types and used this filter to add to my blog homepage add_filter( 'pre_get_posts', 'my_get_posts' ); function my_get_posts( $query ) { if ( is_home() && $query->is_main_query()) $query->set( 'post_type', array( 'post', 'kicksimage3', 'kicksimage5', 'kicksvideo', 'kicksstatus' ) ); return $query; } Now that it is showing on …

Member Avatar for picassokaka
0
417
Member Avatar for thinkaboutyoueveryday

`Inline Code Example Here`**I REVISED MY PROGRAM** #include <iostream> #include <cmath> using namespace std; int main () { const int num=100; float volt[num], sum=0, sum2=0 ; double ave2,standrddev1, standrddev2, standrddev; float average; int i, k=0 ; { cout<<"Enter the number of voltages to be analyzed:"; cin>>k; if (k>100) { cout<<"Maximum …

Member Avatar for NP-complete
0
193
Member Avatar for thinkaboutyoueveryday

# we are assigned to develop a c++ program that accepts a list of a maximum of 100 voltages as input, determine both the average and standard deviation of the input voltages, and then displays the results. There are still errors and it says it requires array or pointer type. …

Member Avatar for thinkaboutyoueveryday
0
213
Member Avatar for thinkaboutyoueveryday

# Develop a c++ program that accepts a list of a maximum of 100 voltages as input, determines both the average and standard deviation of the input voltages and then displays the results. # ## step 1 : requirements : an average, standard deviation step 2: develop solution: the input …

Member Avatar for thinkaboutyoueveryday
0
292
Member Avatar for narendra pratap

Dear all, how i can fetch image path in input field. when i update form the image path has lost their path so it is not updated so please do some help. thanks

Member Avatar for diafol
0
230
Member Avatar for lonelycloud

I've been trying to write a class called Point, with a file Point.cpp including a header file Point.h . I tried to set a global variable of type Point called ORIGIN, however I get an error message saying "error: ‘ORIGIN’ does not name a type" Point.h is as follows: [ICODE] …

Member Avatar for Lizino
0
2K
Member Avatar for rahul.ch

public class GenericDemo<E extends GenericDemo> { E innerE; public E doStuff(E e, GenericDemo<E> e2) { //insert code here } public E getE() { return innerE; } } The options are: 1. return e 2. return e2.getE() 3. return e2 4. return e.getE() Option (1) and (2) compile fine. Option (3) …

Member Avatar for ~s.o.s~
0
246
Member Avatar for donjohnston

I need to know how to transfer /copy a true type data file from true type to text so that it can be read on a windows system. The font used is SERIF and does not transfer to windows as readable data. The font in windows can not read the …

Member Avatar for donjohnston
0
104
Member Avatar for Aviplo

Hi, I can't run my application through web. I believe that it is because i haven't add the extension file name. But it seems like i don't have that 'Add mime type' shortcut in my iis 7. So can any one tell me how can i add that shortcut to …

Member Avatar for CimmerianX
0
152
Member Avatar for rahul.ch

import java.util.*; public class GenericDemo4 { public static void main(String r[]) { Set s1 = new HashSet(); s1.add(0); s1.add("1"); dostuff(s1); } static void dostuff(Set<Number> s) { do2(s); Iterator i = s.iterator(); while(i.hasNext()) System.out.println(i.next() + " "); Object [] oa = s.toArray(); for(int x = 0; x<oa.length; x++) System.out.println(oa[x] + " …

Member Avatar for rahul.ch
0
297
Member Avatar for bryangino20

question is: Give 5 type checks that should be made for the following c++ statement: x=f(v[i]); NOTE: assume x, f,v and i are all declared and in scope. 1. compatibility check (compile time) 2. v[i] is a valid array element. (compile time) (i.e. (i is not a float or something)) …

Member Avatar for mike_2000_17
0
488
Member Avatar for somjit{}

i was watching [this video](http://www.youtube.com/watch?v=jTSvthW34GU&list=EC9D558D49CA734A02&index=2&feature=plpp_video) about type conversion and what the compiler does while converting from small byte formats to large byte formats(and vice versa) etc etc, and tried to write a code for it... but seems that function calls in my code are getting completely bypassed... once again, here …

Member Avatar for somjit{}
0
399
Member Avatar for MonsieurPointer

Hi DaniWebbers, I would like to map a string to a Property using the Dictionary class. For example, I want to map "port" to a textbox's Text property, e.g. myDict.Add(tbPort.Text, "port"). How would I go about defining the dictionary? I've tried the following: * Private myDict As Dictionary(Of Property, String) …

Member Avatar for Reverend Jim
0
255
Member Avatar for skillzbabs

Please the suggested article does not provide solution to my problem. Please I need your help and it is very urgent, I have a data mismatch error in criteria expression. I have a variable of data type string which I added to my OleDbcommand object the code is below: 'This …

0
104
Member Avatar for skillzbabs

Please folks I nid ur help, I av a data mismatch error in criteria expression. I av a variable of data type string which I added to my OleDbcommand object the code is below: I used 2 textbox for surname and fname I av a textbox I used for calculation …

Member Avatar for Reverend Jim
0
259
Member Avatar for Formby

I've had this problem many, many times. And it's always turned out to be a small typo or "" around an integer, but I just cannot find what's wrong with my SQL Statement this time! [CODE]SELECT Card_ID FROM Payment WHERE Customer_ID = 12 AND Card_Number = 1231231231231231[/CODE] The table and …

Member Avatar for kvprajapati
0
1K
Member Avatar for TrustyTony

This is bit funny code as you can first read from this excellent response: http://www.daniweb.com/software-development/python/threads/427341/custom-types-in-a-simple-way#post1828718 why should you not use it, even it maybe feels useful. Anyway I got curious to see how type signature could be implemented, even using it would generally just be stupid way of slowing down …

0
271
Member Avatar for shammons1

All, I'm very new to java having done most of my scripting in Javascript and a little bit in other types of programs. I'm basically trying to obtain a script variable and compare it against a condition and return some println messages. Here is my code: String agentType[] = request.getParameterValues("Agent …

Member Avatar for JamesCherrill
0
1K
Member Avatar for Skate Bart

hey there, Here's my complete code for a delete button that deletes a record in a Heirachical Flex Grid. Dim rsTour As New ADODB.Recordset Dim cn As New ADODB.Connection Dim strSQL As String cn.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;" & _ "Data Source=" & App.Path & "\Luckshan Tours & Travels.mdb;" & _ "Persist …

Member Avatar for Skate Bart
0
398
Member Avatar for GlenRogers

Hey all I need a bit of help if someone can! im writing(trying to!) a small application for a friend who owns a computer repair shop. Its a 'booking in' application. Someone brings a computer/device in and whover is on the front desk takes some details. Name, Street, Town, Postcode …

Member Avatar for GlenRogers
0
327
Member Avatar for hous3aholik

Im trying to create a deck of cards using enums. I already have my enum declared, but I'm stuck in how exactly to create the deck of cards using a boolean array. So far i tried to initialize my constructor, but I don't know what direction to take now. Any …

Member Avatar for JamesCherrill
0
707
Member Avatar for Rogue.

So how would I click on a submit button with the HTML element being: <input src="/images/members/submit_button.png?1331667296" type="image">

Member Avatar for codeorder
0
91
Member Avatar for crag0

I need to write a script that will check a file and find out what type of file it is. The files I am downloading none of them have extensions and some are binary others txt and html files. I only want to work with the binary files. If anyone …

Member Avatar for TrustyTony
0
173
Member Avatar for kishpopboy

pls help.. I have a to create a timecard calculator. it goes this way txtbox1 is for their 1st in txtbox2 is for their 1st out textbox3 is for the difference of txtbox1 and textbox2 txtbox4 is for their 2st in txtbox5 is for their 2st out textbox6 is for …

Member Avatar for kishpopboy
0
161
Member Avatar for Morten Brendefu

Dear knowledgeable ones. Some time ago I made a few of my routines kind of universal, and I wonder if there is any way in Delphi (My version is Delphi9) that can be used to reuse this code in example below. As you see, the two procedures are almost identical, …

Member Avatar for pritaeas
0
282
Member Avatar for jeevsmyd

Suppose I have a simple program to find the largest of two numbers of different datatypes and return the largest.I'm implementing it as a template to support generic datatypes [code] template<class T,class U> T max(T t,U u) return (t>u?t:u); int main() { int x=70; float y=100.5; max(x,y); return 0 } …

Member Avatar for mike_2000_17
0
221
Member Avatar for umair jameel

How to convert int value to another data type in java or from other data types to int.I just need syntax of it.

Member Avatar for JamesCherrill
0
74

The End.