132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for DigitalPackrat

I am creating a game, without using any game related libraries, only the "standard" (read aside) ones and an [URL="http://www14.brinkster.com/aditsu/dev-cpp-faq.html#conio"]edited conio.h[/URL]. So I get to use getch(), kbhit() et al. My problem is with kbhit(), is there no way of resetting it, so that I can reuse it? Aside : …

Software Development c++
Member Avatar for DigitalPackrat
0
132
Member Avatar for DigitalPackrat

[code]class Customer { private: char name[50]; int acc_no; char acc_type; float balance; public: void getData(); }; int main() { Customer cust; cust.getData(); cust.getData(); } void Customer::getData() { cout<<"Name : "; cin>>name; cout<<"Acc No. : "; cin>>acc_no; cout<<"Acc Type : "; cin>>acc_type; } [/code] The second time I call the function …

Software Development c++
Member Avatar for DigitalPackrat
0
141
Member Avatar for Mr NiceGuy

Hi all, Im new to python and I need some help. I have tried to get this piece of code to work for quite some time now. I finally made it work by using two while-loops. [INDENT][B]THE PROBLEM[/B][/INDENT] What I really wanted to do at the first place was to …

Software Development file-system python
Member Avatar for SUBHABRATAIISC
0
110
Member Avatar for stevo356

Hi guys, I'm both new here, and new to c++ so be gentle! Over the past short time we've been looking at c++ on our course, but I don't believe it has been taught too well, and I'm struggling to understand what should really be basic concepts? An assignment we've …

Software Development c++ data-structure linked-list session
Member Avatar for Ancient Dragon
0
125
Member Avatar for ChrisP_Buffalo

I'm trying to automate a series of find/replace actions. I have an input file containing a large list of stemmed verb forms like this: apolog apologis becam apologis apologis apologis apologis becom becom aris arisen arisen I want to change every "apologis" to "apolog", every "arisen" to "aris" and so …

Software Development file-system os-x python
Member Avatar for ChrisP_Buffalo
0
95
Member Avatar for freakinsweet865

