132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for smoore

Okay so I have an ellipse and I could like to have a "racecar" (actually just a 10x10 rectangle) follow the ellipse around the edge. The point that is always touching the ellipse is the upper left hand corner of the "racecar." I'm not even sure where to begin writing …

Software Development java
Member Avatar for neilcoffey
0
134
Member Avatar for likewhoa

When i hit the start button i just get white boxes and no image for the dynamic and the image does not show for the random image i get a red x wondering if anyone can help me thanks! [code] Dim r As New Random Dim s As String Dim …

Software Development image vb.net
Member Avatar for Teme64
0
133
Member Avatar for Diamonddrake

I have written (mostly) with some take from a simple tutorial a calculator control for a program I am working on, the control works fine, except i would like the control to accept key input, like the windows calculator does, i.e. asterisk activates multiplication, enter evaluates and the numbers are …

Software Development
Member Avatar for Diamonddrake
0
6K
Member Avatar for Samran

Hi all, I have written a code in assembly, assembler used is NASM. The code worked with XP 100% correctly but it is not working with Vista. Please tell me how to make it work on Vista too. In XP and VISTA both, I went to Start > Run > …

Software Development assembly
Member Avatar for sysop_fb
0
135
Member Avatar for llemes4011

Hi. I have a predicament... I'm trying to make a JComponent that looks like this: _____________________ | | |Option Name [Text Field] | |____________________| It's for a Option screen that I asked about earlier (I got that part working fine). But now, I need a component that has the option …

Software Development java
Member Avatar for BestJewSinceJC
0
392
Member Avatar for r00ster

My friend is doing a course in computer science and needs help with a few questions considering assembly. Well at least I think it is assembly. Here goes: 1. What alphabetic character will be moved into DL if the mov dl,25h instruction is executed? 2. What is the length of …

Software Development assembly
Member Avatar for sysop_fb
0
176
Member Avatar for scuzzo

I need to output the first five lines or the last five lines of a .txt file the user provides while using switches in a command prompt. I've got it other than printing the lines to the screen. [CODE] #include <iostream> #include <fstream> #include <string> using namespace std; const int …

Software Development c++
Member Avatar for NathanOliver
0
93
Member Avatar for Jarredpsmith

Hi All I have come to the end of my first large project and would really appreciate some guidance on how to go about getting it into a finished state. There are a few issues im worried about and having come this far and with a deadline looming im so …

Software Development
Member Avatar for kvprajapati
0
99
Member Avatar for Lukezzz

I am reading a .txt file line by line and when the line in the file is "Hello1", I want to Replace that Line with "Hello2" but I dont get that to work. I think I miss something out here [code] //Save this emailadress to the RouletteDataBase file String Path …

Software Development c++ file-system
Member Avatar for landonr
0
280
Member Avatar for dranoel23

Well, i have a problem with the snake in my problem... if it runs into the body it dies. But, if I press, for example, up when i am going down, it loses. How do i keep my self from doing that? Here is the code for the movement: [code]public …

Software Development java
Member Avatar for llemes4011
0
154
Member Avatar for daviddoria

I was looking at this: [url]http://www.parashift.com/c++-faq-lite/ctors.html#faq-10.18[/url] I don't understand [code] File f = OpenFile("foo.txt"); [/code] It seems like File is one class, and OpenFile is a separate class, so how can you assign an OpenFile to a File? Also, is it necessary to have this second class? Why not something …

Software Development c++
Member Avatar for Ancient Dragon
0
296
Member Avatar for BlackStar

[ICODE] #include <iostream> #include <cstdlib> using namespace std; struct A { A *B; }; struct C{ C*D; }; int main() { A * Z = new A; C * Y = new C; Z = Y; cin.get(); return 0; } [/ICODE] it says cannot convert Z to Y in assignment.

Software Development c++
Member Avatar for NathanOliver
0
101
Member Avatar for tinajl

Hi All, I'm very new to VB, and I've been working a project for a class for a while. I'm trying to link totals from three different forms to a final form, but I'm getting stuck w/my coding. Someone suggested that I use the first form to set up the …

Software Development vb.net
Member Avatar for c0deFr3aK
0
110
Member Avatar for bmcutler011

