199,114 Archived Topics
Remove Filter ![]() | |
hello there! i'm new n i need real help! i got this homework and i have to have it done before tomorrow! i tried so hard n i cried all the last night *cries again* i hate queues!!!!! anyway plz help me if u can. i have to write 3 … | |
What will happen if caught exception when new a object? For example: [code=c++] ClassTest* ptr = 0; try { ptr = new ClassTest; } catch(...) { } [/code] if the constructor of ClassTest throw exception, what will happen? will ptr == 0 ? some memory leak? | |
Hi all, hope you are well. Just a quick one here that you pythons will be able to answer in no time (I am new with python). What I am trying to do is read a text file and print only the first and last line of that file. Any … | |
Hey frnds, I know about Ctype?? Please forward me what is Directcast,Cz i hace faced this question in Interview.Difference B/w the aboce two???/ | |
Write a program and fill a queue with random numbers between 0 and 100. The size of the queue is assumed to be 15. After filling the array with random numbers, display the elements in the queue and remove the elements of the queue and store these numbers according to … | |
I know just the one diff. [B][COLOR="Red"]1)[/COLOR][/B] String Class in Immutable--Means every time we change string, a new object is created & then assigned to the string. StringBulder Class is Mutable--Means New Object is not created everytime a string is updated. [B]Is the above diff. rite or wrong???? ny More … | |
Hello I just started learning visual basic about 1 week and a half ago, and I'm just wondering if there is a way to compare text box values. e.g. text1.text = 5 and text2.text = 10, rather then subtracting it, I was hoping if there was a way to find … | |
![]() | 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 : … ![]() |
Hey, So, I'm trying to learn DirectSound, and imagine my delight to learn that DirectSound doesn't have any interface for loading wave files! So MSDN refers me to the DXUT.h file that can be used to load .wav files and even to take care of some DirectSound stuff for you. … | |
![]() | [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 … ![]() |
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 … | |
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 … | |
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 … | |
[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) { … | |
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. … | |
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 … | |
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?! | |
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 … | |
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 … | |
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 … | |
//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 … | |
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 … | |
Hi All, Is there any way to send email in php without user interaction.The scenario is some thing like this.. I want to send email's to persons based on his/her birthday.I need your help. Please help me to solve this... Thanks :) | |
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 */ … | |
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 … | |
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 … | |
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 … | |
Hi, Could anyone please check the following for me? I can't run it yet. Best Regards, zawpai | |
could anyone please tell me if pyTTS module is available in python version 1.4.0 3rd edition | |
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 … | |
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 … | |
Hi all, I am a Network Engineer, I have BSc and MSc degrees in Communication Engineering, CCNA Certified, and Juniper Certified..BUT...I love Games Development. I left all that behind and I started taking online courses to program and develop games. I learned C++ and I am very good at it … | |
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, … | |
[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 … | |
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 … | |
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 … | |
If I want to learn VBA for excel, what should I do? How should I go about learning? | |
Does anyone know a good site that gives source code of the implementation of a Splay tree with the balancing of the AVL tree? | |
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 … | |
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 … | |
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 … | |
Hi! I'm trying to create a page with dynamic controls, and I'm having difficulty wrt the liffe cycle. The page has some static controls, but also a table which has dynamic rows, cells of which contain dynamic controls, including a DropDownList. The idea is that the page has an "Add" … | |
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 … | |
[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). … | |
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?? | |
I've tried the following force download script and for the life of me I can't get it to download the file. I get the download dialog pop-up, but the file size is only around 500 bytes. I think it is the pathing. I've tried absolute and relative paths for readfile … | |
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 … | |
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 … | |
can anyone please help me with my program, my hand in date is on monday so i really need some help thank you |
The End.