132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for boltfarms

Hello, I am currently having an issue with a project I am working on. The rest of my project is fine, I am just having an issue with one logical portion of it, and I was hoping someone could help me. I also have to use 1D arrays to solve …

Software Development
Member Avatar for tinstaafl
0
242
Member Avatar for Neversleepin

Hi, i have two buttons: Add button and Clear button one Jlist 1- when i click on Add button, it will add some data in the jlist. 2- when i click on Clear Button, it will clear perfectly the jlist. but when i re-click on Add button, here it add …

Software Development java
Member Avatar for Neversleepin
0
287
Member Avatar for galhajaj

hi :) i am new in C#, i am trying to make a little chess program and i need help in the chess board making. i make a new class "Square" that inherit from PictureBox (Square:PictureBox) and i made an array of 8x8 of Square in the Form1.cs and i …

Software Development
Member Avatar for thousandbanks
0
1K
Member Avatar for Buggaya

[B]I have an application that saves some data in xml document.[/B] [B]The user can add a new data to xml document.[/B] [B]The problem is the old data will be overwritten by the new one,How could I solve that?? [/B] [B]Here is my code for that method which still needs "APPENDING":[/B] …

Software Development email xml
Member Avatar for Behrangbina
0
2K
Member Avatar for MissAuditore

*Hi, I am trying to plot a 3D surface plot. I have a list of x,y,z values. They are all of different dimensions. y1 y2 y3 y4... x1 z11 z12 z13 z14 x2 z21 z22 z23 .... x3 ................. x4 x5 . . . etc..* import csv from mpl_toolkits.mplot3d import …

Software Development python
Member Avatar for dashing.adamhughes
0
272
Member Avatar for Hey90

**What I would like to do:** - Read data from text file - Display data from text file - Add new data to text file - Save new data to text file **The file format used is as follows:** Number of items in text file (3) Name 1 Number 1 …

Software Development c++
Member Avatar for Hey90
0
251
Member Avatar for rodrigo.l.salazar.14

Hello I need to read 50 intergers from a text file and put them into an array. and output or show the user the numbers. for example: 23 73 58 49 34..... I need them to go into my array. I tried this code but it just outputs -850993. Heres …

Software Development c++
Member Avatar for rodrigo.l.salazar.14
0
161
Member Avatar for NordCoder

I'm writing a C library to export SDL_Surfaces to various image formats as an exercise. Now I'm working on the GIF format and I feel I'm very close to getting it working, but I've been at this for a while with no luck. I've already re-read all the specs, wiki …

Software Development c file-stream
Member Avatar for NordCoder
0
237
Member Avatar for theguitarist

