199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Đăng

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 …

Member Avatar for mike_2000_17
0
429
Member Avatar for thewalrus

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 …

Member Avatar for TylerD75
0
371
Member Avatar for hAbbas

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 …

Member Avatar for cheryllocascio
0
198
Member Avatar for strRusty_gal

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 …

Member Avatar for strRusty_gal
0
181
Member Avatar for SuperCucumber

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 …

Member Avatar for cheryllocascio
0
198
Member Avatar for Jake.20

Greetings, i have this code that inserts an item on the table item_tbl and it should also get the added items primary key and insert it on table fields_tbl. My question is how can i get the primary key of the item that i will add and insert it on …

Member Avatar for Jake.20
0
144
Member Avatar for adishardis

Hi, I have en stdClass object array that looks like this Array ( [10] => stdClass Object ( [inlast] => 2013-02-15 00:00:00 ... etc Where the first number (10) is the uniqe identifier for that row, and the array contains all the rows in the table. So my question is …

Member Avatar for pritaeas
0
206
Member Avatar for piers

Hi, I have been creating a round robin. This is similar idea to speed dating except everyone has to talk to everyone. Whilst I have been able to create this, there is a lot of repetition in my code and I wondering if any of you have recommendations for removing …

Member Avatar for piers
0
3K
Member Avatar for Priti_P

Hello, using for each of jquery am fetching td's name but if try to test it by removing name from firbug and try to submit it then my code is breking. so first question, what should anyone do in such case? and another regarding my code is: $('#SkillDetails_table tr').each(function() { …

Member Avatar for kaleemullah360
0
106
Member Avatar for patricia28

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

Member Avatar for ddanbe
0
258
Member Avatar for cp3mvp

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

Member Avatar for DonnSchwartz
0
482
Member Avatar for bolfescu

Hy i have this table, unfort i dont know how to retrieve the data from sql and to put it one under each one i have all the 18 tablesi whant to do something like this: (id1) 2 3 4 5 6 7 8 ..... (id2) 2 3 4 5 …

Member Avatar for bolfescu
0
149
Member Avatar for sciprog22

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

Member Avatar for sciprog22
0
181
Member Avatar for マーズ maazu

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?

Member Avatar for rubberman
0
1K
Member Avatar for gbhs

Hi if myTable has a column like Col 10 7 3 5 9 4 How can I select three smallest numbers? my resultset should be 3 4 5 I don't prefer the following; with myT as (select col from myTable order by col) select top(3) from myT Any better idea? …

Member Avatar for gbhs
0
251
Member Avatar for HuePig

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 …

Member Avatar for rubberman
0
126
Member Avatar for lewashby

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 …

Member Avatar for lewashby
0
184
Member Avatar for NITHIN171
Member Avatar for iamthwee

Hi guys, Got a bit of a dilemma, I just recently discovered my VPS was sending spam, this was brought to my attention by my hosting company. And sure enough I went to check the mail queue log in my control panel, I'm using plesk btw, and it failed to …

Member Avatar for cereal
0
547
Member Avatar for Slavi

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 …

Member Avatar for Slavi
0
159
Member Avatar for riyamanavalan@g

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.

Member Avatar for cgeier
0
262
Member Avatar for HuePig

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 …

Member Avatar for uonsin
0
426
Member Avatar for johnef_sh

I am try to figure out how to check current time against time in database and header the user to "expired page" if the current time is greater than the one in database "1 hour" $email = $token = $check_time = ""; $crossToken = $db->prepare("SELECT email, token, check_time FROM pw_reset_company …

Member Avatar for johnef_sh
0
274
Member Avatar for Lonestar Jack

All functions work every time except the "btn_replay" which only works on the first iteration. It does not use the session variable File name is add_hock_query_js.php and is included in file ad_hoc_query.php I have scoured the internet without a result and am stuck. <?php session_start(); ?> <script type="text/javascript"> $(document).ready(function(){ $('input#btn').hide(); …

Member Avatar for Lonestar Jack
0
192
Member Avatar for Slavi

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 …

Member Avatar for Slavi
0
161
Member Avatar for Slavi

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

Member Avatar for Slavi
0
175
Member Avatar for Jeroen Mathon

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

Member Avatar for JasonHippy
0
184
Member Avatar for wikit

Hi again guys please forgive my unknowing, i tried but simpply got errors. I downloaded this upload script ( [Click Here](http://www.phpkode.com/scripts/item/es-simple-uploader/) ), it works great except it's for single file uploads, not multi-file uploads The website I'm working on requires the ability to upload multiple files at the same time, …

Member Avatar for Adrian_5
0
280
Member Avatar for maxbummber

I am trying to learn how to use jQuery and I stumbled upon this code and the requirements below: * disable all the cells from "Every Monday" till "Every Sunday" as the initial status; * make "Never" exclusive from all the rest of options in the same row; * make …

Member Avatar for pritaeas
0
362
Member Avatar for Jeroen Mathon

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 …

Member Avatar for JasonHippy
0
568
Member Avatar for Chinthanie

Do you know any mechanism to extract .owl file from a RDF data set?

Member Avatar for pritaeas
0
269
Member Avatar for Chem_1

I am interested to do practice on oracle database.Actually i had completed course on MYSQL,now i want to try on oracle.Today i have opened the oracle website to download oracle 11g(windows7 64bit),But in downloads only Oracle Database 11g Express Edition R2 is there.What to do now?For Mysql workbench is there …

Member Avatar for jwenting
0
314
Member Avatar for James_30

hello I am working with the daniwebjsptutorial the first one. I have a src and in it I have the resource.dir. I have the HttpServlet.jar there. I do not know how to get the LoginServlet class to find it using eclipse. Is there a standard entry point for the web …

Member Avatar for jwenting
0
143
Member Avatar for BibhutiAlmighty

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 …

Member Avatar for .Net Fan
0
168
Member Avatar for ravi142

Hello How can i add ID='xyz'in IMG tag <div class="main-banner"> <img width="1000" height="242" alt="cropped-Penguins.png" class="attachment-full" src="http://../cropped-Penguins.png"> </div> JQuery which i have tried jQuery('.main-banner').append("img").attr('id','xyz'); But Not Work. Give me suggestion Thank you

Member Avatar for noelthefish
0
138
Member Avatar for fatalaccidents

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

Member Avatar for ~s.o.s~
0
5K
Member Avatar for Gusani_1

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

Member Avatar for DonnSchwartz
0
215
Member Avatar for Sahilsikka

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

Member Avatar for DonnSchwartz
0
196
Member Avatar for dtbn

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 …

Member Avatar for ice23
0
14K
Member Avatar for bolfescu

Hy ihave this phpcode, how can i paginate this?to make more pages from the sql results... because i have a lots of rows... <?php $qry=mysql_query("SELECT *,replace(category, ',', ' ') as category FROM articles ORDER by articles.id DESC ", $con); if(!$qry) { die("Query Failed: ". mysql_error()); } /* Fetching data from …

Member Avatar for pritaeas
0
109
Member Avatar for Blueie

Hello I am trying to make an alteration to the CSS behind the site.master file. I have the following in my site.master code: <div class="navbar navbar-inverse navbar-fixed-top"> <div class="container"> <div class="navbar-header"> ........ </div> </div> </div> This refers to the fixed bar along the top of my page as in the …

Member Avatar for pritaeas
0
1K
Member Avatar for iamthwee
Member Avatar for Dani

Trying desperately to get CodeIgniter and Nginx to play nice. I was able to get it working once a long time ago and I cannot seem to reproduce what I had. I am trying to follow: http://wiki.nginx.org/Codeigniter However, it works fine where / gives me the default controller/method, and I …

Member Avatar for Adrian_5
0
2K
Member Avatar for aquilina

I have a problem with login issue that when i loggin as student from index.php it should bring me to student_home php.. but it doesnt show anything and just bring me to index.php back.. i mixed up about header and session part.. my index.php <?php include('header.php'); //Start session session_start(); //Unset …

Member Avatar for Adrian_5
0
362
Member Avatar for lewashby

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

Member Avatar for cheryllocascio
0
195
Member Avatar for bLuEmEzzy

Hey guys, I want to generate a unique number in PHP (ex. 000001, 000002 etc), when it is saved in the database it will increment in 1 (+1). But how can I do it? Thank You :)

Member Avatar for bLuEmEzzy
0
298
Member Avatar for saimasiddiqui

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', …

Member Avatar for Gribouillis
0
1K
Member Avatar for Tycellent

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 …

Member Avatar for rubberman
0
3K
Member Avatar for vizz

[CODE]<div id="wrapper"> <div id="header"> <p>This is the Header</p> </div> <div id="navigation"> <p>This is the Navigation</p> <a href="#">Home</a> <a href="#">About</a> <a href="#">Contact</a> </div> <div id="content"> <p>This is the main content</p> </div> <div id="footer"> <p>This is the Footer</p> </div> </div>[/CODE] This is my HTML code. I have menus in navigation div. Content …

Member Avatar for diafol
0
4K
Member Avatar for hallianonline

Hello, I am using FCKeditor to inserting news content now my problem is after submitting the news sucessfully. I get all other new items on the same page if i need to edit them on clicking the edit button the fckeditor not loads the old content until i change this …

Member Avatar for diafol
0
224

The End.