[code] #include<iostream> #include<fstream> #include"d_nodel.h" using namespace std; int main() { dnode<double> *listA = new dnode<double>; dnode<double> *listB = new dnode<double>; double sz1, sz2; int val1; //first set of integers int val2; //second set of integers ifstream inFile; //declares the inFile ofstream outFile; //declares the outFile //Read in a file to …

Software Development c++
Member Avatar for NathanOliver
0
143
Member Avatar for drfcool

Hello everyone, this time i have a question about this 2 algorithms,they are suposed to solve colisions in hash tables! Does anyone have Python Examples of Implementations ? I was given homework with this, im doing research on them, but the only language i consider myself capable of doing advanced …

Software Development python
Member Avatar for sneekula
0
2K
Member Avatar for lqdo

hello all, I'm getting some unexpected behavior from the ifstream object when using the open method. im reading the following characters from a text file: [CODE] ############### # #X# # # ### # # ### # # # # # # # ## ## # # # WWWW###WWWW # # …

Software Development c++ ios
Member Avatar for NathanOliver
0
131
Member Avatar for musique

What is wrong with my sorting function? I am trying to put numbers in ascending numbers. [code] void sort(int array[], int numts) { int lowIndex, lowest; for (int count = 0; count < (numts-1); count++) { lowIndex = count; lowest = array[count]; for (int index = count + 1; index …

Software Development c++
Member Avatar for musique
0
255
Member Avatar for NathanOliver

hi i have a very large array that i want to populate but i don want to run the for loops every time so i thought i would right a program to output text to fill the array and was wondering if this would work. the array is [icode] int …

Software Development c++
Member Avatar for NathanOliver
0
107
Member Avatar for badplasmid

Hi all, New to the forum here, and coding in general. I am posting because I am having a problem with a simple program intended to act as a word, character and line counter, with each counter being its own function. I keep running into the same problem over and …

Software Development python
Member Avatar for badplasmid
0
98
Member Avatar for Laidler

im having a problem getting an abstract method to work, heres the code [CODE] abstract ImageIcon getPicture(); { return picture; } [/CODE] When i compile the code i get the following error: Appliance.java:30: return outside method return picture; Can anyone help me fix this?

Software Development java
Member Avatar for BestJewSinceJC
0
197
Member Avatar for BlahHx2

Ok lets say i want to make a web browser with tabs how would i get the first tab to display a webpage like google.ca as soon as the application opens?

Software Development vb.net web-browser
Member Avatar for Jammerx2
0
212
Member Avatar for rahul8590

i am working on my project which is on regeression of lines . well i have been successful in fitting a straight line to the given set of coordinates . since i have come so far after a lot of striving , i have been a bit exhausted on writing …

Software Development c++
Member Avatar for Salem
0
673
Member Avatar for Svolacius

In file "sudoku.dat" is 9x9 size matrix. In one 3x3 bloc, can be from 2 up to 6 unknew digits, however main unknow digits amount in all matrix, must be not over 36 digits. Unknow places marked with symbol ? Example (3x3) ?9? 4?? ?32 I need program which could …

Software Development c
Member Avatar for Aia
0
118
Member Avatar for HalloJoe

Hi all! I need to check if an object with equal property value(CustomObject.Key) exist in my custom list In a List(Of String) i would do it like this [code=VB.NET] Public Class StringList Inherits List(Of String) Public Overloads Sub Add(ByVal s As String) If Not Me.Contains(s) Then MyBase.Add(s) End If End …

Software Development vb.net
Member Avatar for tennisace24
0
4K
Member Avatar for dranoel23

I am having trouble creating the snake, let alone making the animation. I need someone to assist me in creating such things, as well as helping me complete the program. Thanks [code]import javax.swing.*; import java.awt.*; import java.awt.event.*; /** * @(#)SnakeGame.java * * * @author * @version 1.00 2009/4/30 */ public …

Software Development java java-swing
Member Avatar for dranoel23
0
431
Member Avatar for daviddoria

To redirect clog, I have been using this: [code] std::streambuf* clog_save; std::ofstream ofs; clog_save = std::clog.rdbuf(); ofs.open(LogFilename.c_str()); std::clog.rdbuf(ofs.rdbuf()); cout << "Test cout." << endl; std::clog << "Test log." << endl; std::clog.rdbuf(clog_save); ofs.close(); [/code] However, it seems like bad "code reuse" practice to have to put this in every program I …

Software Development c++
Member Avatar for ArkM
0
178
Member Avatar for kenji

Hello, I need some help understanding the nonlocal variables and functions. Currently I'm reading "A byte of Python" to ease myself into the language, which so far seems to be fairly straightforward even if the syntax is a little strange coming from C++. I have copied a small script from …

Software Development python
Member Avatar for vegaseat
0
136
Member Avatar for olejl

I am trying to learn some c++. To do this I have chosen to write an emulator. I had it up and running, but decided to try to make a better architecture. I have a strange problem that I don't understand. If I compile the following code (Visual C++ 2000 …

Software Development c++
Member Avatar for ArkM
0
622
Member Avatar for therealsolitare

Hey everyone, I've been getting my rear end kicked by this homework assignment. We were given the task of writing up a command line version of Othello (Reversi) in a higher level language, which I chose C++ to do so in. My C++ version of the code is working great, …

Software Development assembly c++ ide microsoft-access
Member Avatar for Salem
0
6K
Member Avatar for saadjaved14

Hey... ok before i start i want to say that i'm not a very good programmer... and i'm new with this... and i got a project that i have to submit in 2 days so i badly need help!! ok the problem is: I'm using binary file handling, a code …

Software Development c++ file-system ios
Member Avatar for ArkM
0
107
Member Avatar for jonnytabpni

Hi folks, I am currently making a piece of software in c# which uses a very large .dbf (yuk!) database (about 120MB). I have a "Remote" class which is used to do the database operations. I use ODBC to connect to this database. All works, except that due to the …

Software Development
Member Avatar for jonnytabpni
0
194
Member Avatar for llemes4011

Hi, I'm trying to make an Options screen for the game that I'm writing. I know how I want it to look, but I don't know how to add Tabs, or move the buttons that control the options around... Below is a link to a picture of what i want …

Software Development java
Member Avatar for llemes4011
0
94
Member Avatar for qajaq49

I'm trying to write a short bit of C code that will get a filename from the user, via the keyboard, and open the specified file, but I haven't been able to get fopen() to recognize the variable filename when I use fgets() to get it. Here's a snippet of …

Software Development c
Member Avatar for qajaq49
0
702
Member Avatar for Zibo

Hello! I'm searching and searching and can't find a solution... In my project I've got a folder 'Images' where from my application loads icons etc. Running project from IDE (NetBeans) it's of course working fine, but I want to create stand-alone application, so I create .jar file. And here's a …

Software Development ide java
Member Avatar for BestJewSinceJC
0
178
Member Avatar for peedi

I am working on this lotto project which generates 6 random numbers in which are put into an array. How do i put it in an array where the numbers don't repeat?

Software Development java
Member Avatar for BestJewSinceJC
0
5K
Member Avatar for U_A_G

so we are starting arrays and our task is to go back to our assignment 2 (functions) and he wants us to run the program using arrays. im pretty stuck and have no clue what to do. [B]heres how assignment (functions)2 looks[/B] [code] #include <iostream> using namespace std; void getEmployeeData …

Software Development c++
Member Avatar for VernonDozier
0
129
Member Avatar for weary01

hi there, i do hope someone can help with my delima. yes this is homeowork but i am 80% through my program and only wish to get some guidance on my program. my program has a number of things it has to do and one the things i am having …

Software Development c++ file-system
Member Avatar for NathanOliver
0
117
Member Avatar for bunnyboy

Hello! I am making a postfix calculator and I want to add in some equation integrity checking. Everything seems to work ( it needs to be done some little improvements, but overall it is working), except when I am checking for the blank spaces the program do not work the …

Software Development c++
Member Avatar for bunnyboy
0
161
Member Avatar for pczafer

how im gonna loop menu if option not 1 or 2 ??? [CODE]void display( ) { int option; system("cls"); //clear screen cout<<endl<<endl; cout<<"\t * Display Menu *\n"; cout<<"\n\t1. Display For Certein Date"<<endl; cout<<"\t2. Display All Appointments"<<endl; cout<<"\nEnter Option Number: "; //Enter option cin>>option; cin.get(); switch ( option ) { case …

Software Development c++
Member Avatar for tux4life
0
187
Member Avatar for Sky Diploma

As i have written Atoi(); Now i have written Itoa. Here I have used a method of getting the last digit stroring it in an array and then reversing the array to get the required answer. I look forward for Improvements in this code. [CODE=C++] /**************************************************************************** Function Name:: itoa(int ,char …

Software Development c++ objective-c
Member Avatar for Sky Diploma
0
551
Member Avatar for firoz.raj

can anybody tell me why i am getting error object variable or with block variable not set .here is the code what i have written. any help would be greately appreciated. [code] Public Sub Addtolistview() 'Dim success As Boolean DataPath = GetSetting(Application.Name, "BasicSetup", "Database", "") 'StrQuotationStartID = GetSetting(Application.Name, "BasicSetup", "QuotationStartID", …

Software Development listview open-source visual-basic
0
45
Member Avatar for frossie

for example the sentence in the text file is "daniweb offers the best solutions for C++. the website is www.daniweb.com." i have the user to search the word "daniweb". by using ifstream to read word by word, this is part of my codes [CODE] ifstream file ("lines.txt"); string word; bool …

Software Development c++
Member Avatar for rahul8590
0
105
Member Avatar for moteutsch

How can I clone an object in C++, so it is a seperate object, but exactly the same as the original? Thanks, - Moshe

Software Development c c# c++
Member Avatar for moteutsch
0
79
Member Avatar for timb89

i want to make a prgoram that will read in a set of numbers and determine whether or not they are prime numbers, this is what i got so far any ideas? [code] #include <iostream> #include <queue> #include <vector> using namespace std; int main() { queue <int> input; queue <int> …

Software Development c++ queue
Member Avatar for timb89
0
76
Member Avatar for sinapse

I have this problem to solve for preparing for the olympiad and i'm not quite fond of the functions so that i want to do it classically but i find it harder.Here it goes: "During a desert operation a group of soldiers were lost from different squads.After the storm passed …

Software Development c++ ios
Member Avatar for Salem
0
159
Member Avatar for willydlw

my makefile: [code] DRIVER_SRC = PumaDriver.cpp PumaBody.cpp PumaMotor.cpp base_manipulation.cpp serialPort.cpp DRIVER_INC = PumaDriver.h PumaBody.h PumaMotor.h base_manipulation.h serialPort.h silvermax_commands.h All: $(DRI_SRC) $(DRI_INC) g++ -Wall -Wextra -g3 -fpic `pkg-config --cflags playercore` -c $(DRIVER_SRC) g++ -Wall -Wextra -nostartfiles -shared -rdynamic -o libPumaMotorDriver.so PumaDriver.o PumaBody.o PumaMotor.o serialPort.o base_manipulation.o install: cp *.so /usr/local/lib uninstall: rm …

Software Development c++
Member Avatar for Salem
0
190
Member Avatar for csergec

Hi I am writing a function which gets values. These ones will be used in my sqlite query [code] def updateDB(tel, month, price): mytel = (tel,) myprice = (price,) connection = sqlite.connect("mydb.db") cursor = connection.cursor() sql = 'UPDATE mydatabase SET %s = ? WHERE number = ?' cursor.execute( sql % …

Software Development python sqlite
Member Avatar for csergec
0
2K
Member Avatar for tableray

i want to show a msgbox when i click on the webbrowser control on my form.. how do i do it? why isnt there a mouseclick event in the webbrowser method listbox?

Software Development vb.net
Member Avatar for Teme64
0
153
Member Avatar for Lukezzz

Hi I wonder how it will be possible to get the current date and time. I have looked around and there are many different ways to retreive this. I wonder what could be a good way to do that. As for now, I would like to return a string for …

Software Development c++
Member Avatar for ArkM
0
103
Member Avatar for aveao

I need some help. I have been problems getting my programs to recognize variables outside of the subroutines even if I make them public. Ive been able to work around the problem until now. I am working with arrays. It wont let me declare the array outside the subroutine and …

Software Development vb.net
Member Avatar for Teme64
0
265

The End.