43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Vhalor

Hey guys, been to the forum a couple times but never posted. Thought I'd give it a try. So my problem is basically this. I'm to create a program which reads a line in this form "-6 1 2 3 6" "-10 1 2 5 10" -6 being a perfect …

Software Development c
Member Avatar for Narue
0
124
Member Avatar for wwsoft

I'm making a framework for what will eventually be a game. All objects in game are derived from game_object. I store everything in vectors; The _objects_ vector contains pointers to objects. The problem is when I call update the default update() function from game object is ran instead of the …

Software Development c++
Member Avatar for dusktreader
0
102
Member Avatar for bd338

Hello everyone! If I try to Assemble the following with MASM, I get this error: Code: [CODE] .model small .stack .data message db "Hello world!", "$" .code main proc mov ax,seg message mov ds,ax mov ah,09 lea dx,message int 21h mov ax,4c00h int 21h main endp end main [/CODE] And …

Software Development assembly
Member Avatar for bd338
0
775
Member Avatar for hsp700

What is the keycode of "Escape" while using curses.h???? is it KEY_EXIT?? I hv used this bellow but when i press escape, it prints "^[" instead of stopping the loop! and when i press "g", it does what i want the code to do when "escape" is pressed!!...Help! I am …

Software Development c
Member Avatar for IsharaComix
0
12K
Member Avatar for sniperx99

I would like to specify a file for manipulation from the command line. I am new to python so I'm not really sure how to begin this. I am guessing that I need some options?

Software Development python
Member Avatar for d5e5
0
477
Member Avatar for rwbarrette

I have a script which looks at multiple values within a large database, and draws coordinates on a floatcanvas. I also have some thresehold variables attached to a slider widget. As the slider changes the thresehold value, the canvas is redrawn...well...sort of. It draws the new objects over the old, …

Software Development python
Member Avatar for vegaseat
0
444
Member Avatar for hag++

Ok, having some serious trouble here. My proffesor told us to write a progrm (what it does really doesnt matter here) however he wants a FULL color menu in the console. He showed us an example of what he wants, it was very cool, it had a red backround, then …

Software Development assembly c++
Member Avatar for hag++
0
572
Member Avatar for vivek4020

Hi I am new to Java GUI development I installed the NetBeans IDE I have not used anything other than Visual Studio in my life I have studied Java in school and college and am familiar with it So i was able to create a basic application but don't know …

Software Development ide java java-netbeans
Member Avatar for vivek4020
0
150
Member Avatar for BigGar

Hey, I have a strange problem. I added an image as the background image for a form in VB.net. When I run the program, after approx. 5-6 seconds, the image partially overlays itself, as in an offset overlay of the underlying image. I never had this problem in VB6, but …

Software Development html-css image vb.net
Member Avatar for BigGar
0
117
Member Avatar for cwarn23

Hi - it's me again. I have the following code but don't exactly know what it means or how to make the opposite code. The code I currently have is [CODE]#define rotateleft(x,n) ((x<<n) | (x>>(32-n))) #define rotateright(x,n) ((x>>n) | (x<<(32-n))) [/CODE] Then can be used like the following [CODE]a = …

Software Development c++
Member Avatar for dusktreader
0
382
Member Avatar for jpslayug

Hi All, Good day to everyone! I'm new to Python (and relatively new to scripting, at that), and really benefited from looking at examples on this site, you guys are great! I'm trying to do the following, and need help please: 1. Read an input file, each line formatted as …

Software Development python
Member Avatar for jpslayug
0
224
Member Avatar for sujithy15

what is eclipse? well i am a beginner in java n i am learning the basics will u plzz explain about eclipse in a clear way

Software Development java
Member Avatar for musthafa.aj
0
92
Member Avatar for maddav

Hi, I'm very much a beginner to C++, but I've been assigned a project outside of my programming class that is starting to get tricky. I'm modelling a layered optical system and I need to create N two-dimensional arrays (2x2 matrices to be used in matrix multiplication), where N is …

Software Development c++ matrix-multiplication
Member Avatar for maddav
0
189
Member Avatar for Clawsy

