132,726 Archived Topics
Remove Filter ![]() | |
![]() | 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++ ![]() |
![]() | [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++ ![]() |
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 | |
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 | |
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 | |
[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++ | |
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 | |
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 | |
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 | |
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 … | |
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++ | |
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++ | |
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 | |
//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 | |
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 … | |
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++ | |
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 | |
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 | |
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 | |
Hi, Could anyone please check the following for me? I can't run it yet. Best Regards, zawpai Software Development c++ | |
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 | |
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 | |
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 | |
[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 | |
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 | |
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++ | |
If I want to learn VBA for excel, what should I do? How should I go about learning? Software Development visual-basic | |
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++ | |
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 | |
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++ | |
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++ | |
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 | |
[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++ | |
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?? | |
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 | |
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 | |
[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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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# | |
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! | |
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 |
The End.