[code] double classAve (double g, int i); char gradeLet (double z); int main () { int ans, count = 0; double grade, numTot = 0; cout<<"Do you have a grade to enter? (Yes = 1, No = 2) "; cin>>ans; cout<<endl; while (ans != 1 && ans != 2) { …

Software Development c++
Member Avatar for Ancient Dragon
0
99
Member Avatar for heshan

Hi, I have written a the following python code to analyse a function or a method. I am having a script which is having a python function (add) and a class (MyClass) with a method (multiply).When I analyse it using the following method(analyze_func) , I get an output like below. …

Software Development python
Member Avatar for BearofNH
0
236
Member Avatar for mrb260478

I want to learn [B]Assembly language[/B] in [B] [COLOR="#ff0000"]1 day[/COLOR] [/B] can anyone suggest me a BestTutorial on Assembly language using TASM v4.1? I know this is next to impossible. Still Please Help. Also please tell me sites where I could get some source code which has comments on each …

Software Development assembly
Member Avatar for BeR54
0
122
Member Avatar for q8_dreamy

Hi, if I connected access data base to vb form and I want to insert value of dropdown list(Items are yes and no) into the data base (field is type of Yes/No) what will be the insert statement?!

Software Development vb.net
Member Avatar for Jx_Man
0
115
Member Avatar for lavicool

HI, Following is a program to calculate resistance. Can u please tell me how to make the program loop again using a 'While' statement or is there anyother way to loop the progam. Now my program runs once. Suppose if i enter wrong values, it should not terminate but rather …

Software Development c legal
Member Avatar for mishraatul
0
154
Member Avatar for n3XusSLO

how do i use a function without calling it from a different class? (i have more files in my project) i made a test function called dostuff() { } inside some random file outside a class. but when i want to compile i get this: Error 1 error LNK2005: "void …

Software Development c++
Member Avatar for n3XusSLO
0
278
Member Avatar for Black Magic

EDIT: I've got a while loop in my code, just now when player 1 goes to have his/her second attack the hp is reset to 99, [code=c++]#include <conio.h> #include <iostream> using namespace std; int main() { int p1attack, p2attack, p1hp, p2hp; char attack; p1hp = 99; p2hp = 99; system("TITLE …

Software Development c++
Member Avatar for Sky Diploma
0
164
Member Avatar for shouvik.d

Hi All, I am trying to develop an application which would use a combo box to obtain a set of records from a database table. Now on the count of number of records that are available in the table I need to populate a JPanel say Parent with another JPanel …

Software Development java java-swing
Member Avatar for javaAddict
0
144
Member Avatar for thatnewbreed

//this is given public class Student { private String name; private String address; private String phone; private String major; String[ ] classesTaken = new String[100]; double[ ] gradesReceived = new double[ 100]; public void addClassesTaken(String classID) {} public void addGradeReceived(float classGrade) {} public void changeGradesReceived(String classID, double newGrade) {} public …

Software Development java
Member Avatar for javaAddict
0
123
Member Avatar for Thirusha

Hi what i want to do is create a session scoped bean in my servlet and also get the values in that same servlet i have created a bean in my servlet with a session scope(not sure if it really is in session scope) using this code: [CODE] HttpSession session …

Software Development java session
Member Avatar for Thirusha
0
134
Member Avatar for popo_prince

i found this off some site and when i build it in vis c++, the errors are with the two random functions. will someone tell me why and how i can fix this. the random on line 15 and randomize on line 36. undeclared identifiers. [code] /* Jason Cordes */ …

Software Development c++
Member Avatar for JasonCordes
0
148
Member Avatar for kahaj

With the following code, the debugger keeps telling me "Too many arguments to 'Public Sub New()'. " What needs to be done w/ it? [code] ' create new object and store into Client array clients(count) = New Client(firstName(count), _ lastName(count), account(count), _ balance(count)) [/code] Also, it's letting me know that …

Software Development vb.net
Member Avatar for kahaj
0
72
Member Avatar for wiglaf

I was once trained in C and C++ and am now brushing off the cobwebs and relearning C++. I am restudying the Borland C++ Builder and realized I needed to know more C++, so I began restudying Visual C++...by Spencer and Perry. I am writing software to anazlyze lake water …

Software Development c++ hard-drive
Member Avatar for vijayan121
0
398
Member Avatar for planethax

I am building an app that communicates to an Elm327 divice on my com port, I need to know how to do thiss, I have made a smaller app for testing, I can connect to device, I know this as the device then sends me a message, now I need …

Software Development visual-basic
Member Avatar for networx
0
203
Member Avatar for zawpai

Hi, Could anyone please check the following for me? I can't run it yet. Best Regards, zawpai

Software Development c++
Member Avatar for zawpai
0
112
Member Avatar for fredomondi

could anyone please tell me if pyTTS module is available in python version 1.4.0 3rd edition

Software Development python
Member Avatar for linux
0
100
Member Avatar for Silx

Hi! I'm totaly new to java, but I have been writing a bit in other langages. So my app is generating a .png file representing the structure of graph. This it already made, and it's working fine.I'm generating a .png every time graph's structure is changing(for example when user is …

Software Development java
Member Avatar for Silx
0
81
Member Avatar for hacker9801

Hey. I want to make a packet structure, something like [code=c++]struct Packet { int cmd; /* command */ int len; /* length of body */ char body[30]; /* body (should be length of len though, might use std::string) */ };[/code] Now, if I recieve some data thru a socket (I'm …

Software Development c++ data-structure
Member Avatar for hacker9801
0
111
Member Avatar for tones1986

Hey guys and girls. I am working on a project that needs to use templates. My professor didnt go over teh use of them in class, nor is our book very descriptive of them. Im assuming they are way easier than i make them seem, but some help , tips, …

Software Development c++ linked-list
Member Avatar for Lerner
0
148
Member Avatar for h0neydip

[code= cplusplus] struct wheel_node { int contents; wheel_node* next; }; typedef wheel_node* wheel_ptr; class wheel { private: wheel_ptr arrow; public: wheel (); void print (); void spin (int distance); void move_to (int number); }; [/code] The constructor wheel creates a circular linked list as follows: arrow -> 5 -> 40 …

Software Development c++ linked-list
Member Avatar for Lerner
0
147
Member Avatar for Tobias

Ok, I have been given this problem to code a solution with python Problem Definition The N.S.W. Bird Watching Library sends a reminder notice to its borrowers when it is found that a borrower has failed to return a book by the due date. It is possible that a borrower …

Software Development python
Member Avatar for Tobias
0
98
Member Avatar for buddha527

I have the following code but every time I go to compile it i get the same 3 errors and do not know why I am getting them. I have tried googling why but can't really understand any explanations that I am given and therefore cannot fix the errors. Any …

Software Development c++
Member Avatar for buddha527
0
100
Member Avatar for jakelley_05

If I want to learn VBA for excel, what should I do? How should I go about learning?

Software Development visual-basic
Member Avatar for The Dude
0
133
Member Avatar for vesper967

Does anyone know a good site that gives source code of the implementation of a Splay tree with the balancing of the AVL tree?

Software Development c++
Member Avatar for Salem
0
75
Member Avatar for Elmo_loves_you

Hi I was hoping that somebody could help me. I have a stored procedure that returns blob file and other data. The blob files are encrypted =) in byte form. what I want to do now is decrypt them for the user to see but in order to do that …

Software Development
Member Avatar for JerryShaw
0
851
Member Avatar for Nemoticchigga

I am receiving over ethernet into a 'char messageBuffer[512]' and then passing it on by a function call to 'process((char*) messageBuffer)' then in process: [CODE] void process(char* theMessage) { myStruct messageBuffer; memcpy(&myStruct, &theMessage, sizeof(theMessage)); //this line is wrong } [/CODE] Im not sure how to properly put it back into …

Software Development c++
Member Avatar for Nemoticchigga
0
64
Member Avatar for joshmo

Hey guys...i had an assignment i did last year and i had a problem linking the my files since the program was modularized..the lecturer accepted it with the errors since she also failed to figure it out..anyway i was scrolling through my work and today and i saw the code …

Software Development c++
Member Avatar for joshmo
0
147
Member Avatar for cambridgegal300

Hi everybody - need some help with this code. Been trying to create a simple gussing number game and wrote out this code but can't see what the problem is as there are some errors can someone help? // This program asks the user to enter a value between 1 …

Software Development java
Member Avatar for cambridgegal300
0
102
Member Avatar for cloudjc

[CODE]Hi Im completely new to programming and was wondering if anyone would be willing to help me with this exercise in C++. I have absolutely no idea how to do this exercise: ----------------------------------------------- Rational.h is a C++ header file which declares a class (Rational) which handles Rational numbers (i.e. fractions). …

Software Development c++
Member Avatar for Ancient Dragon
0
431
Member Avatar for MxDev

hi, how could i display the contents of a folder in the jframe without using jfilechooser, this happen by clicking browse button and the contents of folder appears in my jframe directly??

Software Development display java
Member Avatar for Ezzaral
0
101
Member Avatar for msnider9

Here is my code. It will compile but will not execute. The error is Exception in thread "main" java.lang.NullPointerException at Calculator2.<init>(Calculator2.java.33) at Calculator2.main(Calculator2.java.91) [code] import java.awt.*; import javax.swing.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; class Calculator2 extends JFrame implements ActionListener { private JPanel panelAdder; private JLabel labela; private JLabel labelt; private JLabel …

Software Development java java-swing
Member Avatar for masijade
0
107
Member Avatar for payton

I am having trouble using the ceiling instruction. I am new to assembly and have never used the ceiling instruction before. My values before the instruction are $f10 = 1.1000005 $f12 = 1.0000000 the instruction I use is [CODE]ceil.w.s $f12,$f10[/CODE] the value that ends up in $f12 is 2.80260e-045 which …

Software Development assembly
Member Avatar for paytonb
0
271
Member Avatar for dinozulf

can anyone please help me with my program, my hand in date is on monday so i really need some help thank you

Software Development c++
Member Avatar for Salem
0
171
Member Avatar for computers08

[code] int doubles (int d); int minimum (int m, int n); int oddEven (int a); int main () { int num, i, sum=0, num1, num2; for (i=0; i<5; i++) { cout<<"please enter a number. "; cin>>num; cout<<endl; sum= sum + num; } cout<<"the numbers added together is "<<sum<<endl; cout<<"the sum …

Software Development c++
Member Avatar for Salem
0
95
Member Avatar for silvergirl

I've seen a million answers about StreamReader and how to write to a file, but NOTHING about how to read a file, do a mathematical process on what is read and write the ANSWER to that process in another file. I need this for homework, please. My code in C#, …

Software Development
Member Avatar for JerryShaw
0
227
Member Avatar for guerreronoli

hello all, I created a program that connected to database!.... I've done to display all records from database in JTable..... but when I'm deleting a row it can't delete automatically it needs to close the program to update the JTable!.... here's my program!.... package classes; import javax.swing.*; import java.awt.*; import …

Software Development java java-swing
Member Avatar for Ezzaral
0
1K
Member Avatar for humera05

i want a coding of ping pone game in visual basic 6.0 giv a ful coding with description of ping pong game

Software Development visual-basic
Member Avatar for humera05
0
135
Member Avatar for crackers

Im writing a game of scissors paper rock and have come up with this so far, but i cant get it to work. any idea's where ive gone wrong. print \ ''' a - Rock b - Paper c - Scissors ''' choice1 = raw_input("Choice: ") print if choice1 == …

Software Development python
Member Avatar for ZZucker
0
141
Member Avatar for Mark@UKMB

On a button click how can i make text appear in a textbox For instance Click ButtonA input to Txtbox1 "test" The word test would then appear in the textbox. I'm sure this is easy but ya know!

Software Development vb.net
Member Avatar for Jx_Man
0
242
Member Avatar for mcgarry101

Hi, I was on the forum yesterday asking for help with using command line parameters. As described I am new to vb.net programming, and I am stuck with what is probably a very simply problem. I am trying to create a vb.net program to which I will be passed parameters …

Software Development vb.net
Member Avatar for mcgarry101
0
181
Member Avatar for demroth

I have been reading older C programs to try and understand how to convert them to C++. One particular line of code still confuses me however. fscanf(fin, "%d", &n) I understand that fscanf reads from the stream (the file pointed to by fin), it reads the data which will be …

Software Development c++ file-stream
Member Avatar for demroth
0
150
Member Avatar for USUAggie

Hello all, Hello, I am having a problem with a java applet i created, a hangman game, but I am having a problem I hope you all could help me out with. I am able to run my applet in netbeans using f9 to compile and then shift-f6, and everything …

Software Development java java-netbeans
Member Avatar for sukatoa
0
146
Member Avatar for migsyandoc

pls help me.. i have a program that have a database in ms access.. i haved already connect itto my ms access database but i cant save my data in my database everytime i click on my save button.. pls help me to know what codew will i write to …

Software Development c#
Member Avatar for bcasp
0
175
Member Avatar for Croft .L

Hi all! I just want to know a website or book that will start me with c++ programming. I have downloaded Microsoft c++ toolkit 1.01 2003 to start from so i have the place to start :!: Thanks!

Software Development c++ microsoft
Member Avatar for joshmo
0
131
Member Avatar for compovet

I have a task of bank program . At the begining of the program it will requst from me to enter the user name and password I want the password to appear like **** I want your help ,I searched about it but I didn't find how

Software Development
Member Avatar for majestic0110
0
114

The End.