Hi I'm writing a client/server remote viewer application where screenshots of the desktop are sent across the network over a socket. I'd like to reduce the size of the transfer by getting [I]the difference between the two images and then sending the difference[/I]. The difference would be at least a …

Software Development client-server image java
Member Avatar for Clawsy
2
4K
Member Avatar for avirag

Hi!!! I have made a database application and I am unable to delete the record in it.There is one comboobx, a textbox and a listview.For each item selected in combobox I am adding corresponding item entered in textbox . And each combobox and textbox item are displaying in listview.In database …

Software Development listview
Member Avatar for kvprajapati
0
104
Member Avatar for xammy

hi! am a final year student and i need u to help me wit some project topics in vb.net. and the source codes. thanks

Software Development vb.net
Member Avatar for Nick Evan
0
100
Member Avatar for BobFX

Hi, I'm trying to send an e-mail from a managed application. I found the following example: [code] MailAddress ^From = gcnew MailAddress("xxx@zzz.com"); MailAddress ^To = gcnew MailAddress("ttt@zzz.com"); MailMessage ^message = gcnew MailMessage(From, To); message->Subject = "Testing sending mail"; message->Body = "Body of message"; SmtpClient^ client = gcnew SmtpClient( "smtp.foo.com" ); …

Software Development c++ client-server
Member Avatar for jonsca
0
620
Member Avatar for FallenPaladin

Hi, I have a problem, I have written a class, inside another class. No problem with that, but I have now come to develop a unit test for the outer class. The JUnit must be able to test the methods of the inner class as well as all other class …

Software Development java
Member Avatar for FallenPaladin
0
97
Member Avatar for polygon

Dear Folks, I am trying to use python-idiom to reverse a list of lists so that, for example, a = [[1, 2], ['apple', 'orange']] becomes b = [['orange', 'apple'], [2, 1]] My code for this at present is: [CODE] import copy a = [[1, 2], ["apple", "orange"]] if type(a) is …

Software Development apple python
Member Avatar for Gribouillis
0
2K
Member Avatar for k_manimuthu

Hi All, I am trying to get the maximum no of column in a table through XSLT code. Below i had placed the sample table format. Here column tagged as 'th' and 'td'. Some of the column having 'colspan' attribute. I am struggling how to add colspan value in a …

Software Development xml
Member Avatar for varun0703
0
840
Member Avatar for jlego

i have no background with arrays, so please treat me like an idiot. what i am doing: i have a task management system that can share a task between 1-50 different users. whenever a user adds a note or takes themselves off the task, i would like for each user …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
97
Member Avatar for OldQBasicer

I'm new at this. How come this doesn't work... [CODE] Private Sub ColorKeyForm_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint 'Draws diagonal line of dot and dash on form Dim objGraphics As Graphics = Me.CreateGraphics Dim objPen As Pen objPen = New Pen(Drawing.Color.DarkBlue, 3) objPen.DashStyle = Drawing2D.DashStyle.DashDot objGraphics.DrawLine(objPen, …

Software Development vb.net
Member Avatar for OldQBasicer
0
2K
Member Avatar for timbomo

i cant figure out why this outputs the wrong number when i say the length and width is 1 it outputs 2293544. and i dont know if its reading the 2 numbers i put in for length and width i use the magic formula and still does it case 'B':; …

Software Development c++
Member Avatar for Narue
0
106
Member Avatar for timbomo

[CODE]I cant get this to read these numbers correctly 11.95f, SQFT2 = 12.35f, SQFT3 = 13.28f, PI = 3.14159f, when i run it , the answer comes out to be a whole number 11.[/CODE] i also need help on the do while loop i almost got it but i ended …

Software Development c++ ios
Member Avatar for WaltP
0
85
Member Avatar for endsamsara

Hi, well, I have an ArrayList with this values ACU ACU ACU ACU ACY ACY AER AER AER AGC I need to get the number of items of each Word, so for ACU we will get 4, ACY we will get 2, AER we will get 3, AGC we will …

Software Development java
Member Avatar for Ezzaral
0
279
Member Avatar for houlahan