I read [here](http://www.google.co.in/url?sa=t&rct=j&q=can%20have%20any%20(odd)%20b%20tree&source=web&cd=1&ved=0CDAQFjAA&url=http%3A%2F%2Fwww.cs.uga.edu%2F~eileen%2F2720%2FNotes%2FBtrees.ppt&ei=PcK3UPy4IcbYrQe7-oC4Cw&usg=AFQjCNFC0kjGfN16J-I0S5o3HEjBUxmpKg&cad=rja) that an m-way B-Tree can have m only odd. Is that really true? I've used 2,4 trees that allow a maximum of 4 child linkages for each node (and a minimum of 2). Isn't this a 4-way B-Tree?

Software Development c++
Member Avatar for theguitarist
0
771
Member Avatar for aaron.jensen.923_1

Write a correct, well-structured, well-documented Python program to create a list of lists containing student information. You are to create one master list whose elements must be lists containing elements for the student’s first name, last name, major, credit hours completed, and quality points earned. (The organization of the master …

Software Development data-structure python
Member Avatar for aaron.jensen.923_1
0
239
Member Avatar for arishy

From the script below, the commented part of the script is to prevent the script from hanging. The script as is , is working once I uncomment the openning of the file to retieve the body of the email, the script hang. use Email::Send; use Email::Send::Gmail; use Email::Simple::Creator; # open …

Software Development email perl
Member Avatar for arishy
0
331
Member Avatar for Labdabeta

Hello, I am using Code::Blocks, and recently any time I try to compile any program I get the errors "stray '\302' in program" and "stray '\206' in program" about every 20-30 lines. I know how to fix these (by deleting the non printing character(s) in the line in question) but …

Software Development
Member Avatar for Labdabeta
0
295
Member Avatar for krystosan

I started learning PyQt from zetcode, as far as i know sys.argv reads in the parameter from coomandline and first being the name of file itself, so if sys.argv is a list then what being passed to QtGui.QApplication() in def main(): app = QtGui.QApplication(sys.argv) ex = Example() sys.exit(app.exec_())

Software Development python
Member Avatar for Gribouillis
0
2K
Member Avatar for joe.crook.9

In this code, I am prompting the user to pick a number from 1-1000 and having the user keep it in his/her head. Then, in 10 tries or less I am trying to have the computer guess the user's number. This is what I have so far... import java.util.*; public …

Software Development java
Member Avatar for subramanya.vl
0
481
Member Avatar for billionair

I've been trying to write this program and so far this is the best I could come up with. It doesn't work though. #include<stdio.h> #include<conio.h> void main() { FILE *fp,*fp1; int i=0; char str[80],fname[]="a1.txt",fname1[]="a2.txt"; clrscr(); fp=fopen(fname,"r"); fp1=fopen(fname1,"w"); if(fp==NULL) { printf("\n Cannot Open File : %s",fname); getch(); exit(1); } printf("\n File …

Software Development c
Member Avatar for deceptikon
0
1K
Member Avatar for AngelOfRock

Hi guys, I got a problem with my Programm after adding a new Class in my Tic_Tac_Toe version...I tryed to use a method of the clas KI_Test1 ( which is a very simple "AI"). The class before without static works. After changing everythin in static, because my main method is …

Member Avatar for AngelOfRock
0
535
Member Avatar for andrew_dvw_usr

Hi there, I'm trying to create a math quiz that reads a series of questions from a sequential access flat file. The file should contain a series of numbers, separated by commas. The first field(value) should be the first number for the problem, the second should be the second number …

Software Development microsoft-access vb.net
Member Avatar for Reverend Jim
0
229
Member Avatar for Dee1004

Hello guys! I need some help... I'm new in Java programming and I'm dealing with in issue. I'm at a step of my project that keeps stoping me from going further. I have some xml files that contains diacritics and I need to read them and extract the tag's that …

Software Development java java-jsp regex
Member Avatar for rubberman
0
443
Member Avatar for umesh_at_dani

how/where to initialize a static private std::list member ?

Software Development c++
Member Avatar for rubberman
0
949
Member Avatar for mjbor1

**my code should check if the Entered string is a palindrome or not** // stack.h typedef char comp; struct nodetype; typedef nodetype* nodeptr; class stack{ public: stack(); bool isfull()const; bool isempty()const; void push(comp elm); void pop(comp& elm); ~stack(); private: nodeptr top; }; /******************************************** stack.cpp */ #include<iostream> #include"stack.h" #include<cstddef> #include<cstdlib> #include<cstring> …

Software Development c++
Member Avatar for Lucaci Andrew
0
271
Member Avatar for kindofsudden

Being somewhat new to VB.NET, I built a data solution by using wizards and drag-and-drop on forms. My data is in an Access DB and I opened up those tables with Server Explorer and dragged them into my dataset. I connected the tables to datagridviews. Worked like a charm. Then …

Software Development dataset microsoft-access vb.net
Member Avatar for john.knapp
0
416
Member Avatar for tabmanmatt

Hi everybody. Sorry for the newbie post. I have an assignment I was just looking for some help with. I need to create a dice game that generates a random two dice throw and then gives you three tries to guess the number. I seem to be a bit stuck. …

Software Development java java-swing
Member Avatar for JamesCherrill
0
278
Member Avatar for deepecstasy

So Im creating Simple Binary Tree, not BST. Im having problem in deletewith 2 child. Method for deletion is DELETE WITH COPYING. After deleteing, when I traverse the tree, it shows run time error, **Unhandled exception at 0x008B5853 in binarytree.exe: 0xC0000005: Access violation reading location 0xFEEEFEEE.** Here is the function: …

Software Development c++ programming-construct
Member Avatar for mrnutty
0
269
Member Avatar for gelmi

here's my code class Program { static void Main(string[] args) { int num1, num2, num3, num4, num5 = 0; int categoryA =20000; int categoryB = 75000; int categoryC = 5000; int categoryB1 = 60000; Console.WriteLine("Please enter 5 numbers: "); num1 = Int32.Parse(Console.ReadLine()); num2 = Int32.Parse(Console.ReadLine()); num3 = Int32.Parse(Console.ReadLine()); num4 = …

Software Development
Member Avatar for Momerath
0
401
Member Avatar for gelmi

whenever i'm entering 1, 2 or 3 digit numbers it just give me one output, i don't know what's wrong.. here's is my code. using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Balance { class Program { static void Main(string[] args) { int num1, num2, num3, num4, num5 = …

Software Development
Member Avatar for Momerath
0
190
Member Avatar for biscayne

Trying to go thru the contents of a table with the following layout indexfield1,art1,art2,art3,art4 In this table indexfield and art1 are always filled art2, art3, and art4 can be empty. In pseudo-code this is what I want to do: for each art of table where indexfield = x: do bladibla …

Software Development python
Member Avatar for Schol-R-LEA
0
827
Member Avatar for jean1234

Hi, I am new to windows forms. I used the 2 lines of code below to launch a c++ code from a windows forms GUI and it worked: Dim lngReturn As Long lngReturn = Shell("c:\MyProgams\cfile.exe", vbNormalFocus) I hope someone can help with the issue below: My interface includes some text …

Software Development c++ gui user-interface visual-basic
Member Avatar for AndreRet
0
312
Member Avatar for ku.heng.7

public int getRandomID () { Random r = new Random(); return r.Next(10000,99999); string value = ddlCType.SelectedItem.Value; switch (value) { case "Men Formal": return "KML"+r; } } i get an error Cannot implicitly convert type string to int in return "KML"+r; how to solve it?

Software Development
Member Avatar for ChrisHunter
0
547
Member Avatar for ahmed_one

Hi All Experts, I am a newbie to C#, my development environment is: Visual Studio 2010 Ultimate Edition Sql Server 2005 Programming Language C# I've a form with Unbound Datagridview, from which data is save to Sql Server 2005 by looping through For..Each and pass SQL INSERT Statement when user …

Software Development sql visual-studio
Member Avatar for ChrisHunter
0
437
Member Avatar for sachins1986

how to get null field value from access in vb6 in my 2 record field the value is empty but i'm not able to get that empty field in vb6 ... .... set rs = new adodb.recordset rs.open ("select * from table1 where id = '2'") text1.text = rs!name please …

Software Development microsoft-access visual-basic
Member Avatar for AndreRet
0
2K
Member Avatar for jc.lembenguiste

Hello everybody you will excuse my poor englsih I am french, since two month I began to develop an application using Vb.Net . This application must use a database . I chose MS SQL Server for the database, but I dont know how to connect my application to MS SQLSERVER. …

Software Development sql vb.net visual-studio
Member Avatar for john.knapp
0
208
Member Avatar for stopah2008

Could someone help java code to read number of lines, words and characrters in paragragh .

Software Development java
Member Avatar for JamesCherrill
0
257
Member Avatar for M-rhodes

Hi, I'am creating a single JFrame UI, that uses multiple JPanels (implemented through JTabbedPane). The problem I'am having is aligning the objects within each JPanel. In the first JPanel all of the objects are centrally aligned. I'am unsure of what to do to solve the problem. I have read the …

Software Development java java-swing
Member Avatar for JamesCherrill
0
223
Member Avatar for Hopp3r

Ok, so currently I've been trying to recreate missile command, an old atari game. While I've had help from a group in creating the graphics for the game i.e menu, plotter class, etc. I've basically been flying solo as of the game's logic i.e missile detection, health, missiles spawning and …

Software Development c++
Member Avatar for ravenous
0
199
Member Avatar for christinetom

Hi again everyone. This is going to sound really dumb but I have to ask it because I'm not very advanced at C++. If I have a function such as **Funct(int *arg1, int *arg2)** , how do I use this function in a program. Can I just enter the values …

Software Development c++
Member Avatar for Gonbe
0
145
Member Avatar for ram_kumar8970

hi.... can you tell me how can i make the antivirus in visual basic 6? if you have somw source code it will be more benificial for me. thnaks in advance....

Software Development virus-malware visual-basic
Member Avatar for AndreRet
0
237
Member Avatar for Bile

-->>Hi,I am getting tired of recreating the menus in every form I design my be due to lack of information... -->>Thus I was wondering if there is a way that I write codes in may be a module so that I may be using it... -->>by just calling it in …

Software Development visual-basic
Member Avatar for AndreRet
0
227
Member Avatar for christopher.magalso

cheak th photo upload guys plz help me with this

Software Development c
Member Avatar for Gonbe
0
253
Member Avatar for batman189

Hey guys, first post. I am at the end of the semester and running ito some trouble. I know this question has been askd a few months ago but I looked at the code that was supplied and it didnt work. I cant get it started, I think i can …

Software Development c++
Member Avatar for NP-complete
0
143
Member Avatar for ponkhiraj

Hello, In my program, I have added a SplitContainer with Fill on Form. Where Panel1 keeps all Button and Panel2 keeps other objects, I'm trying to code on SplitContainer_MouseMove event. But it does not work when i'm Panel1, If i move mouse pointer to panel2 and go again in panel1 …

Software Development vb.net
Member Avatar for ponkhiraj
0
596
Member Avatar for Shatrughan2010

Hello Friends, I want to write plug in in c++. I am using windows 2008 in which i choose project of Extensibility type and use C++ Atl language.I didnt find any link in the net regarding this.only theoretical help is given there. Please help me with some example so that …

Software Development c c# c++
Member Avatar for mike_2000_17
0
122
Member Avatar for marifard

Hi, It is possible to make a software with a database such as MS access and make it available for everyone without need of a server or without a need to install the database software and/or make the database from scratch? Thanks Mario

Software Development
Member Avatar for Momerath
0
188
Member Avatar for pitoloko

How to reproduce this error? Create a new winform Select a backgound image for the form Add a new panel Set color transparent for the panel, set autoscroll = true, and add some controls inside the panel Example: http://i.stack.imgur.com/YxRhx.jpg Now scroll down or up and see the what I say... …

Software Development vb.net
Member Avatar for TnTinMN
0
275
Member Avatar for daino

Wondering if anyone has used SQLite. I'm having trouble with the basics. sqlite3_get_table function. The Apress book 'The Definitive Guide to SQLite' provides the following example. The first problem is that when declaring char *result[]; Things start to go wrong. I get an error message saying that *'the size of …

Software Development c sqlite
Member Avatar for Ancient Dragon
0
1K
Member Avatar for emilio

in my application i have a tabcontrol with two tabs. when i run the program the focus is on the first tab. how can i change the focus to the second tab, so the second tab is shown on certain event ?

Software Development
Member Avatar for northtrench
0
118
Member Avatar for earlybirdsean

[B]Hello programming experts,[/B] I have a problem. Is it possible to make an OS with VB.Net with C, C++, Objective C, Assembly language, FreeBASIC, C#, BASIC, Java, Object Pascal and with a bit of machine language? And if possible how to mix the languages? And could you give me a …

Software Development assembly objective-c pascal vb.net
Member Avatar for almondjoy
0
377
Member Avatar for eternalcomplex

Hi, I'm learning python and I just started to learn about classes. To get a handle on this, I decided to make a black jack game and create 3 classes: deck, hand, and card. I created a card class, but I am not sure how I would implement it in …

Software Development python
Member Avatar for TrustyTony
0
481
Member Avatar for nekoleon64

My name is Leonard E. Norwood Jr. I'm just practicing a simple bubblesort program but this time using classes and pointers with operators >> and << and also an overloaded operator =. I'm merely trying to sort a list of numbers from lowest to highest. And the purpose of the …

Software Development c c# c++ programming-construct
Member Avatar for nekoleon64
0
249
Member Avatar for Sasquadge

Hi guys I got a question about how to reversethe little endian. My questions is how do I do it. Say the user inputs hex 4423, how do I get it to reverse in the program to read as 2344? and help would be greatly appreciated. I need this because …

Software Development assembly
Member Avatar for Sasquadge
0
120
Member Avatar for littledevils326

not sure how to write the code for this. i have two forms, one is the main form which has a listbox containing data which is loaded in from a text file. the other is a delivery form. when the user select an item in the list box and click …

Software Development display
Member Avatar for vicprogrammer61
0
993

The End.