199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for costantinos

hello i am stuck at an IO problem and i need some help. I need to read a file that i have but i want to parse it char by char and store the contents in an array. in order to explain i have a file which has two columns, …

Member Avatar for costantinos
0
130
Member Avatar for freemind

Hi everybody! I recently wrote a little simulation program, that simulates a real-time elevator system with 3 elevators. Since the code is around 530 lines I presume it is not a good idea to paste it here. There is some number of minor flaws of logical type and I would …

Member Avatar for Rashakil Fol
0
273
Member Avatar for ds_matrix

[code]///Program for Select Sort //Name: Sharan Shanmugaratnam //Date: June 6th, 2006 //Constants #include <stdio.h> #include <ctype.h> #include <string.h> #include <time.h> #define SIZE 1000 int main (void){ char x[1000][1000], y[1000][1000]; int size; char a[0][1000]; int sorting=0; FILE*file; //Opens the file that contains the 1000 words. file = fopen("words1.txt","r"); //Reads the file …

Member Avatar for Rashakil Fol
0
121
Member Avatar for it-1

i'm using jBuilder 9 interprise and i need to know how to create en .exe and i'm having a trial version so the help isn't available..can anyone help please?? thnx

Member Avatar for jwenting
0
145
Member Avatar for INI

Hi Guys, I am trying to design a program whereby the user will click on button in a form and the system will upload a form from a different excel/vb file entirely. Please could someone tell me how that works or if it is possible at all? Thanks. Ini :?:

Member Avatar for INI
0
162
Member Avatar for yuelabtina

Hi, I wrote a class WAVELET1 in borland c++ 6.0 environment. And used this class member function in another file. It always said there was error when compiled. The error messages were as followings, [QUOTE] [C++ Error] wavelet.h(6): E2238 Multiple declaration for 'WAVELET1' [C++ Error] wavelet.h(6): E2344 Earlier declaration of …

Member Avatar for yuelabtina
0
239
Member Avatar for Matt Tacular

I had that problem a few days ago about running external python programs, which I know know can be done with [code]execfile("filename.py")[/code] But I now have a new problem.... Here is my program I am making for myself: [code]import random from Tkinter import * mainWindow = Tk() strGame="" def dieSimulator(): …

Member Avatar for a1eio
0
2K
Member Avatar for Oxiegen

