132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Beemer

Hi all I have written a program to issue a bursary according to the amount of modules passed in 2007 and the amount registered for in 2008 , basically if the student did not pass any modules in 2007 :no bursary if the student passed 1 or 2 modules in …

Software Development c++
Member Avatar for Salem
0
103
Member Avatar for jascase901

i recently started python and i wanna learn how to implement modules in my program, but when ever i try to string modules together it says function not callable how do u make functions callable and if u cant then how would u put this code 'readTextfile.py--reads and displays text …

Software Development python
Member Avatar for woooee
0
92
Member Avatar for alivip

How can I get every Token (word) and PreviousToken(Previous word) From text file For example if the text file content is "Every man has a price. Every woman has a price." First Token(word) is "Every" PreviousToken(Previous word) is none(no previos) Second Token(word) is "man" PreviousToken(Previous word) is "Every" Third Token(word) …

Software Development file-system python
Member Avatar for Freaky_Chris
0
244
Member Avatar for MikeyFTW

Ok heres the deal i need to make this program that will allow users to practice their addition and subtraction for whole numbers between 1 and 100, 1 and 200 and 1 and 500 (the levels of difficulty). The user will be allowed to choose which operation to have questions …

Software Development gui mathematics python
Member Avatar for kdoiron
0
123
Member Avatar for hezfast2

I'm writing a program that takes an input string and gets the length and/or gets the number of vowels and consonants in the string. I've gotten it working except for consideration of spaces (which are allowed) and error checking for input other than letters. Here is what I've got so …

Software Development gui java java-swing
Member Avatar for hezfast2
0
111
Member Avatar for usmanabb

it says two teams A & B have to play a match, and we have to find probability of team A. I can't understand the way to calculate its percentage. The main points are: 1) the match is played by two teams: A and B; 2) the first team to …

Software Development c++
Member Avatar for usmanabb
0
728
Member Avatar for blackbeard

I have an assignment to make a text-based snakes and ladders game using Dev-C++. I have so far made a splash screen and a menu (with colours and sounds, pretty cool) using the winmm.a library and the switch/case construct. I have even been able to get player names with a …

Software Development c++
Member Avatar for blackbeard
0
1K
Member Avatar for Jennifer84

I am trying to write a program that can sense if Any changes was made to the file: [COLOR="Green"]"C:\\Folder1\\One\\File5.txt"[/COLOR] If Any changes was made, then this file will be copied to destination: [COLOR="green"]"C:\\Folder1\\Two\\File5.txt"[/COLOR] So what happens is that the destinationfile will be "Overwrited". I have started out som code but …

Software Development c++ file-system
Member Avatar for Jennifer84
0
147
Member Avatar for roadrage75

