132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for biojet

Hi everyone, I am trying to idetify the position between start_posi and end_posi and I want to have all information of this position. For Example: [CODE]input 1 : num start end 1 1234 1238 [/CODE] [CODE]input 2 : num position information 1 1236 ACGT [/CODE] [CODE]out put 1234 1236 1238 …

Software Development perl
0
89
Member Avatar for shredder2794

Hello all, How would I go about copying all the files out of a directory and lots of subdirectories and moving only the files somewhere else?(say C:\Test\file1.txt). I dont pretend to be an expert so a full explanation would be helpful. Thanks!

Software Development vb.net
Member Avatar for Oxiegen
0
115
Member Avatar for Brandon.G

Hi, I am currently trying to create a gui program that when you click one button, it executes Net Pause (service), and then the second button executes Net Continue (service), could anyone tell me what code I need to use in order to do this? If it helps, I am …

Software Development c++ gui
Member Avatar for BobS0327
0
500
Member Avatar for trinetra31

Hi, i have to compile some coding to show how dtmf works. Any idea how? I see most of it uses unix c or linux programming? I have only been programming with windows C. Pls do guide me step by step on how to program in these languages. here are …

Software Development c unix
Member Avatar for BobS0327
0
275
Member Avatar for jbutardo

Hi, I have this program that validates error and then logs it in a text file, but here is the problem, I want to know how show the text file that has been made after the logs have been written, for example, I have validated all the errors, and then …

Software Development file-system vb.net
Member Avatar for jbutardo
0
338
Member Avatar for pwolf

the scenario is a fitness test and the challenge was to return a string saying either Gold, Silver, Pass or Fail, depending on certain conditions, they were as follows; gold - the candidate scored 4 or more at each station , and had a total of 13 or more points …

Software Development python
Member Avatar for woooee
0
239
Member Avatar for Mike Bishop

I have an application that needs to know how many excel rows are in a worksheet before they are imported into my application. at the moment I am asking the end user to enter this into a text box, but would like my application to do this can anyone suggest …

Software Development microsoft-office vb.net
Member Avatar for Phasma
0
2K
Member Avatar for divsok

i have Register page and Login page.And for save usernames and passwords i used arraylists in a servlet.how can i forward these arraylists to another servlet for validate username and passwords..?

Software Development java
Member Avatar for divsok
0
170
Member Avatar for Zvjezdan23

My teacher assigned the class this: Create a simple Game Loop for the game Mastermind. (Search the Internet to refresh your mind on how Mastermind is set up.) Have your computer generate a random 5 digit number, as a string. Then the user must guess the number. Using the code: …

Software Development algorithm c++
Member Avatar for Zvjezdan23
0
546
Member Avatar for LeaguePlayer

Hi everyone, Im new to the community and was just wondering if I could get some help :) I have an assignment where i have to create a program for a shipping company and I was wondering if someone could help me with the coding to assign the sum of …

Software Development c++
Member Avatar for cangan
0
239
Member Avatar for jacksantho

Hi, Here is the code. Set con1 = CreateObject("adodb.connection") Set rs3 = CreateObject("adodb.recordset") con1.Open "Provider=sqloledb;Data Source=xxx;Initial Catalog=yyy; User Id=sa; Password=@1234;" rs3.Open "select a.courseid,a.semester,a.period,c.Category,b.credit,a.gradecode,d.GradePoint from x a ,y b,z c,m d where a.rollno='" & pprollno & "' and a.semester<>'" & prsem & "' and a.period<>'" & pperiod & "' and a.categoryid=c.categoryid …

Software Development open-source visual-basic
Member Avatar for ChrisPadgham
0
430
Member Avatar for phorce

Hello, I'm working with files in a C++ project AND the text file that I need to open is in the same directory, however when just trying to open it like this: [code] string inputFile = "myText.txt"; [/code] It will not open, even though it's in the same directory, so …

Software Development c++
Member Avatar for Narue
0
12K
Member Avatar for Hawk123

hi, i really don't know what exactly it is called :P , but i'll try to be clear on what i need. i have a text box and a listbox. when the text box get focus, it loads the listbox and displays the content. What i need my code to …

