132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for NewToJava

hi, i just wrote my first java program, it compiles and runs and all, but the console window closes too quickly u can hardly see the output. how can i rectify that?

Software Development java
Member Avatar for Fungus1487
0
148
Member Avatar for hoceandress

will calculate and display the sum of all even even numbers from 2 to n, where n is a positive number inputted by the user..what will i do and what is the expression of that???

Software Development c++
Member Avatar for darkagn
0
117
Member Avatar for Kshiteesh

Dear Friends, I have been working on a VB.net project on VB8 with ms access as backend. While finding certain data by entering primary key in the form i.e. id i experienced a problem. While displaying the values which are null in the database like wise tel1 is null then …

Software Development microsoft-access open-source vb.net
Member Avatar for Kshiteesh
0
582
Member Avatar for plusplus

I have a main form and every once in a while another form is popped up, waiting for input from the user. I have a toolbar on my mainform. When that [B]other[/B] form is shown [B]while[/B] the user is in the sub of menubutton_click, then the program gets stuck, it …

Software Development visual-basic
Member Avatar for plusplus
0
236
Member Avatar for anto_nee

please anyone giv me the sol MsgBox Mid$(txtFirst.Text, 0, 2) whts the prob with this line it displays "invalid procedure call or argument"" please help me

Software Development visual-basic
Member Avatar for anto_nee
0
72
Member Avatar for stanwaka

Hi folks. I need a way to display a counter in seconds until it reaches a user defined limit. I have tried but unfortunately not having much luck. [code] #include <cstdlib> #include <iostream> #include <ctime> // time header using namespace std; int main() { cout << "Please enter seconds: ";//prompt …

Software Development c++
Member Avatar for McQueen
0
3K
Member Avatar for Trevora

Hello I have a need to output a large array for a CNC machine I have built. The attached code includes comments which explains my problem. Thank you for your consideration.

Software Development c++
Member Avatar for Trevora
0
221
Member Avatar for Lardmeister

Right now I have a mixed list of different types of elements: [code=python]mixed_list = [1, 0.5, 0, 3, 'a', 'z'] print max(mixed_list) # shows z, but would like it to be 3 [/code]How can I find the maximum numeric element of the list?

Software Development python
Member Avatar for Lardmeister
0
94
Member Avatar for Lardmeister

Can I display animated images like an animated GIF file using Python code?

Software Development python
Member Avatar for Lardmeister
0
115
Member Avatar for fonzali

hi guys , I am interested in writing a code to do the soduko ( or sudoku ) , I found this code on the internet which is supposed to be the shortest soduko solver but it is so short that I can not undrestand it . can any one …

Software Development python
Member Avatar for fonzali
0
1K
Member Avatar for venomlash

For those of you who also code in JAVA*: Does anyone know of anything in C++ that is at all like paintComponent or the Graphics class? HALP! *ROFLwaffles to those who do

Software Development c c# c++ java java-swing
Member Avatar for venomlash
0
193
Member Avatar for amishosh

Consider the following code: [code] [COLOR=green]#include[/COLOR][COLOR=green]<stdio.h>[/COLOR] [COLOR=green]#define[/COLOR][COLOR=green] SET_BIT(buf,n,val)buf[n]=val[/COLOR] [COLOR=green]int[/COLOR][COLOR=green] main()[/COLOR] { [COLOR=green]char[/COLOR] ch=[COLOR=green]'D'[/COLOR]; [COLOR=green]char[/COLOR] *name=[COLOR=green]"Yankee Duddle"[/COLOR]; [COLOR=green]int[/COLOR] i=5; SET_BIT(name,i,ch); printf([COLOR=green]"%s"[/COLOR],name); } [/code] When compiling with Borland C it worked fine. However when I tried cimpiling it with VS 2005 I got the following error: "Unhandled exception at 0x00413529 in Learning …