when i run the server and the client i get the following errors: Client: [CODE]Exception in thread "main" java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2570) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1314) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:368) at Client.main(Client.java:29) Java Result: 1[/CODE] not really a error but it should receive the patients name?: [CODE]waiting for connection... Message Recieved:null waiting for connection...[/CODE] so …

Software Development client-server java
Member Avatar for houlahan
0
130
Member Avatar for timbomo

ok how will i keep track of the items i bought? i have not the slightest clue on that. i dont even know where to start. can someone point me in the right direction? [CODE]#include<iostream> using namespace std; int main() { char symb; int item_purch, numb_item_purch, quit,; double mug = …

Software Development c++ ios
Member Avatar for Lerner
0
169
Member Avatar for walter clark

Is there anyone out there that finds Visual C++ (ver8) Debugger broken? Specifically with regard to variables out of scope. I have asked here about specific problems and none of the proposed solutions work. The debugger works on the easiest of things, but half the time, things that are obviously …

Software Development c++
Member Avatar for walter clark
0
102
Member Avatar for yin1031

Hi there I want to use c++ to draw a path The path is based on two variables, x and y and x and y will change automatically every second So I think the flow should be like this: t=0, (x,y)=(0,0) ->draw a point on the graph t=1, (x,y)=(2,2)->draw another …

Software Development c++
Member Avatar for yin1031
0
104
Member Avatar for tibebu.s

hi, how can i change single cell text color in my datagridview by using button i try datagridculomnselectionmode and other options for the now i can only change the all cell. pls tell me what i can do guys.

Software Development
Member Avatar for tibebu.s
0
97
Member Avatar for deetlej1

Hi There, I need assistance with the assert function. The question is convert a date to Julian date and then check which one is the smallest and subtract to show the different days. That is all done. The part I have no idea is how to use the assert function …

Software Development c++
Member Avatar for deetlej1
0
161
Member Avatar for educated_fool

Hello dear All, Now I'm writing an app that have to react on some user's actions in real time and redraw a big form according to this activity and a timer's firing. Also, when redrawing the form, the app must emit some short sounds. For the last purpose I used …

Software Development image user-interface
Member Avatar for educated_fool
0
194
Member Avatar for older3

[CODE] var t:array[1..3,1..3] of integer; i,j:byte; v:text; begin for i:=1 to 3 do for j:=1 to 3 do begin write('Enter elements [',i,',',j,'] '); readln(t[i,j]); end; assign(v,'output.txt'); rewrite(v); for i:= 3 downto 1 do begin for j:= 1 to 3 do write(v, t[i,j], ' ' ); writeln(v); end; close(v); end. [/CODE] …

Software Development file-system pascal
Member Avatar for FlamingClaw
0
168
Member Avatar for wongcc13

I'm working on a porgram for the school works. I wrote the procedure below to save the array of records(directory) into the file. But the procedure won't work when there is a record in the file.It's urgent. Thanks for your help. [CODE]procedure saving(input : array of directory); var i : …

Software Development pascal
Member Avatar for FlamingClaw
0
100
Member Avatar for cwarn23

Hi and I have a hex to int function but it isn't converting the hex to integers properly. Below is the code an example is the hex bb76e739 which should = 3145131833 but with the function it equals 2147483647. I heard sprintf or something like that can convert the hex …

Software Development c++
Member Avatar for mrnutty
0
185
Member Avatar for Clawsy

