132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for thuyson

i want to print textbox contents at a coordinate in C# when user click a button on form.But i don't know code,please help me! Thank you so much!

Software Development c#
Member Avatar for thuyson
0
192
Member Avatar for smi ensi

hi; I find probleme is that the result of run not be saved in the file ; the second things that I m very sad because I work for 2 weeks and I can't up to now to do the programme; the programme is; we have class called A in …

Software Development c
Member Avatar for jephthah
0
110
Member Avatar for koeney

Hi guys I need help with my project I want to write a java code that determine if an expression is tautology or not e.g. P v Q -> R note that: v is or -> is implies i need a help how to start? do i need a truth …

Software Development java
Member Avatar for mytime19
0
89
Member Avatar for stuncrazy

ok so i'm trying to set up my program to insert a new record to my database i keep getting a insert syntax error [CODE] Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click '************************************************ '* ** '* will first verify that all necessary information needed ** …

Member Avatar for Renukavani
0
87
Member Avatar for hinks

hi i wonder if any one can help i have to write a program in java were there is a server and client, what has to be done is that a number is entered on the clients side, which then goes to the server and if the number matches then …

Software Development client-server java
Member Avatar for mytime19
0
88
Member Avatar for kavya_nayak7

hii..i have a toolbar which i hav designed in a form..the problem is thatthe code isnt working...i have used screen.activeform in a select case..i think isnt fully correct..plz do help me out..

Software Development visual-basic
Member Avatar for jhai_salvador
0
73
Member Avatar for Alexia Ooi

This is the program i'm trying to develop. It's not an assignment or anything. I'm just a newbie trying out new stuff. But I'm getting frustrated with this. [CODE]#include <iostream> using namespace std; //========== struct ========== struct nodeType { string song; int rating; nodeType *link; }; //------------------------------------------------------------------------------ //========== function ========== …

Software Development c++ linked-list
Member Avatar for Salem
0
149
Member Avatar for beGinneR24

Hello, i have to create a java program that calculates a polynomial, kinda. the key question i have is i dont understand what this is asking me right here, and if i am understanding it right, why is it not working? this is what it is asking me Create a …

Software Development java
Member Avatar for beGinneR24
0
106
Member Avatar for Bodul

Hi! I have following problem. I need to select multiple random rows in DatagridView with keypress. Ex: Row1 -selected Row2 -not selected Row3 - selected I do have part of code that will update certain field in database on keypress, but i have no idea how to create multiple selection …

Software Development vb.net
Member Avatar for Renukavani
0
1K
Member Avatar for tjsail