Software Development c
Member Avatar for Salem
0
190
Member Avatar for michael.ngobeni

I have a problem with my Hashtable output Hashtable HashTest = new Hashtable(); HashTest.put("B_1", "A"); HashTest.put("B_3", "B"); HashTest.put("B_5", "C"); HashTest.put("B_7", "D"); HashTest.put("B_9", "E"); HashTest.put("B_11", "F"); HashTest.put("J_1", "G"); HashTest.put("J_3", "H"); HashTest.put("J_5", "I"); HashTest.put("J_7", "J"); HashTest.put("J_9", "K"); Enumeration enum1, enum2; enum1 = HashTest.keys (); enum2 = HashTest.elements (); String CityCode, CityName; while …

Software Development java
Member Avatar for ~s.o.s~
0
103
Member Avatar for mimsc

this function call [code=java] <span>• <%=userData.getPhone()%></span> [/code] returns a phone # for ex. 8005551155 Need a suggestion on setting it up as 800-555-1155 when i do the call

Software Development java
Member Avatar for ~s.o.s~
0
111
Member Avatar for venomocity

First of all let me say I love this forum, everyone has been very nice and extremely helpful! Now to my question. I got help with a question like this before and the answer I got worked perfectly. However I have a new angle. I'm wanting to take and subtract …

Software Development visual-basic
Member Avatar for QVeen72
0
105
Member Avatar for Slavrix