Hello, I build an applet that plays midi files from a server. The problem is when I start playing the file (MidiSystem.getSequencer()).. it gives me this error in the java console and nothing plays: [CODE]SEVERE: null javax.sound.midi.MidiUnavailableException: MIDI OUT transmitter not available at com.sun.media.sound.AbstractMidiDevice.createTransmitter(Unknown Source) at com.sun.media.sound.AbstractMidiDevice.getTransmitter(Unknown Source) at javax.sound.midi.MidiSystem.getSequencer(Unknown …

Software Development java java-swing open-source
Member Avatar for Clawsy
0
375
Member Avatar for nola_Coder

I am making a pong-like game for a class. I am having trouble with the ball's collision detection. The game is a 1 player version, where the ball and paddle are both contained in a box. The player uses a gun which is built into the paddle, in order to …

Software Development c++
Member Avatar for nola_Coder
0
94
Member Avatar for gangsta1903

[code=c] #include <stdio.h> int main() { char name[50]; printf("enter your name:"); gets(name); puts(name); return 0; } [/code] hello, the above program should first print out "enter your name:", but it does not. it occurs in this way on the console: --------------------------- abc enter your name:abc --------------------------- it prints "enter your …

Software Development c
Member Avatar for gerard4143
0
71
Member Avatar for jesoj

Hi All, Can anybody help me to assign a base class function pointer in derived class constructor? I have got a compilation error while doing so. Please see the code below: [CODE]class Base { public: void (* fnptr) (void) ; void myvurtualfn() { } }; class Derived:public Base { public: …

Software Development c++
Member Avatar for jesoj
0
1K
Member Avatar for iamsmooth

So let's say I have an interface called ExitInterface.java. Inside there is only one method declaration, exit(). I have two classes that implement this: 1) first one is named Exit.java which does System.exit(exitCode) in the exit method. 2) second one named ExitMock.java which doesn't exit, and instead keeps track of …

Software Development java
Member Avatar for iamsmooth
0
100
Member Avatar for db132074

Hi, I'm having a problem with displaying names from a text file. I'm passing the names from the text file to an array that will be sorted, but I'm not getting the names to show like I want them to. It should display the different names as Last, First But …

Software Development c++ file-stream
Member Avatar for NathanOliver
0
918
Member Avatar for nsjoe

Can someone quickly point out what the problem is here? I'm sure it's something small but I've been coding for too long to see it. The problem is that in the balance method call, the first parameter is an array. if I hard code a test array, or if I …

Software Development c++
0
61
Member Avatar for Lukezzz

I have a panel called panel1. What I wonder how it is possible to do is that when you click the mouse on the [B]location 304,369[/B] in the panel, I want to display a messageBox. How would that be possible to identify the location in code ? [code] private: System::Void …

Software Development c++
Member Avatar for Lukezzz
0
522
Member Avatar for ppotter3

Hello, I am working on a program that takes an integer array filled from a random number generator. These values are suppose to be from -5000 to 5000, 2500 of them. Then I want to find the standard deviation of the numbers in the array. I am required to use …

Software Development c c# c++ ios
Member Avatar for ppotter3
0
1K
Member Avatar for sammyboy289

Hi, im a begginer to python, and i've been doing it a small while now, i've been attempting some puzzles of a website, and have met a small problem, and i can't find it. My code is below and i will explain my problem, ask how to sort it, and …

Software Development python
Member Avatar for sammyboy289
0
95
Member Avatar for Begjinner

When you use char(130) you get the é. When you do int('é') you get -23... and with my program to get value it is -126... How on earth can I get the 130 value when entering the é ? Thanks for looking. With this program I printed out the letter …

Software Development c++
Member Avatar for Duoas
0
137
Member Avatar for ssquared

I'm writing a C++ program in which I need to display the bits that represent both a 32-bit and 64-bit floating point number. I had no problem properly displaying the 32-bit number, but I'm having trouble with the 64-bit number. This is the code that I'm trying to use: [CODE] …

Software Development c++ display
Member Avatar for ssquared
0
228
Member Avatar for timbomo

Im trying to figure out how to error trap this program so if the user doesnt put in a valid response then a message will cum up and they will go back 2 the beginning until they do it correctly. also i want to subtract the money they spend and …

Software Development c++
Member Avatar for WaltP
0
99
Member Avatar for purgatoryred

Please forgive my ignorance but forever I've been in the habit of building a library of useful subroutines which I call from an application I am building. Recently the language has been python - a distinct departure from my experience. I've been unable to create a reasonable library. Here's the …

Software Development assembly python
Member Avatar for purgatoryred
0
141
Member Avatar for timbomo

How can i make this into a menu where you select a letter and you get a response that reads you have choosen "a" which is $2.50 /* SIUE's bookstore is having aspecail sale on tiems embossed with the cougar logo. For a limited time, three items, mugs, teeshirts, and …

Software Development c++ ios
Member Avatar for Lerner
0
109

The End.