199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sweetgurl

i want to use a for loop in a function but error occur.. why?? public double weight( double d) { for(int i=0;i<5;i++) { d[i] /= 24;} return d; }

Member Avatar for sweetgurl
0
81
Member Avatar for byrnnryb

Hello, I currently have working code to solve a single first order differential equation using a predictor-corrector. I need to modify this to solve a system of first order differential equations. Here is the system I need to solve: y'' = -y' + 6y; y(0)=1; y'(0)=-2, on [0,4] And here …

Member Avatar for byrnnryb
0
192
Member Avatar for sam8

Hi guys, I'm trying to count the comparisons in the mergesort algorithm so that I can compare it to other sorting algorithms. I've managed to get a count function to work for insertsort but mergesort is being a complete pain! It's probably a very simple problem but I've experimented around …

Member Avatar for sam8
0
3K
Member Avatar for sweetgurl

i want to passing a data from a method but in array.. some error occur like array required but double found and incompatible type.. i don't know how to do it..help me anyone... example: [code]public double getFood(Date date, double AA, double BB, double CC) { }[/code] [code]// below is in …

Member Avatar for sweetgurl
0
131
Member Avatar for THEMARKER

hello there, I 'm new to this, but I'll appreciate it if someone could help me with my script I'm writing a javascript that add's site to favortites. It works fine in IE but not in anything else. This is for a clients site who uses Mac and linux. I …

Member Avatar for irammunir82
0
186
Member Avatar for 00 freedom

hi all, i would like to ask if do you know how to Embed the Remote Desktop ActiveX Control in a Web Page using C#? any help would be greatly appreciated!! thanks!

Member Avatar for murugavel84
0
233
Member Avatar for seven11