Hello! Now I have another problem. I have successfully implemented cross-page postback with ASP.NET 1.1 using: [code] [COLOR=#0000ff]Protected[/COLOR] [COLOR=#0000ff]Sub[/COLOR] submit_Click([COLOR=#0000ff]ByVal[/COLOR] sender [COLOR=#0000ff]As[/COLOR] [COLOR=#0000ff]Object[/COLOR], [COLOR=#0000ff]ByVal[/COLOR] e [COLOR=#0000ff]As[/COLOR] System.EventArgs) [COLOR=#0000ff] For[/COLOR] [COLOR=#0000ff]Each[/COLOR] o [COLOR=#0000ff]As[/COLOR] [COLOR=#0000ff]Object[/COLOR] [COLOR=#0000ff]In[/COLOR] Page.Request.Form [COLOR=#0000ff] Dim[/COLOR] ctlName [COLOR=#0000ff]As[/COLOR] [COLOR=#0000ff]String[/COLOR] = o.ToString() [COLOR=#0000ff] If[/COLOR] [COLOR=#0000ff]Not[/COLOR] ctlName.StartsWith(UniqueID & [COLOR=#800000]":"[/COLOR]) [COLOR=#0000ff]Then [/COLOR][COLOR=#0000ff] …

0
118
Member Avatar for Woobag

Ill put my code at the end, as not to scare off anyone from reading on past the code (as if something so simple could scare!) I basically wrote this tonight. I have been working on my C++ skills, specifically in the way of learning newer concepts...such as implementing OOP, …

Member Avatar for Ancient Dragon
0
252
Member Avatar for ayajhane_dhagz

s there a function in php w/c determines how many dimensions an array contain? f so,may i know?..^_^ thnx...

Member Avatar for ayajhane_dhagz
0
172
Member Avatar for tk005x

I got most of it done except one part to it. I also took out the part that picks the word.. I used the compare string command for each guess to see if the letter matches with what the user put in or not. But I wanted it so that …

Member Avatar for agrothe
0
200
Member Avatar for sathiya

Hi all, I hav an application running in ASP.Net using VB. I hav two textboxes which carries user's input and a button. On Click of this button, the values in the textboxes will be added and be displayed in a label in a new window. I hav declared a variable …

Member Avatar for Oxiegen
0
252
Member Avatar for Oxiegen

Hi, all! I've been trying to pass a javascript variable to an asp.net webapp through a hidden input field. All according to post [URL="http://www.daniweb.com/techtalkforums/thread26184.html"]http://www.daniweb.com/techtalkforums/thread26184.html[/URL]. But something seems to be garbled. Here's what parts of my aspx code looks like. [code] ... [COLOR=#0000ff] var[/COLOR] src = document.documentElement.outerHTML; document.getElementById([COLOR=#800000]"pSource"[/COLOR]).Value = src; } …

Member Avatar for Oxiegen
0
137
Member Avatar for vanii

Hi all, I want to know whether "sleep command in shell scripting is a guarenteed command or not " In java 'Sleep() ' is not guarenteed to be called when CPU is Idle. Regards, VANII

Member Avatar for jim mcnamara
0
345
Member Avatar for Sailor_Jerry

How do i return a boolean array? i get an error stating that i can't cast from boolean[] to boolean. I have something like below. [code] method logic... boolean [] information = {true, false}; return information; // this line does not work. [/code] Thanks sj

Member Avatar for Sailor_Jerry
0
167
Member Avatar for wawankot

Dear All, I have alot of old funtions that have 'FILE *' as passing parameter. Now I am using Compound File...It use IStream. Does anybody know how to convert IStream to FILE* ? Thank's

Member Avatar for wawankot
0
86
Member Avatar for racerrunner

Halo can someone tell me how to convert a double variable to 2 decimals? I try using the below code but it cannot work. DecimalFormat df = new DecimalFormat("0.00"); String a = df.format(123.5%11); double AA = Double.parseDouble(a); for instance i want AA = 2.50 instead of 2.5. the program keep …

Member Avatar for jwenting
0
142
Member Avatar for ShawnCplus

I am going to college after this summer for programming and applications development. I have a little knowledge of C++ and very little C. I was wondering if anyone had some suggestions to some exercises projects that would give me a head start if you will, before I get to …

Member Avatar for Rashakil Fol
0
272
Member Avatar for INI

Guys, I have a question, is there any way in code to determine if a button has been clicked? I want to use one form when a control button on a second form is click; I do not know how to do that, though I know it goes something like …

Member Avatar for INI
0
146
Member Avatar for dev.cplusplus

Hi, to all I know this was ask before, but in the Post you say search in Google, I did and I didn't found what I'm looking for. How to connect to SQL Server from C++ code? I found the tutorial: [URL="http://www.codeproject.com/database/sqlconnect.asp"]http://www.codeproject.com/database/sqlconnect.asp[/URL], and is working and is very good, but …

Member Avatar for Ancient Dragon
0
166
Member Avatar for kirawr

hellooo. i've been working with this form lately, and i cant seem to figure out how to make the success/error pages redirect to another page. any tips? [PHP]/////////////////////////////////////////////////////////////////////// //Don't edit below this point if you aren't sure what you're doing! // /////////////////////////////////////////////////////////////////////// $good = "Thanks for emailing me!"; //above is …

0
80
Member Avatar for angle188.shroff

Hi I have one opensource of vc++. While executing this code it is giving the following errors. 1)error C2433: 'HWND' : 'inline' not permitted on data declarations 2)error C2143: syntax error : missing ';' before '{' 3)error C2447: '{' : missing function header (old-style formal list?) 4)error C4430: missing type …

