199,114 Archived Topics

Remove Filter
Member Avatar for
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 …

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() …

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 …

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 …

Member Avatar for vb5prgrmr
0
145
Member Avatar for bluebird

Hi! I am tryig to write a simple j2me MIDlet program. Using that program, a user has to fill the required information to make an air reservation. And he also can see the resersation list. I used the Recordstore to write and read again that reservation list. But my program …

Member Avatar for bluebird
0
231
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 …

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 …

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: …

Member Avatar for restrictment
0
214
Member Avatar for Cman2020

Hello guys help pls i'm trying to populate data from MS Database to list-view [code] string Collect_FULL = "SELECT FirstName, MiddleName, LastName, " + " Gender, DoB, Dependents, Address + ', ' + City + ', ' + State + ', ' + ZipCode AS Address, PhoneNumber, MobileNumber " Status …

0
79
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 …

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 …

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() { …

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 …

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 …

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] …

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 …

Member Avatar for Iamthedude
0
105
Member Avatar for Mici21

I was searching around but I could not find it: I'd like a tool(free or paid) that is able to manage multiple MySql servers from the same GUI. I know about a few thick-client apps that do this, but I need one that you can use it from internet(forget about …

Member Avatar for Mici21
0
116
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 …

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 …

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 …

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 …

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?

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 …

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 …

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; …

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 …

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 …

Member Avatar for Adak
0
113
Member Avatar for letlet_pogs

Hello, i am just a beginner,i have no idea on what system should i have to start. Right now, i only think as Hotel Management System, will anybody help on how to start it?Thank you ahead.

Member Avatar for Ezzaral
0
73
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 …

Member Avatar for kooldba
0
281
Member Avatar for SMHouston

Ok, so here is my problem. I'm making a telephone registry that lets a user add information such as first/last name, address, zipcode, state, and telephone number. Then they save the contact. Which seems to be where my problem is. The contact is saved and their information is posted. A …

Member Avatar for SMHouston
0
164
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

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 …

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= …

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 …

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 …

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 …

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 …

Member Avatar for Jiwe
0
111
Member Avatar for unknowndevil41

Hi friends, i have made an website and running it through iis after publishing. But is showing an error: [COLOR="Red"]Server Error in '/' Application. Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and …

Member Avatar for Ossehaas
0
170
Member Avatar for deepak@d

Hi I am a newbie in PHP.I need to dynamically create check box based on the value in the combobox.Is AJAX the only solution?How do i get the value of check box?Thanks in advance.Pls help me out.

Member Avatar for diafol
0
292
Member Avatar for kavithaje

i need help to create website for online test using asp.net with c# coding.. it shld consists of question with multiple answer choices

Member Avatar for _V_
0
1K
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 '-,:' …

Member Avatar for pvsumanbabu
0
107
Member Avatar for Jooks

hi there do you know if it is possible to select data from a comma separated file? i need only name and message from this and show it in plain html or css number$sex$state$name$surname$zip$street$city$e-mail$ip$message$ there are many lines in the csv

Member Avatar for Jooks
0
108
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 …

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 …

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 …

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 …

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 …

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 …

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 …

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 …

Member Avatar for Lerner
0
144

The End.