132,726 Archived Topics
Remove Filter ![]() | |
my teacher asked me "Why c++/c## support operator overloading and java don't?" I have an answer for Java. anything I read, just said about how to write, define or something else. No answer for "why" someone can give me a document which I need or the answer. thanks for reading … Software Development c++ | |
Client code import java.net.*; import java.io.*; /** * This example illustrates the basic method calls for connectionless * datagram socket. * @author M. L. Liu */ public class Example1Sender { // An application which sends a message using connectionless // datagram socket. // Three command line arguments are expected, in … Software Development client-server java | |
hi! i am trying to write a program that takes a long integer and compares every pair in that integer and displays largest pair. e.g we have an integer 23812 and in this integer largest pair is 81. so program should display 81. but i have no logic in mind … Software Development c++ | |
Everyone, I have a question... hope you can help me... I have 4 methods and they are expecting to return some value to the caller. MethodA() MethodB() MethodC() MethodD() MethodA() call MethodB() then MethodB() call MethodC() then MethodC() call MethodD() and MethodD() will return something. if the MethodD() return empty … Software Development | |
Helloo everybody, I'm in the midst of attempting to create a publisher-subscriber design. What i understand is that a publisher-subscriber pattern will mainly include distributing messages to certain subscribers at certain times. I was thinking there would be a "publisher" class & a "subscriber" class and later on publisher will … Software Development c++ | |
import java.util.Scanner; public class assignment8{ public static void main(String[] args ){ Scanner s = new Scanner (System.in); double a,b,c; double discriminant, r1, r2; System.out.print("Enter a, b,c"); a=s.nextDouble(); b=s.nextDouble(); c=s.nextDouble(); discriminant= Math.pow(b,2)- 4*a*c; if(discriminant>0){ r1=(-b + Math.pow(discriminant,0.5))/(2*a); r2=(-b+ Math.pow(discriminant,0.5))/(2*a); System.out.print("The equation has two roots"+ r1 + "and"+ r2+"."); }else if(discriminant==0){ r1= … Software Development java | |
hi is there anyone who can help me to create a game program in pascal hoping that one of you can help me please even a simple calculator coz i really dont know how to create Software Development pascal | |
Hello, Could you explain the output for the program below? Is the output specifying a reference of the Scanner object in RAM (I don't see any hex hash) or something else? Thank you! import java.util.Scanner; public class ScannerTest { public static void main(String args[]) { Scanner input = new Scanner(System.in); … Software Development java | |
Greetings all, I use MinGW32 for doing problems and have reach a point where standard malloc() would throw bad_alloc() whenever i call new. What other alternatives for Windows in memory allocation? Software Development c++ | |
Hi, I'm having trouble reading a file the way I want it to. /*Textfile.txt*/ ROOM Closet Its too dark, you cant see anything. EXIT out Basement 1 ROOM Basement Its too dark, you need some sort of light to help you see. EXIT enter Closet 1 EXIT up Dinning_Room 1 … Software Development c++ file-system | |
What is the difference between these two classes? In the second one `protected:` looking like it isn't doing anything at all, there's nothing under it umbrella. class Tank { protected: int wheels; public: void setWheels(int newWheels) { wheels = newWheels; } int getWheels() { return wheels; } }; /////////////////////////////////////////////////////////////// class … Software Development c++ | |
Hey hey ..I've got stucked onto another one ... So, not sure how to explain this 1 but I can give an example ... When input = 1 - expected result is a string = "a b c d e f g h i j k l m n o … | |
i developed a project in c#.it works for one year.now it shows license error.i didn't do any code for license.but project uses some dlls(such as pdfnet.dll,impersusr.dll) which is downloaded from internet.how can i find license expired and how can i edit it. Software Development | |
Hi, how can I store an object in a hash_map? I have an Item object and I want to pair it with a quantity. Will I be able to: 1. Find the item? 2. change the paired quantity? 3. sort it by qty or item name? /*Item.h handles the item … Software Development c++ | |
Hey guys, I've got stucked on something here ... so to explain it here is an example. Let's say I have a string "aa a i". My idea is to get a result that is "aA A I". -> this is a challenge on Codehunt and I got stucked on … | |
Hey guys, I am making something that it takes a char, then it sums it with 5 and returns the new char according to the ASCII table, for example input is 'a' , then output will be 'f'. This code is doing it somewhat .. public static String Puzzle(String s) … | |
I keep getting coredumps when i run this function. void readUser(int uid) ///Reads users from data directory { std::stringstream fileName; fileName << "./data/" << uid << ".dat"; user myUser; std::cout << "USERNAME:" << myUser.name << "\n UID:" << myUser.uid; ///Reads data from file FILE* dat = fopen(fileName.str().c_str(),"rb"); fread(&myUser, sizeof(user), 1, … Software Development c++ coldfusion github | |
Hello, The reason why im asking for this is becouse im currently making a project that needs data storage. And sqlite seems to be perfect for that matter. I've already read the documentation of Sqlite3 but i found that insufficient. It didn't really explain much besides the obvious. I can … | |
hello guys, i am creating a simple quiz on c# in visual studio. I am stuck in changing the page(switchig to next question) when one question is answered. what should i do for that ? i tried by making a new form inside the previous one but its not a … Software Development visual-studio | |
Hello all, My question is hopefully particular enough to not relate to any of the other ones that I've read. I'm wanting to use subprocess and multiprocessing to spawn a bunch of jobs serially and return the return code to me. The problem is that I don't want to wait() … Software Development multithreading python queue | |
Hello Friends, I want to know - "What is Polymorphism in C++?" Books can not help me...please make me clear about it..in simple terms..please...!! Software Development c++ | |
i want to know the differnce between int a=10 & int a; a=10; though both look same and assign the value 10 to the variable a. but in memory theres a big difference between te two. Can anyone help me with this?? Software Development c++ | |
Hi, I already have an excel file (MyXL.xls) and a Visual Basic (Form1.frm) with a command button. Now, I want to write a code for the Visual Basic so that when I click on the command button, the excel file will be opened. Any help is significant to me! Thank … Software Development visual-basic | |
![]() | |
I'm reading my C++ book and I've come to a chapter on structures and unions. The book has tried to explain the difference but I'm not getting it's explanation. Playing with the structure examples in the book reminds me of accessing attributes to a python Class but apart from that, … Software Development c++ | |
I am taking my very first programming class ad kind of stump on the problem mention in this post.. In coding I only got so far as what shows here.... 2. Write Python statements corresponding to the following: a. Assign to variable flowers a list containing strings 'rose', 'bougainvillea', 'yucca', … Software Development python | |
Hey everybody, As of this moment i'm trying to work out how to approach a state design. I've come across Source Makers' site [http://sourcemaking.com/design_patterns/state/cpp/1](http://sourcemaking.com/design_patterns/state/cpp/1) and am testing out the example. The program works fine when it's all in 1 file, although i had to change some stuff in main, but … Software Development c++ oop web-design | |
Hi! i am writing a program in which i am reading a text file named "studentinfo". I have made a notepad file as "studentinfo" and then wrote a program to read this file. but there is an error occuring : " invalid operand of types 'char[20]'and '<unknown type>' to binary … Software Development c++ file-system | |
Hello Daniweb, So, I am currently working on a simple download time estimator program using JOptionPane and some loops. I have some beginning code and wanted to check how it is working, only it seems I messed up something and am stuck in my loop when I run it. I … Software Development file-system java java-swing | |
hi sir, when i adding items into the listview ,i have added serialno and 5 other columns ,so whenever i adding new item the serialno will increase one but my problem is when i removing a row from listview how to rearrange the serial numbers pls help me | |
Hello everyone, So I have a quick question. Back when there was something written by BoFen and it was called codegenie and I have a copy of it and i've been using it with some success. What I'd like to know is are there any good api spies that generate … Software Development api vb.net windows-api | |
Hi, I have an Item class, how can I make my Item object be composed of more Item objects? Say I have a gun and its composed of more items like bullet and magazine, how can i make it do that? /*Item.h handles the item in game*/ #ifndef ITEM_H #define … Software Development c++ | |
In the Following code, Function Delete_item is not working properly. it only works when we use break; statement... if some can do it without using break; stetement then please share and eplain the method... #include<iostream> using namespace std; struct node {int info; node *link; }; class list {private: node *head, … Software Development c++ linked-list | |
public class InventoryProgramPart1{ public static void main (String args []){ DVD dvd; dvd = new DVD(1, "Just Go With It", 8, 2.04); System.out.println(dvd); dvd = new DVD (2, "Gnomeo and Juliet", 2, 1.34); system.out.println(dvd); dvd = new DVD (3, "Black Swan", 6, 2.20); system.out.println(dvd); dvd = new DVD (4, "Zookeeper", … Software Development java | |
I am trying to make a simple calculator, unfortunately, it isn't going so well. Any ideas on how to make it simple? if gamemode=1 then {If gamemode 1 has been chosen} begin clrscr; title; writeln ('Welcome to Calculator'); writeln; writeln ('To begin, press <Enter>'); readln; clrscr; title; writeln ('Choose which … Software Development pascal | |
Define a C-string function void append(const char * v, const char * w, char * buffer) that appends the characters of C-string w to the characters of C-string v and stores the result in buffer. (Don't forget the terminating null character .) You can assume that the function is called … Software Development c++ | |
Hi! I want to display a table in the Local Report using SQL Connection. Parameters will be user-defined. Example. sqlSearch = "SELECT * FROM shipment WHERE " & port & " BETWEEN @datePerformedFrom AND @datePerformedTo ORDER BY recno DESC" `@datePerformedFrom` and `@datePerformedTo` will be supplied by the user. Please help … Software Development vb.net | |
void password(){ string fpass; string pass; cout << "Type the password " << endl; getline(cin,pass); cin.ignore(); ifstream fin(FILENAME1); string str; getline(fin, str); fpass = str; cin.ignore(); if (pass.compare(fpass) == 0){ cout << " Hello!" << endl << endl; cout << "What do you want to do?" << endl; }else{ cout … Software Development c++ | |
Is the a model folder and file structure to follow if I wanted to build java projects in eclipse? | |
I have a couple java apps that run good in netbeans and in eclipse yet when I compile on the command line during the build.xml they all get these 100 errors. The list looks daunting but they are all dealing with joda time. Not sure what is going on. I … Software Development java java-netbeans | |
Hi guys, Does anyone know if its possible to set and activate a bios password in .net? Regards. Software Development motherboards-cpu-ram ![]() | |
Can anyone help me? my problem is that when i enter my full name it forcefully close. i don't know why. please help me with my problem #include <iostream> #include <string> using namespace std; string name, zodiac, horoscope; int age, month, day; cout<<"Enter your Full name: "; cin>>name; cout<<"Enter Age: … Software Development c++ | |
HI I donot understand where to start . I need ideas and help. void InsertList(c4735list *destinationList,c4735list *sourceList,node *startNode) { //=====================not implementd yet } this fn inserts source list into destination list.the nodes are inserted after the startnode in destination list.source list should be an empty list after this operation. the … Software Development c linked-list | |
Hi All, I run gdb server on a remote linux target and debug with the client. Are there some gui front-ends that might come in handy? I use gdb with --tui, but still sometimes find difficulty in "watch"ing variables. Is there some way i can perhaps use a gui based … | |
So basically I want to make a tetris game with Pascal as a project I am working on. I wasn't able to make it complicated like you can move the piece and different types of piece come. From other responses, they involve more than 1 Pascal Program but I am … Software Development pascal | |
Hi! The for loop works and it reads the value of `recno()`. However, the sql code itself is being executed once only. Is there any tweak I need to do for DB2 iSeries codes? For k = 0 To recno.Length - 1 sqlUpdate = "UPDATE shipment SET status=@status WHERE recno=@recno" … Software Development vb.net | |
Hello to all frndz! i want to write a program in which i have stored some integer elements in an array and i want that my program searches for the largest integer and displays it. for example if i have some integers in my array like 23, 38, 81, 12. … Software Development c++ | |
Hello everybody , i have a pending assignment and it is based on developing a Binary Search tree in C. One function which is required is Given As:- e. A function to convert the tree to a min-heap or a max-heap. Im really stuck guys , i dont have any … Software Development c |
The End.