Member Avatar for Dave Sinkula
0
474
Member Avatar for Udhas

Problem: Write a program that prints the following diamond shape. You may use output statements that print a single asterisk (*), a single space or a single carriage return. Maximize your use of repetition (with nested For … Next statements) and minimize the number of output statements. * *** ***** …

Member Avatar for waynespangler
0
165
Member Avatar for acezrwild817

I am using the invoke() to call a delegate in order to communicate with another form in a different thread. The code is below. You can see at the bottom (before the stars) where the thread is started. The method below that is being called by the delegate in the …

Member Avatar for _r0ckbaer
0
112
Member Avatar for brale

J don't know how to detect mouse click and how to get cordinates of mouse pointer in the moment of click? J need functions that detect mouse click on console.

Member Avatar for brale
0
112
Member Avatar for cancer10

Hello, Is there any way I can prevent simultaneously multiple downloads from my site with PHP? I mean I want a user can download only 1 file at a time, the second file can be downloaded only after the first one is finished. Thanx in advance for the help.

Member Avatar for digital-ether
0
212
Member Avatar for JC_McGeekster

Hello, These past few months I have been working with the C language. Before that, I was writing console applications with C++. I eventually got to the point where I couldn't seem to do anything more with C++, so I decided to use C as I know it is better …

Member Avatar for JC_McGeekster
0
254
Member Avatar for YoTaMiX

Hello to you all , I am Trying to Implement Code for Void** Array which will Store Strings in a QUEUE system . I can see the Strings in the Queue . I am sure i dis the Casting OK, But i need a fresh pair of eyes. Also is …

Member Avatar for YoTaMiX
0
150
Member Avatar for Shaftcmu

I need to "clean" the database so I only have data starting from 1-1-06. Can anyone help? Thanks.:)

Member Avatar for pty
0
130
Member Avatar for Mamata

Hi, I'm not a beginner in C...I'm more used to C/C++ programming through Microsoft visual C++ rather than Simple compilers such as TurboC. Now I've loaded TurboC in my home PC so that my brothers get started with C programming... But we are not able to compile any program... Error: …

Member Avatar for WaltP
0
153
Member Avatar for CStallion

I just need to know how to count the entries of an array like this one: [code] string array[] = {"entry", "entry", "entry", ... , "entry"}; [/code] Thanks!

Member Avatar for iamthwee
0
143
Member Avatar for Debbie Webbie

I'm having trouble with a module in my program that is supposed to read in the files in a directory and return those with the .xml extension. When I import the module from the command line it works perfectly and will return a different list as soon as I change …

Member Avatar for Debbie Webbie
0
136
Member Avatar for Taral

Can anybody show me, how can we collapse, expand a pane/window in python? Thanks in advance for the help!!!

Member Avatar for bumsfeld
0
145
Member Avatar for hbmarar

hi, I could not help a friend of mine when shew asked me this .- She on creating a database and tables opted for encryption and she is now complaining that she is not finding it encrypt as she is able to get the data in not- deciphered form ... …

Member Avatar for Comatose
0
138
Member Avatar for j4mes_bond25

One of the page from my presently under-contruction website can be seen on [url]http://members.lycos.co.uk/darsh25/Personal%20Website/services.php[/url] As it can be seen from the HEADER (right at the top) that I've the text-size selector (which isn't working, at the moment) along with the present date (as set in user's own computer). Realising that …

Member Avatar for digital-ether
0
118
Member Avatar for BronxBoriqua

I want to learn C+ but i want to start with a simple compiler. I have access to Borland C++ and Visual studios.net but they are way to overwhelming. Can some body give me names of decent simple programs that I can learn with.

Member Avatar for jetru
0
147
Member Avatar for aarya