Software Development dataset vb.net
Member Avatar for hericles
0
679
Member Avatar for Mike Bishop

I have an issue with some new code that I am trying to thread, I am using the code below to start my thred [CODE] Dim t As Thread t = New Thread(AddressOf Me.Main) t.Start() Panel2.Visible = False [/CODE] in my me.main I have a counter using a var, if …

Software Development open-source sql vb.net
Member Avatar for adam_k
0
214
Member Avatar for mzdravkova

I have some problem with this in the textbox must have 6 rows and 7 columns numbers and with button click the numbers must be in diferent 42 labels.

Software Development
Member Avatar for mzdravkova
0
94
Member Avatar for prakhar_cool

[CODE]#include <iostream> using namespace std; class X{ public: int p; }; int main(){ int b; X obj; int X::*ptr = &X::p; obj.p = 100; cout<<obj.p<<endl; cout<<ptr<<endl; cout<<obj.*ptr<<endl; system("pause"); return 0; }[/CODE] When i run this program, i get the output as: 100 1 100. I understand why it shows 100...but …

Software Development c++ oop
Member Avatar for rubberman
0
271
Member Avatar for pseudorandom21

So I can set a global low level keyboard hook from within a DLL pretty easily, but does it actually load that DLL into every process? How is it then, "Global" ? Any useful insight into the way this works? I use the command line program "tasklist" with the /M …

Software Development c++
Member Avatar for dexblack
0
225
Member Avatar for agrzesiak

So i have a problem that reads: Each line of the file consists of a student’s name followed by an unpredictable number of test scores. The number of students is also unpredictable. The desired output is as shown where the numbers there represent the average test score rounded to the …

Software Development file-system java
Member Avatar for agrzesiak
0
4K
Member Avatar for LondonJava

I have configuration properties implemented as a java.util.Properties Object with the mappings saved in a config.properties file. I have managed to update the properties in a user input panel, so the user can change any settings while the application is live. However I want any changes a user makes to …

Software Development java
Member Avatar for LondonJava
0
224
Member Avatar for Ehtesham Siddiq

hi, i want to add some static text in my C#.Net code.But i want some text to be subScript and some to be SuperScript.. Please guide how can i do this?

Software Development asp.net c#
Member Avatar for lxXTaCoXxl
0
487
Member Avatar for Boshra Nour

Hey everyone, I have a listBox that contains number of items & I have a textbox,Command button. What I want is that once I press on the command button,the item which is written in the textbox is now highlighted in the listbox I use VB6 Please help !

Software Development visual-basic
Member Avatar for Jx_Man
0
3K
Member Avatar for Mike Bishop

I have the following code that works fine, it opens and excel file and uploads it into SQL. these excel files can have over 120 thousand records. I would like to put a progress bar on the upload so the end user knows how long the upload will take. The …

Software Development open-source sql vb.net
Member Avatar for Mike Bishop
0
230
Member Avatar for SaimaAsif

// I want to make a program having Queue class where message class instances are being used as messages. Later I want to use another class exchange that takes the messages and distribute to the Queue according to messageID. if message id is "111" the Queue named Q11 should be …

Software Development c++ queue
Member Avatar for SaimaAsif
0
763
Member Avatar for jaclynkinsey

I am having trouble writing a binary search code to search through my string array. I have the user enter the name of a search engine (engine) they want to locate and my binary search function searches through my string array. Here is my code... [CODE] //****************************************************************************** //This function uses …

Software Development c++ programming-construct
Member Avatar for Narue
0
378
Member Avatar for John_Cro

Hello, people I only registered here for this matter (although it is a great forum). I am a ph.d. student and need to investigate eigenvector centrality measure for my homework. I found Phyton code on net and would like to see does it produce the same results as mine, written …

Software Development python
Member Avatar for Gribouillis
0
259
Member Avatar for aishapot

I want to have an alternative way to increment my student no. the current way I'm doing to is in my database, mssql. there's a property called Identity Seed(201200001 - my studentid format) and Identity Increment (1 - no. of increments). The 2012-is the school year, while the 00001- is …

