199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Halomak

I am having problems while trying to communicate with the serial port. I have read many tutorials online and found all of them either to be not useful or just too complicated for the task which I must achieve. The task is simple. I want to: 1) Open a port …

Member Avatar for Halomak
0
121
Member Avatar for spades0001

import java.io.*; public class Amortization { public static void main (String[] args)throws IOException { BufferedReader dataIn=new BufferedReader (new InputStreamReader (System.in)); double loanamount=0.0, interestrate=0.0, numberofyears=0.0,amortization=0.0, a=(1+interestrate),b=numberofyears ; String TextInput; System.out.print ("Input the loan amount: ") ; TextInput=dataIn.readLine () ; loanamount=Integer.parseInt (TextInput) ; TextInput=dataIn.readLine () ; System.out.print ("Input the interest rate: ") …

Member Avatar for dangari
0
236
Member Avatar for manosha

hi 2 all, I'd like to ask: how can we Concatenate elements of two dynamic arrays?? and if there is any example it'll really help. thanks in advance :)

Member Avatar for javaAddict
0
56
Member Avatar for Shaabangbang

Hello, i have a question about string manipulation, i am supposed to write a function that takes a character array and returns a void, so far so good, but its supposed to reverse the array as output, for example, if the input is "Hello" the output is "olleH", here is …

Member Avatar for rajnish.singh
0
238
Member Avatar for llocks

Hello everyone, I am currently taking java and Im trying to learn how to write methods. I want to know learn the best way that I can learn how to read/write methods in a code. Im currently writing a code using lastindexOf. I do understand that im using this to …

Member Avatar for javaAddict
0
97
Member Avatar for myk45

Hello. i wrote a program to do the following: [B]Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted. [/B] This is what i tried: [CODE] void trimString() { char s1[] = …

Member Avatar for myk45
0
179
Member Avatar for niths

hi all, i am trying a query but i am not getting the result properly.. Is there any error in my query.. [CODE]$query ="select Emp_Id,First_Name,Last_Name,Gender,Mobile_No,Email_Id,Blood_Group from Employee where"; if($empid!='') { $query1=$query . " Emp_Id like '".$empid."%' and"; // echo $query1; } if($empname!='') { $query1=$query . " First_Name like '%".$empname."%' and"; …

Member Avatar for niths
0
141
Member Avatar for davidbrennan

I have 4 entities Product no Enumerable interface ProductFieldLookup has Enumerable interface Lookup no Enumerable interface LookupType has Enumerable interface var pfl = (from pflSet in p.ProductsFieldsLookups where pflSet.IsAvailable = true select pflSet).ToList(); I want to retrieve lookups data that is connected to the returned list and apply a filter …

Member Avatar for davidbrennan
0
114
Member Avatar for lounestor

[CODE]=if(J39="incomplete",""if(j39="complete",Now(),J39)[/CODE] this updates to the current date but i want it to save the time do static once it reaches complete. I would much appreciate the help thanks Louise

Member Avatar for AndreRet
0
109
Member Avatar for exekiel101

[B][/B] uhm sir... the program must be like this... ([I]<<snip>>[/I]..awwwhelp me plsss the rows and columns must input numbers manually ...and the result will be like multiplication table... the outcome must be like this: number of rows?: 5 number of columns: 6 input rows: 2 3 5 1 0 input …

Member Avatar for civirol02
0
286
Member Avatar for nagatron

Hello to all, I would like to ask if it is possible to transfer a text from a VB textbox to HTML textbox? If it is, how? Thank you in advance. Regards; nagatron

Member Avatar for AndreRet
0
174
Member Avatar for gregarion

Hey guys , as from what i read up , the function srand() and rand() are able to give u random numbers if they are being run one time only. What i am trying to do is to produce a set of random and unique numbers from 1 - 10. …

Member Avatar for ixmike88
0
116
Member Avatar for bufospro

Hi all, I am new in c++ programming and I am trying to make some examples But unfortunately I have some problems My code is : [CODE] #include <iostream> #include <string> using namespace std; int main() { string firstname, lastname, fullname; cout << "First name: "; cin >> firstname ; …

Member Avatar for stevanity
0
103
Member Avatar for sg79

Hello, can someone help me write this C++ program: An array can be used to store large integers one digit at a time. For example, the integer 1234 could be stored in the array a by setting a[0] to 11, a[1] to 2, a[2] to 3, and a[3] to 4. …

Member Avatar for Intrade
0
277
Member Avatar for hanes84

Hi anyone can help me edit VB6 code to VB.NET code cause i have been working on it and still can't get any thing on it. there are some code which cannot be recognise by .net pls help.

Member Avatar for bagraoprasad
0
252
Member Avatar for swathys

hi, this is the code that i use to press enter. how do i make that enter to be pressed only once not more than that. PLEASE HELP!!! [CODE] Private Sub frmPasscode_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress blnPwdFromKeyboard = True If Char.IsNumber(e.KeyChar) Then Select Case Microsoft.VisualBasic.Val(e.KeyChar) …

Member Avatar for swathys
0
141
Member Avatar for jamal.yaqub

I want to execute a command to query DHCP Server. For that purpose I have written some code in perl. Now when I execute that perl file in command prompt using c# I get following errer "The specified executable is not a valid Win32 application." I have pasted the code …

Member Avatar for =OTS=G-Man
0
229
Member Avatar for sean_king

I am working on a class project that calls for a test score calculator that calculates and displays the score total, score count, and average score. If the user clicks the Display scores button, the application sorts the scores and displays them in a message box. There is also a …

Member Avatar for lolafuertes
0
1K
Member Avatar for anthonyjpv

I am working with multiple forms in C#. My startup Form /or/ Parent Form /or/ Form1 is a login form. on my Form1, I have a textbox1 for username and textbox2 for password and a buttons for submit and cancel. on click event of submit button,if textbox1.text && textbox2.text are …

Member Avatar for sumran ali
0
204
Member Avatar for xmassey

Hello, I am trying to print all the selected checkbox values to a textbox separated by commas (, ). However, the first value in the textbox always starts with a comma (, ) i.e. (, one, two, three) etc. My current script trys to check if the first 2 characters …

Member Avatar for dobriyalji
0
1K
Member Avatar for SunnySideUp

Hi, I am using Tiny MCE as a Textbox to get user generated input which can be bold, italic, underlined, lists and different alignments. When the user submits the form data the information is then saved to a variable like below: [CODE] $jobDesc = mysqli_real_escape_string ($dbc, $trimmed['txtJobProfile']); [/CODE] The I …

Member Avatar for SunnySideUp
0
202
Member Avatar for notuserfriendly

I am reading from a file. After i tokenize and assign each value to a string field i call the constructor and initialize the object. next i want to add them to an array. I have done this with a vector and all i do is [CODE=java]ObjectVec.add(obj1);[/CODE] Mind you this …

Member Avatar for masijade
0
175
Member Avatar for wowz

[CODE]public class Triangle { /*-the lengths of all sides -the perimeter -the angles at all corners -the area */ public Triangle(double xa, double ya, double xb, double yb, double xc, double yc) { x1 = xa; y1 = ya; x2 = xb; y2 = yb; x3 = xc; y3 = …

Member Avatar for masijade
0
162
Member Avatar for suhnako

please help! we are going to develop a web-based learning management system..what programming languages should i use? including php.

Member Avatar for theausum
0
92
Member Avatar for cretaros

Hey Lifesavers! How can i dispose the current frame holding the combobox on item selection to navigate to the next frame. The dispose(); method does not dispose the Main class, when i select supplier item onthe combo list. how can i reolve this; sample code from the sodes is below. …

Member Avatar for masijade
0
233
Member Avatar for gaurav_13191

I have written the following code for converting infix to prefix.. [CODE] //Infix to prefix conversion #include<stdio.h> #include<conio.h> #include<string.h> #include<ctype.h> #define MAX 25 void initstack(struct stack *); void push(struct stack *,char); char pop(struct stack *); char *convert(struct stack *,char *); void show(struct stack); int priority(char); struct stack { char arr[MAX]; …

Member Avatar for Schol-R-LEA
0
239
Member Avatar for ssubnel

How do I make my array legal? It doesn't seem to like my style here. [CODE]import java.util.Scanner; public class solveQuadratic { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Scanner input = new Scanner (System.in); double[] eqn = new double[2]; double[] roots …

Member Avatar for ssubnel
0
125
Member Avatar for mybluehair

I've been looking at some tutorials on an easy way to open a c++ thread, but all have different answers and solutions. does anyone have a nice tutorial?

Member Avatar for DELmE
0
158
Member Avatar for himmat.m4

Hi, I have following ajax code so here I want to help to edit the code. I have servlet name is SendInfo.java. here feaches destination cities and add into Arraylist according destination city selected by dropdownlist listFrom then that Arraylist send back to displayCity.jsp and displayed in second dorpdownlist listTo. …

Member Avatar for himmat.m4
0
94
Member Avatar for stevanity

Guyz please help me Ive got a practical exam tomorrow can anyone give a simple coding for implementing prims algorithm. It accepts the vertices and cost and gives out minimum spanning tree. Please guyz. It must be very simple. It need not be perfect. It need not work for all …

Member Avatar for Adak
0
689
Member Avatar for DrueY

Hellur! Can somebody explain how exactly a fast fourier transform is performed on a wave file? What's happening behind the scenes? I need to get a basic idea of how it works. Thanks in advance drue

Member Avatar for Adak
0
120
Member Avatar for Unidennn

Hi, im trying to finish up my assignment on tic tac toe game.. and my program keeps crashing, here are two functions where i think it crashes, probably the first one: [CODE] void tic_tac_toe_init (char *ttt[3][3]) { char i,j; int k=' '; for (i=0;i<3;i++) { for (j=0; j<3; j++) { …

Member Avatar for abhimanipal
0
125
Member Avatar for Alerwiali

Hi everyone ! i am being asked to write a code of Block'd game that is implemented in Nokia phones ..i really dont know what to do as a beginning could any one help ?? Thanks alot .

Member Avatar for abhimanipal
0
81
Member Avatar for baltair

I am trying to break from an infinite for loop, if the user has entered a blank line, but I want to continue if the user has entered a word. here is code to show. [CODE]#include <iostream> using namespace std; int main( void ) { char szMessage[32]; for(;;) { cout …

Member Avatar for baltair
0
116
Member Avatar for hq1

Hi, so I wrote this program to find the GCD of two numbers, the program runs just fine its that I also need it to display how many times it loops, I cant get it to do that. Can some one please tell me what I'm doing wrong, Thanks! [CODE] …

Member Avatar for hq1
0
90
Member Avatar for Ilyana

[code] #include <cstdlib> #include <iostream> #include <iomanip> #include <fstream> using namespace std; int main() { const int SIZE=81; char input[SIZE]; fstream nameFile; nameFile.open("Bands.txt", ios::in); if (!nameFile) { cout << "Error: Cannot open file." << endl; return 0; } nameFile.getline(input, SIZE); while (!nameFile.eof()) { cout << input << endl; nameFile.getline(input, SIZE); …

Member Avatar for Ilyana
0
102
Member Avatar for jonow

I know how you can send text messages through PHP like you send an email (explenation: [URL="http://venture-ware.com/kevin/?p=106"]Sending a Text Message (SMS) with PHP [/URL] and more info: [URL="http://www.stemkoski.com/sending-text-messages-using-php-for-free/"]How to Send Free Text Messages Using PHP[/URL]) but the person has to give their cell phone provider (ex: Sprint, AT&T, Verizon). I …

Member Avatar for jonow
0
1K
Member Avatar for gisek

Hi, I've just started reading about OpenGL and I found out that this is a really low level api. I've created some simple 2d games in xna and sfml and now I want to try my hands at 3d and OpenGL. I've already learned that I can't simply load a …

Member Avatar for emilo35
0
584
Member Avatar for requimrar

Hi, I'm new to this forum and would like to ask a question relating to C#. I am trying to make my custom OS, and shutting it down, but I am encountering a problem. Here is what I have so far: [CODE]using System; using Cosmos.Compiler.Builder; namespace CosmosBoot1 { class Program …

Member Avatar for JoshuaBowden
0
396
Member Avatar for JCal1108

My task was to write a function that dynamically allocates an array of integers. The function should accept an integer argument indicating the number of elements to allocate. The function should return a pointer to the array. Here is the code I wrote, my pointer returns the starting address of …

Member Avatar for Unimportant
0
120
Member Avatar for Smithy566

Hi all, to simplify my problem, I'll use a quick example. Imagine I have a class of 'Cat' which has accessors for things like 'name', 'colour' and 'height'. I then put these cats in a list [CODE]List<Cat^>^ catList;[/CODE] I want to be able to search this list based on the …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for Sorcher

Greetings, I got no clue how to make / set a session. When i login on my page and then press a link i get out-logged, I've tried to read on PHP.net but i cant get it together. Anyone got an explaination or code i could go from to keep …

Member Avatar for Sorcher
0
124
Member Avatar for noraz

Hi, I'm building a small information retrieval (IR) application using VB6. I'm stuck at calculating the tf.idf part. I've google for the solutions/codes, but didn't find anything in vb6, except other languages such as phyton etc (which I'm not familiar with). I'm also a beginner programmer in vb6. I've looked …

Member Avatar for noraz
0
553
Member Avatar for Brandlax

ok, i am relly messed up...im currently developing a flash game..and there in frame 1, i have many instances (movieClip), event listeners, etc. But the problem is, when i tell it to go to the next frame, it shows an error saying this cannot be found or other things... how …

Member Avatar for keshavgarawal89
0
197
Member Avatar for gerard4143

Hi, I have a question about constructors and the difference between passing by value and by reference. If you look at the two examples I attached. Example one has a constructor that passes by value and example two pass by reference. Now I want to know why example one will …

Member Avatar for gerard4143
0
120
Member Avatar for Kratoswoo

Im trying to do this code to create a Parking ticket Simulator. This is the code. public class Parking_Ticket { private String make; private String model; private String color; private String licenseNumber; public int minutes; public class ParkedCar { private String make; private String model; private String color; private String …

Member Avatar for Kratoswoo
0
245
Member Avatar for gchurch

hey all i have 3 drop down boxes: one for the day, month and then the year. however i'd like to have it so that the person choosing the date can't choose a past date. In other words if they try choose for instance the 14th Oct when it's now …

Member Avatar for hielo
0
81
Member Avatar for itisnot_me

how would i find out if an number is in between certain values. ex number 33 Set values 0-10 10-20 20-30 30-40 output 30-30 thanks in advance

Member Avatar for diafol
0
88
Member Avatar for Violet_82

Hi all, I am trying to make sure that users can only input integers in my program and no other types. Here is the program: [CODE]#include<iostream> using namespace std; int main() { int numbers[9]; int k; cout<<"Enter 9 numbers: "; for( k = 0; k<9; k++) { cin >> numbers[k]; …

Member Avatar for Violet_82
0
147
Member Avatar for raheel_88

I'm having trouble with a for loop! I'm trying to solve a differential equation using Euler's method like so; [TEX]\displaystyle\frac{dy}{dx} = 7{y^2}cos(y^2)-3e^{xy}, \ \ \ 0 \leq x \leq 1 \ \ \ y(0) = 0[/TEX] This is solved using the algorithm [TEX]y_{n+1} = y_n + hf(x_n , y_n)[/TEX] Where …

Member Avatar for Unimportant
0
834

The End.