199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for anifreak

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 …

Member Avatar for William Hemsworth
0
132
Member Avatar for littlestone

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?

Member Avatar for Narue
0
168
Member Avatar for majestic0110

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 …

Member Avatar for majestic0110
0
3K
Member Avatar for Yogesh Sharma

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???/

Member Avatar for Jx_Man
0
319
Member Avatar for mghx

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 …

Member Avatar for Narue
0
245
Member Avatar for sonia sardana

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 …

Member Avatar for sonia sardana
0
114
Member Avatar for staysolid3

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 …

Member Avatar for ericstenson
0
64
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 : …

Member Avatar for DigitalPackrat
0
132
Member Avatar for CoolGamer48

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. …

Member Avatar for CoolGamer48
0
177
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 …

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 …

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 …

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 …

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) { …

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. …

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 …

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?!

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 …

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 …

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 …

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 …

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 …

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 …

Member Avatar for Thirusha
0
134
Member Avatar for anish.anick

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 :)

Member Avatar for anish.anick
0
92
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 */ …

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 …

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 …

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 …

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

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

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 …

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 …

Member Avatar for hacker9801
0
111
Member Avatar for zaid08

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 …

Member Avatar for Saaddani
0
125
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, …

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 …

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 …

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 …

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?

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?

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 …

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 …

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 …

Member Avatar for joshmo
0
147
Member Avatar for JohnS

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" …

0
119
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 …

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). …

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??

Member Avatar for Ezzaral
0
101
Member Avatar for spiderling

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 …

Member Avatar for spiderling
0
115
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 …

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 …

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

Member Avatar for Salem
0
171

The End.