hey guys, i got an assingment due and i was wondering if you could please help me to debug this program. 5 files, ass1.h ass1.cpp main.cpp Makefile.txt (needs to be renamed to makefile for it to be used properly) ass1.txt(needs to be renamed ass1.dat to be used[its the database for …

Software Development c++
Member Avatar for Slavrix
0
265
Member Avatar for interspire

I'm new to C++ builder learning C++ builder,i don't know how to install components.I'm trying to use the text highlight & line count feature for the text editor i've created by following instructions in help file of borland.I downlaoded the component from [url]http://delphisci.sourceforge.net/[/url] but there was no installation instruction.i tried …

Software Development c++ delphi
Member Avatar for interspire
0
194
Member Avatar for prs55

I am having difficulty in using array to read large unsigned integer and write them and calculate their sum.Also i am going to implement the following code to check digit and character. [code] for (;;) { ch = cin.get(); if (!isdigit(ch)) break; cout << ch; } and for (;;) { …

Software Development c++
Member Avatar for Salem
0
143
Member Avatar for legilimen

i need source code for parts of speech parser in java...can someone help

Software Development java
Member Avatar for jwenting
0
53
Member Avatar for lollerskates

Hi there I have an application that I've made in Delphi - it runs fine in Delphi and when I save it and run the .exe file, it works fine as well. My problem arises when I zip everything and email it to another computer and then try to run …

Software Development delphi hard-drive pascal xml
Member Avatar for lollerskates
0
878
Member Avatar for toko

Hello, i have been reading the chapter in the book about classes and i have learned everything about them the only question i have now is that wut do you use classes for?

Software Development c++
Member Avatar for Bench
0
117
Member Avatar for plusplus

One of my forms (lets call it frmnew) is opened with vbmodal, since I want the user to finish with that form before continuing. When he presses cmdsave(a command button on frmnew) then while the program is executing that statement I want to show another form (frmsplash). It doesn't let …

Software Development visual-basic
Member Avatar for plusplus
0
98
Member Avatar for php111

hi, I am a beginner and haven't decided to learn how to program in C or Python. Is there any free tutorials in C that is very good? I can run searches in google but i am not sure what tutorials are good or not good. Another question, later in …

Software Development c c# c++ python
Member Avatar for Ancient Dragon
0
125
Member Avatar for sainiricha

Can anyone help me out to start graphics in C!!! i cant understand what books i need to reffer n which online tutorials i should take!!

Software Development c
Member Avatar for TkTkorrovi
0
108
Member Avatar for Fromethius

Hello everyone I'm trying to write a program in native c++ code that will do this: When drawing in MS Paint and I press the P key on the keyboard, the Pencil tool will become the current tool. I really want to stay away from installing drivers, injecting dlls, reverse …

Software Development c++ engineering microsoft
Member Avatar for Fromethius
0
156
Member Avatar for Elfshadow

My friend who is a VB6 programmer is doing a benchmark against C and the VB is running faster than the C but we know this isn't a reliable benchmark Could you look at our benchmarks and tell us any thing that might be causing this. MINGW [code] #include <stdio.h> …

Software Development c visual-basic
Member Avatar for Ancient Dragon
0
276
Member Avatar for JaedenRuiner

There once was a time when VB did not put on airs, thinking itself to be a little language it was great. And then they tried to make it into more than it should be and everything got fouled up. 1. How do i make an untyped array on the …

Software Development delphi pascal vb.net
Member Avatar for waynespangler
0
168
Member Avatar for toko

This is kind of a noobish question but is there a way to turn an .exe file into a source code that you can edit and if there is how.

Software Development c++
Member Avatar for SpS
0
94
Member Avatar for avgprogramerjoe

Hey guys, I "understand" pointers. But I do not understand how I could actually put them to use. If you could give me a few example programs of how they would be used, then I could try to make the programs. I don't want the code, just the logic behind …

Software Development c++
Member Avatar for SpS
0
304
Member Avatar for venomocity

Alright, I dont know if this can be done or not, but can you say, take either a caption or the text in a text box and add or subtract from what's in it, with a click of a button? Allow me to explain, lets say I have a text …

Software Development visual-basic
Member Avatar for kb.net
0
132
Member Avatar for dannyadp

hey all, I'm new to this forum, and really start to like it :). Here we go. I have some trouble helping a "tute" of mine (I normally give physics tuitions) with one of his assginments on C++. As I did C++ years ago, I was feeling confident with it. …

Software Development algorithm c++ data-structure file-stream ios
Member Avatar for iamthwee
0
74
Member Avatar for blondie.simon

Hello I want to cause a time dealy or 100ms in the middle of my code. Can anyone help me on how I can achive this. Thanks Simon

Software Development vb.net
Member Avatar for blondie.simon
0
98
Member Avatar for mattyd

Hello. I am new to Java and I am easing into this new language via some basic tutorials. I am using the Borland 2005 IDE; it is powerful and I quite like it save for that it seems [I]incredibly[/I] bulky, hogs [I]all[/I] resources, freezes, tries to shut itself down, etc, …

Software Development ide java
Member Avatar for jwenting
0
582
Member Avatar for manuson

Hi, I am writing a small app which has just one form with a few browsers in it. It works majorly something like tabbed browsing. Here is wat i am looking for. I need to insert a command button which minimizes the form when clicked. I also want to know …

Software Development visual-basic
Member Avatar for QVeen72
0
134
Member Avatar for tonyf

Hi I'm using the following code to append a text file: Dim sw As IO.TextWriter sw = IO.File.AppendText("C:\MyTextFile.txt") sw.WriteLine(text1.text) sw.Flush() sw.Close() For some reason this is the output: frh001wa2555655 f fr frh frh0 frh00 frh001 frh001w frh001wa frh001wa2 frh001wa26 frh001wa261 frh001wa2613 frh001wa26135 frh001wa261351 frh001wa2613519 Please help! Thanks Tony

Software Development vb.net
Member Avatar for QVeen72
0
433
Member Avatar for vimalv

Hi all Now i am using MsFlexGrid1.textmatrix(1,1) to read values from the grid, is there any other efficient way to read data from MS flex grid..please give an idea

Software Development visual-basic
Member Avatar for QVeen72
0
80
Member Avatar for revenge2

Ok so after quite awhile i finally picked up from where i stopped last. Which was the "2nd" page of the book "sams teach your self c++" lol! (im not much of a reader) But today i intend to start work properly and continue learning c++, so i would just …

Software Development c++
Member Avatar for toko
0
93
Member Avatar for CelestialDog

Hi all, hopefully someone may be able to help me out here. Is there anyway I can take a sequence of numbers and add them together? For example say i have this sequence [1,0,2], what i want to do is basically add each number so in this case the final …

Software Development python
Member Avatar for ffao
0
139
Member Avatar for damanjit

for i in table1 table2 table3 table4 do perl -ne 's/ *\|/\|/g; print' ${AHS_DATA}/${i} > ./${i}.dat done what does `perl -ne 's/ *\|/\|/g; print' ${AHS_DATA}/${i} > ./${i}.dat` mean?

Software Development perl shell-scripting
Member Avatar for masijade
0
108
Member Avatar for K1ngp1n

alright... So I want to learn assembly, and i got a few tutorials. I noticed that there were different interrupts. I went online and searched for a list of them, and i found Ralph Brown's interrupt list....My question(s) is/are, Is it true there is over 120,000 different interrupt commands? How …

Software Development assembly
Member Avatar for K1ngp1n
0
139
Member Avatar for revenge2

Hello i just started c++, and i have a small problem with compiling. The book im reading just told me to compile the following but line 4 has an error/warning.(im using devc++) [code]#include <iostream> int Add (int x, int y) { cout<< "In Add(), received " << x<< "an d" …

Software Development c++
Member Avatar for darkagn
0
145
Member Avatar for scudzilla

Anyone here know the code to view the cpu/ram usage at anytime? Yeah, I know its in the task manager but I want to create a small form and place it on my desktop.

Software Development visual-basic
Member Avatar for scudzilla
0
111
Member Avatar for preetham.saroja

can anybody give m articele or pdf or any other stuff-regarding datagrid_itemdatabound... Or explain,the working procedure of this particular evenhandler.... regards,,, preetham

Software Development pdf vb.net
Member Avatar for manal
0
113
Member Avatar for CelestialDog

I'm trying to write a class containing some code i want to reuse in other projects, but I just cant seem to get it right. I'm hoping someone out there can offer a helping hand. Here is the original code: [code] def Numero(name): 'A function which converts a string to …

Software Development oop python
Member Avatar for CelestialDog
0
215
Member Avatar for acerf1

Hey, I have code in my program that, made line by line appear from my text file (Addition.txt), on my label. It basicly drawed questions from the text file. Now i was wondering if you could help me with the next part. When the question shows, the person is supposed …

Software Development file-system vb.net visual-studio
Member Avatar for iamthwee
0
155
Member Avatar for amishosh

Hi! I cannot access my "Debug Windows" in VS 6. All the windows are grayed out and I cannot select them. What do I need to define to be able to access them? Thanks

Software Development c visual-studio
Member Avatar for iamthwee
0
74
Member Avatar for taran30

[code]i have to make a project in java at the beginners level.....so anybody who has ideas on the same...cud u plz help me...i have only 2 months to complete the project...[/code]

Software Development java
Member Avatar for iamthwee
0
82
Member Avatar for sjewenp

i am totally new to the c++ arena. i have been tasked with writing a program that asks for a number, asks for that many names, in the form, "last, first," sorts the names by last name, but displays them in the form, "first, last," then offers the user the …

Software Development c++
Member Avatar for Lerner
0
278
Member Avatar for tonyf

Hi Does anyone know the code to compare file versions from a server share and prompt the user to download the update if the file versiion is newer? Also how would you get this code to work automatically after launching the app? I've tried ClickOnce but did not like the …

Software Development vb.net
Member Avatar for binoj_daniel
0
141
Member Avatar for pmanya555

hi i am student of msc it i need good project of system sw on java or .net , if any body have any sugetion or idea please help me

Software Development java
Member Avatar for arkaprava
0
96

The End.