Hello all, im rather confused about what's wrong with my code.... it says non-static method add(E) cannot be referenced from a static context, yet i can't see any reference to a static context.... here is my code; thanks in advance! import java.util.*; public class person { public String name[]; public …

Software Development java
Member Avatar for javaAddict
0
155
Member Avatar for EngSara

hello .... I need a java code that convert from eqn ( or bench ) format to verilog format.... Does anyone has an idea?! Thanks in advance....

Software Development java
Member Avatar for masijade
0
140
Member Avatar for programmer321

[code] Hello, I am writing a small java code which read from a text file line by line and parses each read line(hash seperated). Here is the code snippet: in =new BufferedReader(new InputStreamReader(new FileInputStream("file.txt"))); while((linedata =in.readLine())!=null) { System.out.println("Linedata: "+linedata); strparse = linedata.split("#"); line = strparse[1]; System.out.println("Line Number:"+strparse[1]); } the data …

Software Development java
Member Avatar for javaAddict
0
195
Member Avatar for hocuz pocuz

Hi. I am writing a text-rpg game using c++ and I want to save the gave somehow. How can i do it? Thank you.

Software Development c++
Member Avatar for Ancient Dragon
0
261
Member Avatar for WondererAbu

:S Can you explain me how to link classes with each other?

Software Development c++
Member Avatar for Cybulski
0
154
Member Avatar for menelaussa

Hello everybody, I have a problem regarding setfocus. I have a datagrid with 3 columns: MinAge, MaxAge and Code. In Code column I need to generate a code on set focus event. I mean ... when you click on Code textbox (in edit mode) to appear automatically the code. Can …

Software Development
Member Avatar for menelaussa
0
116
Member Avatar for hocuz pocuz

[code=c++]//Four In a Row #include <iostream> #include <string> #include <vector> #include <algorithm> #include <cctype> #include <cstdlib> #include <ctime> using namespace std; // global constants const char X = 'X'; const char O = 'O'; const char EMPTY = ' '; const char TIE = 'T'; const char NO_ONE = 'N'; …

Software Development algorithm c++
Member Avatar for hocuz pocuz
0
111
Member Avatar for JohnKelly

Dear All I am using the API calls to ReadFile and WriteFile to access data coming in on serial ports and sending commands out to devices on Serial ports. Everything works fine in the VB6 developer. When I compile the programme I can compile to P-Code and everything works fine. …

Software Development api visual-basic
Member Avatar for JohnKelly
0
338
Member Avatar for BBaller1211

I'm trying to make a level that can be edited in game for a pong-like game. So far, this is what I have: [code] import java.awt.*; import java.applet.*; public class LevelEditor extends Board { public static final String row1 = "::::gggggggggggggggggg"; public static String row2 = "::::g::::::::::::::::g"; public static String …

Software Development java
Member Avatar for thekashyap
0
146
Member Avatar for AbbyVen

Hello everyone, I am completely new to this website and happened to have come across this while browsing. I am stuck up in my project and just need some help. I am developing a system for my client which is a non-profit organization htat run local trains in our area. …

Software Development java oracle
Member Avatar for AbbyVen
0
80
Member Avatar for BORAX

i have in vb6 2 proyects in one.....now there group into one....but from proyect 1 how can i call a form from proyect 2.... Example From Proyect1 From1 a Comand Click To open or Call Proyect2 Form2 To show.... Please help if is posible.....

Software Development visual-basic
Member Avatar for debasisdas
0
91
Member Avatar for IShotTheSheriff

Does anyone have a custom function to Remove a child node from a TreeView and move it to another child? That may not make sense, so here's an Example: [code] Private Sub Form_Load() Dim Test As Node Dim Test2 As Node Set Test = TreeView1.Nodes.Add(, , "Testing", "Testing") Test.Expanded = …

Software Development visual-basic
Member Avatar for QVeen72
0
124
Member Avatar for kimbostun

i am making a simple calculater , and know think i doing correctly but when i compile it it has error like this Exception in thread "main" java.lang.Error: Unresolved compilation problems: Syntax error, insert "}" to complete SwitchBlock Syntax error, insert "}" to complete Block Syntax error, insert "}" to …

Software Development java
Member Avatar for javaAddict
0
218
Member Avatar for bosko

Hi! I have a class: [CODE=python]class A(object): calledMethod = None def a1(self): pass def a2(self): pass[/CODE] Now when I create an object and call some method: [CODE=python]a = A() a.a1() #or a.a2()[/CODE] I need somehow to save the name of called method in variable calledMethod. Could this be done with …

Software Development python
Member Avatar for bosko
0
102
Member Avatar for sarabhjeet

HI all, whenever we open any python/wxpython program there is one more window other than our application is running which is command line window that black window for showing any error or any output through print statement.So i want to remove that window from my wxpython's application,how to do this?please …

Software Development python
Member Avatar for sarabhjeet
0
137
Member Avatar for swapna7999

hi there i want my forms do not move is there any property that sets it at a fixed position thank u very much

Software Development visual-basic
Member Avatar for swapna7999
0
76
Member Avatar for shankhs

I have a problem in printing out the permutation of various characters grouped together like string 0 has"ABC" 1: "DEF" 2:"GHI" 3:"JKL" 4."MNO" 5."PRS" 6."TUV" 7."WXY" now i have to print all the permutation of the characters to form 1 letter to 12 letter words lets say i have 2512 …

Software Development c++
Member Avatar for Duoas
0
152
Member Avatar for s080072

write a gui program to compute the amount of a certificate of deposit on maturity.the sample data follows: Amount deposited 8000.00 Years 15 Interest Rate 7.75 [B]Hint: compute 8000.00(1+7.75/100)to the power of 15[/B]

Software Development gui java
Member Avatar for alpe gulay
0
87
Member Avatar for varsha0702

Hi.. I have created a shared object by developing and compiling it on RHEL 5. Than I tried to use same shared object on RHEL 4 and SuSe 10.0.But it didn t work.Error message shown was " Floating point exception". Machine architecture was same for all the three distos. So …

Software Development c++ suse
Member Avatar for vijayan121
0
163
Member Avatar for hezfast2

Hello all, I'm writing a program that gets an input string entered and I was wondering if there is an exception thrown so that the string is valid only if it is all letters. I can find exceptions thrown for only doubles, int.... as valid input but none for only …

Software Development java
Member Avatar for hezfast2
0
108
Member Avatar for buddha527

I have a programming assignment to write the Knight's Tour. I have completed the code using simple recursive calls, my problem seems to be if the user enters any starting location the program takes longer then 45 minutes to complete and I am not sure if it even completes because …

Software Development c++
Member Avatar for jephthah
0
2K
Member Avatar for Prabakar

I happened to try find the total number of ways a horse can cover all 64 squares in a chess board without visiting a square more than once starting from one corner. All I was able to do was to use a brute force algorithm which run for a whole …

Software Development algorithm c
Member Avatar for Prabakar
0
188
Member Avatar for CCVM

Hi, I'm looking for some assistance to begin coding in Java, and I don't really know where to begin. I'm still attending school, and will be taking Java as an elective, but I still want to try to get a head-start, because I am very proficient in math, love (and …

Software Development java
Member Avatar for CCVM
0
70
Member Avatar for PersonPerson

Plain and simple. I want to do this: [url]http://www.codeproject.com/KB/dialog/csSlideForm/SlideForm_Main.gif[/url] ...on VB.NET, yet I haven't the least idea about where to start. I've searched plenty without luck. Thanks in advance.

Software Development vb.net
Member Avatar for PersonPerson
0
95
Member Avatar for gangadhar.in

I am new to java coding.I m struggling to make a below project. Can u plz. help on this project. Doctor Online Discussion Form This System is mainly used by Doctors, Dentists, Optometrists, and any medical professional. Medical Professionals use photos on a daily basis in the practice of medicine. …

Software Development java
Member Avatar for ~s.o.s~
0
137
Member Avatar for gogoc

can we force a c++ program to end after a certain amount of time i want to force my program to quit after a certain amount of time so that it would not go on for ever..... :)