i have gon through w3school about xml. i know what it is ext.but still not able to get idea how it is useful and anybody show the website example to show how xml is useful.thanks

Member Avatar for inkrajesh
0
97
Member Avatar for Gody

Hi everybody, I have a XML file having data stored in tags as <Username>[I]User name here[/I]</Username> <Password>[I]Password here[/I]</Username> (There will be data of around 100 users) I need to display this data in a HTML file in a tabular format. Kindly help me.

Member Avatar for inkrajesh
0
175
Member Avatar for isaacmacdonald

I'm using the latest VS C++ express edition for a basic intro to c++ class that is largely focused on numerical applications. Anywho, for whatever reason, I'm getting strange behavior from scanf("%c",&whatever). The program is supposed to use switch to perform some operations on input integers, but way before I …

Member Avatar for WaltP
0
108
Member Avatar for challenger

I'm not sure if this is the right place to put this. Here goes: I would like to convert a html page to an image. I've done googling. Most of the findings led me to downloading sharewares. As this project has a tight budget, I reckon I should build something …

Member Avatar for challenger
0
132
Member Avatar for SeekAnswers

Good morning all, I was wondering if VBScript could do the same thing as what the below JavaScript is doing, that is to focus on a form control after the user has made some mistakes in his/her inputs... <script type="text/javascript"> function Verify_Inputs() { if(document.Testing_Form.Testing_TextBox.value == "") { alert("Please enter a …

Member Avatar for SeekAnswers
0
218
Member Avatar for hotteaboi

hi i got this program how do i sort this....thanx alot [URL="http://www.ee.umanitoba.ca/~pcard/371/assignment1.py"]http://www.ee.umanitoba.ca/~pcard/371/assignment1.py[/URL]

Member Avatar for Dani
0
180
Member Avatar for cocojim

I was trying to implement "strcat" myself, however, I found that the following commands simply won't work: "..... char *p; p="string"; *(p+2)=a; " I was thinking that this will change "p" to "staing". But no. It compilies fine, but when I tried to print out p, i got error message: …

Member Avatar for cocojim
0
237
Member Avatar for ATS

I am a small business owner and I am trying to develope a way to keep track of my daily expenses and so on. What I have envisioned is a program that when it starts displays a screen that has you input a date, then a new screen will appear …

Member Avatar for extofer
0
106
Member Avatar for kris.c

hi all, I am required to generate an array having 100 random numbers, where there is absolutely no repetition and the case where the ith element of the array is the number " i " itself is not allowed .. I found some ideas where we could generate pseudo random …

Member Avatar for Narue
0
284
Member Avatar for aarya

hi i i am new to java and i have the thearotical knowledge of j2ee. i have experience in asp and php. but now i want to learn j2ee and persue my caree in j2ee platform. thats y i want to do som mini project based on swings and applet,jsp,xml …

Member Avatar for jwenting
0
127
Member Avatar for ghadahelal

hallo i want 2 know if there is a function that reads from an input file and after reading this char will disapear. i mean the read char will b disappeared.

Member Avatar for Ancient Dragon
0
217
Member Avatar for induricharan

hi iam using visualstudio.net 2005 can anyone help me . if we complile and execute an asp.net application.where r the global.aspx and assemblyinfo files are stored.please help me regarding this topic

Member Avatar for Narue
0
211
Member Avatar for ghadahelal

hallo i need 2 deal with each digit after the floating point. ex . 12.5678 i need 2 compare the 12.5 with another number and then the 12.56 and then 12.567 and so on till 4 digits is there is a function that takes the int number and one number …

Member Avatar for jetru
0
244
Member Avatar for CharlesTeck

I am using a list template from the STL in BorlandC++ Builder and have a problem in that I can't get it to release the memory it uses once I reduce the size of the list. The documentation states I should do the following: [code] // Remove data from the …

Member Avatar for Salem
0
192

The End.