I need help in determining,using Big-O notation, the upper-bound for these two algorithms i wrote. They both do the same thing but are coded differently. They both look for all the prime numbers up to some limit, N. This first algorithm: [CODE] public static void algo1(){ primes = new int[n]; …

Member Avatar for Rashakil Fol
0
124
Member Avatar for inisca

[CODE] OpenFileDialog dlg; richTextBox1->Text=dlg.FileNames; [/CODE] Can someone tell me what am I doing wrong? I get the following errors cannot convert parameter 1 from 'cli::array<Type,dimension> ^' to 'System::String ^' I want to multiselect files and then print their names intoo richTextBox1. I know that richTextBox1>Text is System::String^ and dlg.FileNames is …

Member Avatar for kvprajapati
0
200
Member Avatar for emaduddeen

Hi Everyone, There are so many controls, properties, etc in VB 2008 .NET it's mind boggling. I'm amazed at how much this product can do. Does anyone know of a VB 2008 .NET book that describes in simple language and shows sample code for all of those controls, properties, etc? …

Member Avatar for emaduddeen
0
153
Member Avatar for smithy40000

Hello all, i was just wondering how you can make a button link to another page, for instance i want the help option on my start menu to link to a help page, if you can understand this can you please supply a small snippet of code, here is my …

Member Avatar for TrustyTony
0
214
Member Avatar for rickymak

I have this error, " lvalue required as left operand of assignment," for line 10 where scanf command appears. I can't figure out a solution to it. [CODE]#include <stdio.h> int main() { int start; char delay; printf("We're close to blast off.\n"); printf("countdown initiated"); scanf=("%d", &start); do { printf("T minus %d …

Member Avatar for UncleLeroy
0
127
Member Avatar for TrustyTony

Ordering objects is one thing that is changing as we will move to Python3 Python 2.6 gives interesting results [CODE]a=[1,'23',('a','b'),False,[[]],[],'bc',['ab','34'],45,'0',{},True] >>> sorted(a) [False, 1, True, 45, {}, [], [[]], ['ab', '34'], '0', '23', 'bc', ('a', 'b')] >>> print True==1 True >>> print False==0 True >>> print False=='' False [/CODE] Python3 …

Member Avatar for vegaseat
0
219
Member Avatar for AmieFeetandToes

Hello Everyone! I am working on a search form in PHP for a client's website. So everything works, the search brings results. What I am wanting to accomplish now is to be able to search more than one field, specifically first name and last name. Let's say if a user …

Member Avatar for colweb
0
191
Member Avatar for chinnaedu

Hello all, i am in need of developing an application (writing a C/c++ code ) to Run an application(say for example a vlc player or any as such) from the Code and get its process ID and perform certain manipulation and then kill it ..... i want the application to …

Member Avatar for rinku2142
0
160
Member Avatar for blaisemcrowly

Hi Basically i am trying to read a file and insert a specific string at a position. but it seems that the entire process freezes and the program runs out of control. [CODE] fstream shot; char mess[240]; shot.open("file.vix"); while(!shot.eof()) { shot.getline("mess",240); if(strcmp(mess,"<DEPT>)==0) { shot<<"< ANNOUNCED >\n"; //TROUBLE } } [/CODE] …

Member Avatar for blaisemcrowly
0
87
Member Avatar for sennat_26

hi all, thanks for viewing this post.. i have a java constant class for label and button [CODE]public class ButtonConstant { public static final String EXIT=ButtonConstant.getString("BUTTON_CONTENT"); private static String getString(final String key) { System.out.println("inside buttonconstant"); return new LocaleHelper().getString(key); } } [/CODE] here the button content is the key which is …

Member Avatar for javaAddict
0
148
Member Avatar for ubi_ct83

Hi and thanks for viewing my thread, i have a problem with JComboBox. in my situation, i have a code that display JTextArea and JComboBox. this is my code: [code] public class JScrollPanes extends JApplet { //-------------------------------------------------- static String[] t_value2 = { "2", "3", "4", "5", "6" }; // ----------------------------------------------- …

Member Avatar for javaAddict
0
64
Member Avatar for Bobon

Hey lads. Doing a while loop question but am having a little difficulty with this question. I thought i knew enough to get questions like this correct but unfortunately not experienced enough. The following code is attempting to get sum of values in array that are less than 10. When …

Member Avatar for JamesCherrill
0
86
Member Avatar for BuhRock

Im writing the demo for my class to demonstrate each method. The class takes a number and assigns it to a month, or is supposed to. I have it working to say month 1 is January, month 2 is February and so on. I want to user to enter a …

Member Avatar for wolstaneye
0
119
Member Avatar for sennat_26

Hi, Im currently in a situation to get all the application name that is currently running in windows but i can get only the processes that is currently running using the following code Process p = Runtime.getRuntime().exec("tasklist.exe /v "); Can anyone help me out in getting the application name... Thanks …

Member Avatar for sennat_26
0
3K
Member Avatar for charqus

If i have a listBox , with 10 elements ( or whatever ) , can i select a element and to change it's color ? Only for that element , not for all ... Something like: listBox Collection: [B]ENG [COLOR="#ff0000"]UNG[/COLOR] IT RO [/B] Like in my example , to choose …

Member Avatar for charqus
0
113
Member Avatar for Skeltpl

Hi I'm pleased to say that my programming in Python is going really well and I've managed to write about 70% of the codes I need (for a data analysis program) and now I'm starting with the last 30%. :) I have a text file containing data from a set …

Member Avatar for Skeltpl
0
186
Member Avatar for feroz28

I posted the same type of question for my one another jobs related site but still I have not got any solution. Now I have made one more jobs site and having the same issue so still looking for solution. I am using wordpress at [url]http://accounting-jobs-michigan.com[/url]. I am using permalinks …

Member Avatar for feroz28
0
70
Member Avatar for Mohsen6558

Hi a GPS Device Send position information to My server IP and Port with GPRS system Now I Want See That information on server I a project for listen the IP and Port (Like Chat) but I recive only $$ ! why?

Member Avatar for Mohsen6558
0
92
Member Avatar for tien113

hi, i have some problem with my project, can u help me??? I google but no solution found...:( I used hibernate, strust 2 and spring to manage transaction. I want to try catch username in New.java, username is a PK, this pape throw can throw excetption error but the server …

Member Avatar for tien113
0
2K
Member Avatar for ceyesuma

Hi My program is trying to load properties but it is saying it can not read a line of it. Does anyone have an idea why not? [code] dbProperties.load(dbPropInputStreasm); [/code] but error [code] Exception in thread "main" java.lang.NullPointerException at java.util.Properties$LineReader.readLine(Properties.java:418) at java.util.Properties.load0(Properties.java:337) at java.util.Properties.load(Properties.java:325) error here -------> at model.dao.DerbyDAO.loadDBProperties(DerbyDAO.java:160) at …

Member Avatar for masijade
0
195
Member Avatar for pistol-pete

I have to create a class with a default and alt constructor to fill an inventory array of seven elements. Only one dimentional first error is a 1>e:\invclass\invclass.cpp\invclass.cpp\invclass.cpp(83) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int here is my class code why won't …

Member Avatar for pecet
0
141
Member Avatar for thandwandim

For some reasons I'm getting no data populating in my crystal report. I have set the datasourse of my crystal report to the dataset. I filled my dataset with data straight from the database. My dataset is not empty, I always check it first before populating data to the my …

Member Avatar for Syeda.farwa
0
215
Member Avatar for ravens1

I am having trouble with an array. I have to enter some food items and their calorie values and then when finished I have to re enter the food item and then search the array to output their calorie values. My problem is how do I search an array. here …

Member Avatar for rinku2142
0
120
Member Avatar for JerieLsky

Hi, im working on some project on php with mysql, and I'm only actually a beginner in programming with php and mysql. I created a table in mysql which contains several records. I have like 10 records in it. Now what I want to do is I only want to …

Member Avatar for rajarajan2017
0
113
Member Avatar for Explosivo22

I have a web page that has a folder on it say "folder1" that contains powerpoint files(.ppt). What i want to do is make a search box for someone to be able to enter say a specific name of a file and then when they hit submit it will search …

Member Avatar for rajarajan2017
0
74
Member Avatar for jgehlot09

I am writing a simple code in c to extract the values from string for ex-P23V32 gives me output of 23*32. But when I am trying to use the isalpha() and isdigit() to check whether the value is a charecter or a digit, the compiler return always zero. Here is …

Member Avatar for jephthah
0
211
Member Avatar for khan17

hello all, i want to save the web page content into a database. how can i fetch data from that website and save into a sql database. im using c# as front end. need help. expecting reply soon since it needed for my project. thanks.

Member Avatar for Mohtshm
0
120
Member Avatar for adsegzy

Hello friends, I have a html form saved as join.html as below [code] <form id="form1" name="form1" method="post" action="check.php"> Name: <label> <input name="name" type="text" id="name" /> </label> <p>Email: <label> <input name="email" type="text" id="email" /> </label> </p> <p> <label> <input type="submit" name="Submit" value="Submit" /> </label> </p> </form> [/code] and a php file …

Member Avatar for rajarajan2017
0
160
Member Avatar for Hidden_mistakes

I am trying to get my racing game to recognise when two images have hit eachother when this happens I then want the game to display "Player 1 or 2 wins" and then quit the game. My code is very long so i will not post unless i need to. …

Member Avatar for Hidden_mistakes
0
75
Member Avatar for joseph2010

In the filtered text box what are the FilterType are having ? i am using .net framework 2.0, it will not come for filter text box property. reply me the result

Member Avatar for joseph2010
0
115
Member Avatar for Jeun

import java.awt.*; import java.awt.event.*; import java.text.*; import javax.swing.*; import javax.swing.border.*; import java.util.Arrays; import java.io.*; public class BankAccount extends JFrame { // Make these variables publicly available String file = ("THUS.txt"); public static String acctNumber ; public static String custid , acctDateOpened; public static double balance ; private static final String …

Member Avatar for Jeun
0
237
Member Avatar for white feather

ok, so i have this [B]so far [/B] [CODE] String p = "(http|ftp|https):" + // sees if the proto is any of these " (\\:[\\w^\\:]+:)? " + // gets the sub-proto " \\/\\/" + // the two forward slashes "([\\w*.]+)" + // gets the subdomain(s), domain and tld "[\\:\\w*^"; [/CODE] …

Member Avatar for white feather
0
83
Member Avatar for TolucaDiablo

Hello everyone, I'm trying to combine 3 form input fields into 1 that is hidden (Date of Birth). The input fields are DOB-MM, DOB-DD, and DOB-YYYY and the hidden field is DOB which will store the Date of Birth in the following format 'YYYY-MM-DD'. Unfortunately I don't know javascript so …

Member Avatar for rajarajan2017
0
463
Member Avatar for janice777

basically a func named getString is supposed to ask user to enter a sentence, store sentence in the array, dynamically allocate a char array big enough to hold the sentence plus null terminator. then it should copy the sentence to the dynamically allocated array then return the pointer to the …

Member Avatar for Salem
0
116
Member Avatar for Bangus

good day everyone, im currently using vs.net 2003 my problem is that i want to sort items in listview by date (mm dd, yyyy) format and sort by a button not in the column :?: please help me.. thanks in advance!

Member Avatar for Bangus
0
570
Member Avatar for pritesh2010

hello i have big problem on sending Message to mobile. i had created one application where i'm storing the All the information of customer now when they placing order i want to send them message of their bill amount. and bill date. but i'dont no how to send message on …

Member Avatar for kvprajapati
0
107
Member Avatar for malugirl4

I am working on this programming probability assignment for class and I am having trouble figuring out how to work this problem below. 1.) Design and write a computer-based simulation to find an empirical probability for landing on GO TO JAIL/Boardwalk.

Member Avatar for malugirl4
0
78
Member Avatar for emaduddeen

Hi Everyone, I never did custom events and would like to make a sub procedure execute via a custom event from another form that does not have the custom event defined. For example I would like to raise the event from my ok button in one form and have the …

Member Avatar for kvprajapati
0
85
Member Avatar for yinyang

[COLOR="Red"][B]Do I use php or ssh? [/B][/COLOR]If so, please tell me how because I haven't got a clue as to either of them. I'm just a singer who started learning to design one site from the past few months. my site is yummyrestaurants.co.uk. [B]I read this [/B][URL="https://www.google.com/webmasters/tools/docs/en/sitemap-generator.html#execute"]article on how to …

Member Avatar for radlinks
0
247
Member Avatar for Lee21

Guyz please help me on how to know the value of the specific character when i pressed the keyboard, a messagebox will pop out and tell's value of the character that I pressed. For example character a=65 "not sure if it's the real value of a" heres my code.. [CODE]Private …

Member Avatar for Lee21
0
87
Member Avatar for Mikayil

Hi everyone, I am having problem with the relative path in VB.Net. My project contains PDF file that reside on the same directory as all project files. I am using WebBorwser control to open that PDF file. The code below shows what I am doing to display the PDF file, …

Member Avatar for Mikayil
0
3K
Member Avatar for polawyz

Hi my professor for an entry level C++ class recently assigned us a homework problem, but hasn't quite taught us how to approach this problem. The problem asks us to create a working C++ program that has a class called [ICODE]Fractions[/ICODE] that has two int data members called numerator and …

Member Avatar for caut_baia
0
764
Member Avatar for sam8

Hi guys, I'm trying to count the comparisons in the mergesort algorithm so that I can compare it to other sorting algorithms. I've managed to get a count to work for insertsort but mergesort is being a complete pain! It's probably a very simple problem but I've experimented around with …

Member Avatar for sam8
0
472
Member Avatar for sam8

Hi guys, I'm trying to count and time the comparisons in the mergesort algorithm so that I can compare it to other sorting algorithms. I've managed to get a count and stopwatch function to work for insertsort but mergesort is being a complete pain! It's probably a very simple problem …

Member Avatar for sam8
0
465

The End.