Software Development c++
Member Avatar for gogoc
0
125
Member Avatar for benasour

I just started to learn C++ after I have been programing in C. I use vim and the GNU compiler in terminal to create my programs. When I was working in C I made a generic one-file Makefile so I did have to write out all the tags/switches every time …

Software Development c++
Member Avatar for Duoas
0
1K
Member Avatar for Mr.Wobbles

I've been looking for answers to this problem for awhile, and none of what I find seems to work. I have a program that creates a database, and a form based on that database, where the form fields are movable (the user can drag them around in the form) in …

Software Development app-store vb.net
Member Avatar for Mr.Wobbles
0
109
Member Avatar for gogoc

I don't want my programs to access the file system at all means no file creation, no deletion not even the a single stream for accessing files. how can i do that

Software Development c++ file-stream
Member Avatar for Duoas
0
107
Member Avatar for luckystar89

For this project we’ll consider a small business that needs an order tracking system. An Order is placed by a customer to purchase a product. The order system must be a menu-driven system that allows the user to add orders, view an order, find an order(s) by date, or list …

Software Development c++
Member Avatar for VernonDozier
0
528
Member Avatar for ze-m!nd

Hey everyone, I'm trying to make a perl script that logs me into my account, and fills this form for me for my job, but i cant get it past a drop down menu, wat a person would manually do is put the mouse over this button, and list would …