Software Development mssql vb.net visual-basic
Member Avatar for Reverend Jim
0
199
Member Avatar for alle

I am running a program created using [B][B]Visual C++ 2010 [U][U]Express[/U][/U][/B][/B]. I have several dialog boxes to read input data. One works perfectly, but a second one simply does not read any data at all, and I cannot figure out why. The two dialogs are defined as [CODE] LANGUAGE LANG_NEUTRAL, …

Software Development c++
0
119
Member Avatar for zerofreak

Hello guys, I've newly joined this forum since I want to enhance my knowledge in Programming specially in Visual Basic. So for the important part, right now I'm planning on creating a word detector somehow and there are specific rules I was to set in the textbox in relation with …

Software Development visual-basic
Member Avatar for zerofreak
0
552
Member Avatar for wallet123

if u will try to run this, while looking at the codes ull know my mistake, the thing here is when i choose "b" it will show the balance, the a question like this will open up: "Would you like to generate bank slip?" if yes it should go in …

Software Development java
Member Avatar for hfx642
0
154
Member Avatar for jot121

[CODE] public static Integer[] getTopThree(Integer[] values) { int max1 = Integer.MIN_VALUE; int max2 = Integer.MIN_VALUE; int max3 = Integer.MIN_VALUE; //assuming integer elements in the array for (int i = 0; i < values.length; i++) { if (values[i] > max1) { max3 = max2; max2 = max1; max1 = values[i]; } …

Software Development java
Member Avatar for hfx642
0
136
Member Avatar for nickmi

Good afternoon Well my idea is simple.What i want to do is to create a currency converter.Pretty easy task, but i want the currency rate to be updated somehow by an external server, probably from an website.Although i have experience in programming i have no clue how to use an …

Software Development client-server finance java
Member Avatar for hfx642
0
210
Member Avatar for Ararat

I feel really dumb asking this, but why does this code print b,b instead of b,a? the second strcpy() is supposed to copy "a" and put it inside a[1]... [CODE]#include <stdio.h> #include <string.h> int main(){ char a[100][100] = {"a","b","c","d"}; char*temp = a[0]; strcpy(a[0],a[1]); strcpy(a[1],temp); printf ("%s %s",a[0],a[1]); getchar(); }[/CODE]

Software Development c
Member Avatar for Ararat
0
112
Member Avatar for shredder2794

Hello all, So lets say I have a folder and in it I have 3 files. How would I go about Identifying the biggest(in bytes) and moving it somewhere else on the hard drive, say C:\BiggestFile.jpg? Thanks in advance! Shredder2794

Software Development hard-drive vb.net
Member Avatar for thines01
0
381
Member Avatar for Ashenvale

[CODE] for (ctr = 0; ctr<cost.length; ctr++) { cost[ctr] = price[ctr] * qty[ctr]; totalCost = totalCost + cost[ctr]; aveCost = totalCost / cost.length; } System.out.printf("Average Cost: %.2f\n\n", aveCost); [/CODE] with this code the output will be, for example: [QUOTE]Average Cost: 15900.00[/QUOTE] I want my output to look like this [QUOTE]Average …

Software Development java
Member Avatar for NormR1
0
100
Member Avatar for Ashenvale

I'm suppose to follow this algorithm: 1. Declare all ordinary Variables 2. Prepare and initialize all arrays. 3. Prepare array to hold all item cost. 4. Initialize Array cost with 0.(using for()statement) 5. Compute cost of each item then store results to array cost.(using for()statement) 6. compute average cost(using for()statement) …

Software Development algorithm java printer
Member Avatar for Ashenvale
0
123
Member Avatar for enterpise

Actually i try to create a method which can call the scanner keyboard firstly i was trying this void makeRequest(){ request ="Hello"; } So i wanna make like when i call this method it will tell me to input the String by scanning the keyboard is it possible to do …

Software Development java
Member Avatar for enterpise
0
146
Member Avatar for lxXTaCoXxl

I'm trying to convert my C# class library over to C++ and was wondering if this is how scientific notation should look. Any pointers would be nice. [code]// Scientific Notation? private int i = 0; private string Sign = ""; public string Output = ""; public void Sci(double x) { …

Software Development c++
Member Avatar for ravenous
0
161
Member Avatar for coding101

Where are the function bodies to functions like socket,bind,accept, etc??... Using the c socket network programming for unix based systems, we use the api, but where are the function bodies to these functions. Im doing network programming, and I fill in the socket functions, bind, accept, write, read, etc, but …

Software Development api c socket-programming unix
Member Avatar for savoie
0
161
Member Avatar for coding101

I am new to network programming, and trying to read a response from a servers webpage. I can connect, but cannot get the pages source. Heres what I have [CODE] #include <stdio.h> #include <sys/socket.h> #include <arpa/inet.h> #include <netdb.h> int main(int argc,char **args){ if(argc < 2){ printf("2 args\n"); return 1; } …

Software Development c socket-programming
Member Avatar for savoie
0
122
Member Avatar for Foo_with_a_floo

Hi guys i've been stuck by this program for a while... Although you might find it easy,, but i'm still a beginner on c++ so please please help me on this program.. Write a program that will display a pattern depending on the value of n entered by the user. …

Software Development c++
Member Avatar for WaltP
0
413
Member Avatar for wallet123

why is that some of the codes that i put in are not being implemented when i run this?? i mea, the cycle of my program doesnt seem to be flowing the way i want it to be, come take a look :( [CODE] { /** * @param args */ …

Software Development java
Member Avatar for stultuske
0
127
Member Avatar for kchyn

is it possible to pass this to a function? it's size is configured at runtime. for example, [CODE] void test(string s[][]) { return; } int main() { int x, y; cin >> x >> y; string s[x][y]; test(s); return 0; } [/CODE]

Software Development c++
Member Avatar for mrnutty
0
290
Member Avatar for jbutardo

I have this question. I have already imported all the excel data in the datatable, but now I want them stored in a 2 dimensional array, meaning I want to have this kind of thing in the array, something like array[x][y], where x is the row and y is the …

Software Development microsoft-office vb.net
Member Avatar for Oxiegen
0
151
Member Avatar for anthonyjpv

Hi! Im working on a really simple client server app I have a windows forms which is connected to ms sql db using string conn a dataset and a data adapter presented in a datagridview in a form in my table, theres a column for price what i want to …

Software Development client-server dataset
Member Avatar for anthonyjpv
0
135
Member Avatar for gdubz

Im trying to cin >> a string consisted of numbers and letters such as 3j4583 and storing each separate char to a separate index of an array can u help provide the proper syntax?

Software Development c++
Member Avatar for subith86
0
130
Member Avatar for akenawell85x

I'm a student just starting my first C# class in school, our first assignment was to make a simple console app to convert temperatures from Fahrenheit to Celsius. Being the over-achiever that I am, I decided to make a second project and create a form app. It's a very simple …

Software Development c c# c++
Member Avatar for akenawell85x
0
221
Member Avatar for Alex_2011

Dear All, I have the following code but I need to make the users add text to my (Combobox) drop down list. [ICODE]Public Class Form1 Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click Dim userMsg As String userMsg = Microsoft.VisualBasic.InputBox("Enter New City", "New City", "", 500, 500) End …

Software Development vb.net visual-basic
Member Avatar for Jx_Man
0
132
Member Avatar for Daigan

I can't figure out what the error is. [CODE]public void quizTest () { c = new Console(); int total = 34; String[] quizArray = new String [total]; String quizQuestions; int i = 0; int u = 0; try { FileReader readQuestion = new FileReader ("QuizQuestions1.txt"); BufferedReader buffReadQuestion = new BufferedReader …

Software Development file-system java
Member Avatar for Daigan
0
91
Member Avatar for wallet123

i dont know that my error is, my code for balance is not working properly and im having a problem with my if else statements, they say i lack this "{" but i dont know where to put it [CODE] { /** * @param args */ public static void main(String[] …

Software Development java
Member Avatar for mcriscolo
0
178
Member Avatar for Daigan

Are there like 3d pushable buttons in Java? I want to put 3 buttons on top of each other, is that posible? I found JButton and I don't think I can do it with that?

Software Development java
Member Avatar for Daigan
0
125

The End.