Hey Everyone... Not quite sure how it works on these forums as this is my first post, but I am looking to separate elements of lines printed to a text file in real-time for a log parser. An example of the text output is: [INDENT][CHAT WINDOW TEXT] [Sun Nov 29 …

Software Development java
Member Avatar for rohini.vangury
0
519
Member Avatar for TheWolverine

Hi all, I am in the process of optimizing my code and I was wondering what the fastest way is to compute trig functions. I profiled my code and to my astonishment discovered that one of the most time-consuming processes is computing cos(theta) and sin(theta) using the implementation of cos() …

Software Development c++
Member Avatar for nezachem
0
135
Member Avatar for abhay_tanu

Hi Through shell script we put a file on remote sever. After putting file on that server it goes into inbox folder and it appends a hash code to file name. So when getting back the same file from inbox folder it is giving me following error. [COLOR="Red"] /inbox/TESTFILE*: No …

Software Development file-system shell-scripting
Member Avatar for abhay_tanu
0
237
Member Avatar for mewa_ashika

[CODE]Dim scoreArray() As String Dim nameArray() As String Dim NewScore As String 'loads the table Private Sub Form_Load() Dim nf As Integer Dim nFile As String Dim sf As Integer Dim sFile As String Dim scoreFile As String Dim nameWholeFile As String Dim scoreWholeFile As String Dim count As Integer …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
145
Member Avatar for carlakawill

Hi All I am currently creating a website usng asp.net and C#. I have written code to make a simple user login. This just checks my database to match an inputed user name and password and if it returns any rows redirects to the home page. Ive now extended my …

Software Development asp.net sql
Member Avatar for hamer.mike
0
109
Member Avatar for Simon_Templar

Hi... I am fairly new to VBA programming in EXCEL. So my apologies in advance. I have a USERFORM with several CHECKBOXs and one TEXTBOX. When the user clicks a checkbox the textbox appears next to it for the user to enter dollar amounts. I am trying to use the …

Software Development vb.net
Member Avatar for Simon_Templar
0
118
Member Avatar for restrictment

Heh, well my daily project is near finished, and I was looking around for a way to get rid of punctuation from a character array. I looked through the web a bit, and only found immensely complicated formulas which I did not feel like dealing with. So my question is: …

Software Development c++ ios
Member Avatar for restrictment
0
214
Member Avatar for Mattpd

I am attempting to initialize an int[] array of 10 random numbers. Then choose a pivot value from the array. I then place this value in the first position of the array. Then call quicksort on the array, which will call a partition method. This method returns the final index …

Software Development java
Member Avatar for Mattpd
0
114
Member Avatar for drewpee

[CODE]Unhandled exception in VB6.EXE: 0xC00000005: Access Violation[/CODE] my software recently crashes everytime it access it's DB and this error shows up when i click on the "debug" button. I am able to fix this sometimes when I set the Database name and RecordSource to the same DB and table. But …

Software Development visual-basic
Member Avatar for drewpee
0
2K
Member Avatar for Iamthedude

Hi, I've been trying to create an accessor for my class that returns an array of structs as well as another that returns just a simple char array, but I can't seem to figure out how to do it, I had assumed it would just be [CODE] Example_Struct Foo::GetStructBar() { …

Software Development c++
Member Avatar for jonsca
0
163
Member Avatar for smeghead007

ok guys I need your help. Im still new to C++ and what I need to do is read a .txt file into an array. The file consits of number like this ie 345 55555 56788765 5444 333 22 3 55656757 etc.... then I need to sort them using the …

Software Development c++ ios
Member Avatar for smeghead007
0
139
Member Avatar for fugnut

As part of an assignment, I am to create a function to complete the program....I am very new to arrays and would like a little help, code as follows [CODE]// NAME: // ASSIGNMENT: pj70101 - ComputeAverage Function // COURSE: #include <iostream> #include <iomanip> using namespace std; //========================================================= // put your …

Software Development c++
Member Avatar for jonsca
0
115
Member Avatar for pateldeep454

I have this code: [CODE] public static int pow (int x, int n) { if (n==0) return 1; int t = pow (x, n/2); if (n%2 == 0) { return t*t; } else { return t*t*x; } } public static void main(String[] args) { System.out.println (pow (5, 2)); } [/CODE] …

Software Development java
Member Avatar for pateldeep454
0
121
Member Avatar for robski

Hi everyone. I'm new to the forum and thought it would be a good idea to come to the experts with some of my questions. I am currently trying to write a relatively simple program but being quite new to c++ i'm struggling with some things. I am trying to …

Software Development c++
Member Avatar for Iamthedude
0
105
Member Avatar for Nick6425fl

I'll post the question below but I can't get the smallest and largest to print. I'm not even sure I have the math correct to calculate them because I can't get results to print. A local zoo wants to keep track of how many pounds of food each of its …

Software Development c++ display
Member Avatar for DawnDenise
0
322
Member Avatar for philipghu

Hi all, I'm new to system programming. I wanted to read from a file into a buffer (say, buf[BUFSIZ]), from the end to the beginning. For example, if the file contains "Hello", then the buffer will contain "olleH". I know lseek() will reposition the opened file offset. I just tried …

Software Development c
Member Avatar for jephthah
0
346
Member Avatar for pinknblu

Question: how do i get the average to come out, correctly. The first avg., should be 85, next second one: 85.5, then student three: 80. Here's my code: [code]#include <iostream> #include <iomanip> using namespace std; void handleOneStudent(int N); int main() { int NumberOfStudents; cout << "How many students are in …

Software Development c++ ios
Member Avatar for pinknblu
0
340
Member Avatar for PDB1982

I can get my code to compile and produce correctly (as I want it right now), except for one problem: Output: [code]What Degree Polynomial: 2 Enter Coefficient #: 8 Enter Coefficient #: 5 Polynomial selected is: 8x^(0)5x^(1) What Degree Polynomial: 3 Enter Coefficient #: 4 Enter Coefficient #: 5 Enter …

Software Development c++
Member Avatar for jonsca
0
99
Member Avatar for DaveTran

Here's my string [CODE] string str = "a"; [/CODE] Now I use string.Remove() [CODE] str.Remove(0); Console.WriteLine(str); [/CODE] The character 'a' is still there, why is this?

Software Development
Member Avatar for DaveTran
0
102
Member Avatar for Jeff_5_7

Ok i am working on a program for class to add to big numbers. The numbers are entered as Chars then converted to int. Then i need to place them into a dynamically allocated array with a pointer. I need to do this twice to make two arrays and the …

Software Development c++
Member Avatar for Jeff_5_7
0
104
Member Avatar for Zephraph

I'm a beginner in the code world, taking my first programming class this semester. I got bored over spring break and wrote a program to send to some friends just for the fun of it, but I'm having a problem. I want to isolate any character entered that is not …

Software Development c
Member Avatar for jephthah
0
79
Member Avatar for fugnut

I have a switch function in a program that needs a little help. The switch function is as follows [CODE]ostream& displayShapes( ostream& outfile, Shapes ashape) { switch( ashape ) { case Triangle: outfile<< "Triangle" ; break; case Circle: outfile << "Circle" ; break; case Rectangle: outfile << "Rectangle" ; break; …

Software Development c++
Member Avatar for fugnut
0
99
Member Avatar for blackmagic01021

I am trying to use file name as a parameter to a program in DOS. I know it can be done by changing the parameter to the main(). I do not understand the exact way. I have developed a data compression and decompression utility, it works for a particular file …

Software Development c++
Member Avatar for WaltP
0
104
Member Avatar for ShortYute

[I]I i've looked for a shell scripted forum but it's based on .nix so it doesn't apply to me [/I]. I'm making a program that will attempt to lessen the effects of a flash drive when placed in an infected pc. Basically it will make a folder named autorun.inf then …

Software Development c flash
Member Avatar for Adak
0
113
Member Avatar for kooldba

I have two text files which are similar but with different tags: File 1: [code] Ben|2 Jen|4 Harry|8 Bill|3 Jack|2 Jill|2 Rip|1 P|1 A|3 B|4 C|2 G|5 Tom|1 Harr|4 Red|4 Green|2 Red|3 Blue|4 Lent|4 Burrow|2 [/code] File 2: [code] Ben|2 Jen|5 Harry|2 Bill|4 Jack|3 Jill|6 Rip|1 P|2 A|19 B|0 C|1 …

Software Development file-system java objective-c
Member Avatar for kooldba
0
281
Member Avatar for Ana D.

Hi, In my asp.net page, I have the following line inside an UpdatePanel: <input type="text" id="userInput" onblur="DisplayWord()" onkeyup="SearchWord(event, this.value)" /> Is there a way to retrieve the input value in the code behind (VB.NET)? Thanks, Ana

Software Development asp.net vb.net
Member Avatar for emmbec
0
71
Member Avatar for laelzio.mosca

Hi, I`m making a temperature program, the program takes the temperature F and prints the equivalent Celcius temperature. and VS. The temperature is a double, but I get too many numbers after the decimal poit, like( 45.67777777...) I`d like to set it to only one or two numbers after the …

Software Development java
Member Avatar for laelzio.mosca
0
138
Member Avatar for Mych

Hi I'm trying to format a datetime field to just show the date. The datetime is bound to an asp:label and for the Text attribute I have tried the following.... [code] Text= String.Format("{0:D}", '<%# Bind("CReviewDate") %>') and Text= String.Format("{0:D}", <%# Bind("CReviewDate") %>) and Text= String.Format("{0:D}", <%# Bind('CReviewDate') %>) and Text= …

Software Development asp.net vb.net
Member Avatar for Oxiegen
0
103
Member Avatar for squigworm

Hello everyone, I am writing a simple program for homework that processes the users income taxes. Part of the assignment is to allow the user to process a second user if they desire. My problem is that when the user elects to go ahead with round number two. The program …

Software Development java
Member Avatar for squigworm
0
110
Member Avatar for TheWolverine

Hi all, This might be bit of a silly question, but it's stumped me now for over a day and I've scourged the net for info but haven't found anything to sort out what I should be doing. I am currently using Qt Creator 1.3.1 (Based on Qt 4.6.2 (32 …

Software Development c++ macos qt
Member Avatar for TheWolverine
0
2K
Member Avatar for tonyrockcakes

hello i'm using C++ for the first time on my course after a year of c#. We are suppose to make a client and server using pre existing code. One file was server one was of a client. There must be 3 classes a common class/ base class and a …

Software Development c c# c++ client-server
Member Avatar for tonyrockcakes
0
231
Member Avatar for mendheim2

I have been working on this for a very long time. I have also searched for examples but they do not help. Here is what i need to do...I need to take the students score and compare it to average and print out the corresponding grade. I am having a …

Software Development c++
Member Avatar for Jiwe
0
111
Member Avatar for pvsumanbabu

Hi, I have a Date field and DateTime filed as string variables. Now i want to customize their formats as like given below. Ex-1: 20091024 if i specify the seperator as '/' then 2009/10/24 '-' Then 2009-10-24 Ex-2: 200910241011012 if i specify the seperator as '/,:' then 2009/10/24 10:11:12 '-,:' …

Software Development c++
Member Avatar for pvsumanbabu
0
107
Member Avatar for Stevoni

Let me preface this by saying that I've only taken 1 formal programming class and everything else I've learned is from trial and error or Google (forums, blogs). I have never taken an algorithm class or an advanced math class. In the process of making my current application, I need …

Software Development algorithm vb.net
Member Avatar for Stevoni
0
174
Member Avatar for lighten123

For Making long description short see my case: [code] suppose, path: "../defult123/test.txt" my code: ofstream fout("../defult123/test.txt",ios::out); Here in "defult123", "default" is static but "123" is dynamic .So Basically path should be written as: "../default***/test.txt" [/code] So how can i access this dynamic path for writing in test.txt file. [code] so …

Software Development c++ ios
Member Avatar for Salem
0
96
Member Avatar for tquiva

I'm currently trying to edit this program so that it would read 4 inputs on the first line of data, instead of one. All other lines contains just 1 input. I created a program to assign a letter grade to an integer score. This was my first data file: [CODE]95 …

Software Development c
Member Avatar for Aia
0
154
Member Avatar for acos.carlos

Fist of, I'm new hew as the post count shows, so hello. I had this homework where we had to make a program that works with arrays. With that there were little to no problems, but I wanted to make a function for the selection of the option in the …

Software Development c++
Member Avatar for acos.carlos
0
97
Member Avatar for sharpcon

In the code snippet: [CODE=C] int Z; boolean ParsedOk; ParsedOk = sscanf( CommandLine, "%i", &Z ) == 1; [/CODE] I find that a successful parse occurs for both valid numbers, but also for numbers that have trailing rubbish, such as '3Q', etc. How can I detect (and reject) such malformed …

Software Development c
Member Avatar for Aia
0
111
Member Avatar for Katana24

I've created a simple GUI that's purpose is to square or cube a given number that the user enters into the textfield. This all works fine but what I now want to do is to fine-tune it by testing the input. For example if the user enters a non-numerical value …

Software Development gui java
Member Avatar for Katana24
0
84
Member Avatar for pyprog

I am trying to write a program that prints every line of the file until a certain string is found. The file is a plain text file. I put the sample context at the top of the code. But the function gets stuck in an infinite loop. I don't want …

Software Development python
Member Avatar for IsharaComix
0
7K
Member Avatar for timbomo

im trying to practice on: Basic User Defined Functions/ Pass by Value Functions for class and im confused. this code has a problem with it, its not printing everyting i want it to say. can someone help me understand this and what i am doing what wrong and what i …

Software Development c++
Member Avatar for Lerner
0
144

The End.