Software Development html-css perl
Member Avatar for KevinADC
0
126
Member Avatar for uk101man

Hi, I'm very new to C++ and was wondering how I would go about searching for a string (AT+COPS?) in a file and displaying everything to the right of the string, could someone point me in the direction of a guide cheers

Software Development c++
Member Avatar for Ancient Dragon
0
102
Member Avatar for allopiloping

[code]Public Class Form1 Private Structure word Dim b1 As Byte Dim b2 As Byte Dim b3 As Byte Dim b4 As Byte End Structure Private Function CircShiftLeftW(ByVal w As word, ByVal n As Integer) As word Dim d1 As Double, d2 As Double d1 = WordToDouble(w) d2 = d1 d1 …

Software Development vb.net
Member Avatar for Tom_2
0
160
Member Avatar for gogoc

How can i restrict the total memory usage of a program. i have to check certain code but i want to restrict the rem used by the program when running. please help me out

Software Development c++
Member Avatar for gogoc
0
103
Member Avatar for Run.[it]

My appologies if this has been answered before but I couldnt find a specific answer/response. Basically Im wondering how I would assure each random number is one that hasnt been produced already. In the program below Im trying to use the random number produced to act as a specific number …

Software Development c++
Member Avatar for Run.[it]
0
135
Member Avatar for Mackjan

Hi I have a function dela ( ) and I want to call it by user (c) times, but I get an error. [COLOR="Red"]Traceback (most recent call last): File "C:/Python25/My programs/extra_b.py", line 21, in <module> for j in range (c): TypeError: range() integer end argument expected, got str.[/COLOR][code=python] if __name__ …

Software Development python
Member Avatar for Mackjan
0
239
Member Avatar for D boss

hi guys i am trying to create a button that sends all the data returned from my ms access database into the fields of my jframe to the printer for a hardcopy, i have created a button to exit the frame, but now i am having difficulties creating a print …

Software Development java java-swing printer
Member Avatar for javaAddict
0
118
Member Avatar for TheGhost

I have problems with the map, in the below loop. [CODE] //iterator declared as "it" and map declared as "aMap" //key of a map declared as "key" while(true){ for(it = aMap.begin(); it != aMap.end(); it++){ //some processing if(//some condition){ //some processing aMap.erase(key); it--; } } //some processing //some conditions to …

Software Development c++
Member Avatar for TheGhost
0
129
Member Avatar for Renoldton

Hi, I have a XML file generated externally,i need to traverse through that file and then make certain changes to the XML file or add new attributes to that file.How can i go about it?This eventually will be a Pro*C code.Kindly help me out.Thanks.

Software Development c++ file-system xml
Member Avatar for tesuji
0
141
Member Avatar for daviddoria

I have to call a function in the form f(void* params) I would like to pass two vector<double> to this function. I suppose I should make a struct struct MyParam_t { vector<double> myvector1; vector<double> myvector2; }; and then somehow fill it and pass it to the function. Someone recommended that …

Software Development c++
Member Avatar for Ancient Dragon
0
107
Member Avatar for Jennifer84

I am wondering how a "Managed vector" is declared. I have worked much with: std::vector<string> OneVector; How is the same declared for a Managed type ? What I am trying to do is to translate this to managed: [code] std::vector<string> OneVector; std::string Stuff = "Hello"; OneVector.push_back(Stuff); [/code] At the same …

Software Development c++
Member Avatar for Radical Edward
0
186
Member Avatar for Sky Diploma

Hi Everyone , I have some doubts which i have encounteered when i was working on a project of mine, 1)I was wondering whether system("sky.exe") could have variables in it. can i use a string in the place of "sky.exe" something like this [code] string s; s="sky.exe"; system(s); [/CODE] 2) …

Software Development c++
Member Avatar for Sky Diploma
0
146

The End.