199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for anand01

Hi all , Good Day! I am having confusion in storing null values in hashmap and passing null in println method. 1) When I add null value in hash map directly it will not allow at the same time when I assign a null value in to string and add …

Member Avatar for Taywin
0
316
Member Avatar for alon4963

Hello I write down a bank program and I have a problem. I would be happy if you can help me. So I have two types of accounts each account in a different class. first one is limited account and yhe secound is over draft account also I have class …

Member Avatar for rubberman
0
150
Member Avatar for bjf1992

show the output of the following C++ code, (assume the adress of x is 0012ff44) int x=100; int *ptr; ptr= &x; ptr=200; cout<<x<<endl; cout<<ptr<<endl;

Member Avatar for rubberman
0
117
Member Avatar for Aws_1

Hey guyz, i am having an assignment to implemnt a real time clock using cortex-m4 and display it on nokia LCD. i would be appreciated if i can get a source code for this project that might help me. and what are the required files i have to make to …

Member Avatar for rubberman
0
154
Member Avatar for Search_not

I'm making an instant messenger program and I want to allow clients to connect to each other privately(peer-to-peer) using their IP addresses. The only method I know at the moment is a client/server method where the server needs to be online for the client to work. How do I allow …

Member Avatar for Search_not
0
270
Member Avatar for overwraith

So, I am trying to get a query working that finds a certain flash drive attached to my computer and selects it's DriveInfo object. I am having trouble because on my system when I call the VolumeLabel property of one of my DriveInfo objects it throws an exception (IOException) because …

Member Avatar for overwraith
0
214
Member Avatar for cambalinho

i did these menu class: class Menu { private: static int intID; int ID=0; bool primeiromenu=false; HMENU MenuHandle=NULL; HMENU hMenu=NULL; int menuposition=0; string strCaption=""; public: Menu(string caption="&Menu",HMENU subtmenu=NULL, HWND MainHWND=WindowMain) { intID=intID+1; ID=intID; if(caption!="-") caption=(string)caption + " " + to_string(ID); strCaption=caption; if(GetMenu(MainHWND)==NULL) hMenu = CreateMenu(); else hMenu =GetMenu(MainHWND); if (subtmenu==NULL) …

Member Avatar for cambalinho
0
677
Member Avatar for terryds

I have a custom error-handler class (actually it's an exception handler) So, when an exception is thrown, then it'll be caught and stored in the error-handler class.. After all the execution, All the errors will be shown by the class.. Is it a good or bad practice ? Does it …

Member Avatar for matrixdevuk
0
179
Member Avatar for pronob.roy.3110
Member Avatar for amishraa

Is there a way to get a total counts from the resultset of two unions? This will be for DB2. select count(*) from ( select count(*) from xyz where abc='1' union all select count(*) from x1y1z1 where abc='1' )

Member Avatar for amishraa
0
179
Member Avatar for paul1145

When kicking off an async job using backgroundworker, the process I tried is a My.Computer.FileSystem.CopyDirectory(a,b). The next step is to check the progress with bw.ReportProgress(x) but that statement doesn't get control until the copydirectory finishes. I'm not new to programming but to this backgroundworker. Any help would be appreciated. Thank …

Member Avatar for xrjf
0
332
Member Avatar for Pinkkat

Hi! I'm having trouble to figure out what is wrong with my program. I would appreciate if you could help me. About the classes and their requirements to consider: a.Create an Account class, which is the base class for all accounts that has public methods to get and set the …

Member Avatar for stultuske
0
5K
Member Avatar for Lilgenski16

//BlackJack // Plays a simple version of the casino style game of blackjack; 1 - 7 players #include <iostream> #include <string> #include <vector> #include <algorithm> #include <ctime> using namespace std; class Card { public: enum rank {ACE = 1, TWO , THREE , FOUR , FIVE , SIX , SEVEN …

Member Avatar for Lilgenski16
0
235
Member Avatar for hfuehf

Hi I've searched all over the internet for this but can't find anything useful. I have form which a user fills out and then inserts in access database. But I also have a field DateTime in my table which I want to automatically save the current date and time in …

Member Avatar for Santanu.Das
0
3K
Member Avatar for arjay.veliganio

I need help with a program that reverses the letters in a word without altering its order in a sentence. Sample Input: What a sunny day Output should be: tahW a ynnus yad Thanks in advance!

Member Avatar for NathanOliver
0
146
Member Avatar for Azii

Hi, I have php page, 2.php, which collects the data and dispalys it from previous page , 1.php. In 2.php, I also have html and javaScript, which contains a button, and cerresponding onclick script, which opens the OUTLOOk to send the E-mail with given sendername and subject. But for body …

Member Avatar for broj1
0
205
Member Avatar for N S K

how to get the file signature in java? for example a pdf file has signature 25 50 44 46 ..how to get it using java?

Member Avatar for N S K
0
3K
Member Avatar for zebnoon1

Dear friend, i have 2 tab 1) atab 2) qtab.. when i put question and options answers .. i use three forms qset.php, Ans.php and result.php here are code what i want that email of user updated after click button submit code is below ans.php <?PHP include "conn.php"; //session_start(); ?> …

Member Avatar for broj1
0
232
Member Avatar for tNicknames

How I can display elements of the following object ? e.g : data -> percent_off As I stored following like : $input = file_get_contents("php://input"); $retun_val = json_decode($input); stdClass Object ( [id] => evt_151H4qEfYJJpTpgqdg5eQvIK [created] => 1416575036 [livemode] => [type] => coupon.created [data] => stdClass Object ( [object] => stdClass Object …

Member Avatar for broj1
0
175
Member Avatar for prash21m

Hi guys ! I am using rewriting rules to redirect some URLs, but search engines crawling both URL (Rewritten and Real URLs). For example : **Real URL :** www.catchcoupons.in/storecoupon.php?cid=Flipkart **Rewritten URL :** www.catchcoupons.in/coupon/Flipkart.html Search Engines are crawling both URLs, even i want search engines to index only Rewritten URLs (http://www.catchcoupons.in/coupon/Flipkart.html) …

Member Avatar for prash21m
0
557
Member Avatar for kaye.santos.92

i'am trying to create a setup file for my system where it has a database...can you help me???...i've tried to search it but it's only for mssql...

Member Avatar for kaye.santos.92
0
185
Member Avatar for davy_yg

Hello, In my index.php file front page at first, it has a xampp logo - then in order to erase it I have to place this code: <!-- Favicons --> <link rel="shortcut icon" href="img/icons/favicon_.ico"> <link rel="apple-touch-icon" sizes="114x114" href="img/icons/apple-touch-icon-114x114.png"> <link rel="apple-touch-icon" sizes="72x72" href="img/icons/apple-touch-icon-72x72.png"> <link rel="apple-touch-icon" href="img/icons/apple-touch-icon.png"> by miss leading the favicon …

Member Avatar for diafol
0
6K
Member Avatar for mak96

[CODE=php] <?php //get the variables $var = $_POST['query'] ; $trimmed = trim($var); $table = $_POST['table']; //make connection $conn = mysql_connect('localhost','root','123') or die("Error:".mysql_error()); mysql_select_db('sutilities',$conn) or die("Error:".mysql_error()); //delete temp search table $del_table = "drop table search"; #mysql_query($del_table) or die ("Error:".mysql_error()); // Create a MySQL table in the selected database #mysql_query("CREATE TABLE search( …

Member Avatar for honeymehta
0
871
Member Avatar for Garidius

Hello to all in forum, Maybe some java expert could help me. How can I read chunks from binary file each chunk at a time? The chunks are separated with the bytes D2 followed by A7 and of variable length. This is whenever D2A7 is found, this is the End/Beginning …

Member Avatar for Garidius
0
2K
Member Avatar for vaultdweller123

hello people daniweb....just want to ask honest oppinions from you guys, because this has been bugging me for years. I've been a PHP developer for 5 year using windows. So far so good. i am able to accomplish the task at hand. but there's always back of my head saying, …

Member Avatar for vaultdweller123
0
177
Member Avatar for kaye.santos.92

i am trying to start a form named login. i have changed my start up form in properties but different form start when i click debug. can you help me???

Member Avatar for Piolo_1
0
164
Member Avatar for Piolo_1

i want to update all this column in 1 execution. any reply is highly appreciated.. thanku UPDATE tblstoreitems SET price='499' WHERE TypeOrModel = 'A130'; UPDATE tblstoreitems SET price='599' WHERE TypeOrModel = 'A140'; UPDATE tblstoreitems SET price='1899' WHERE TypeOrModel = 'Alpha Style'; UPDATE tblstoreitems SET price='1699' WHERE TypeOrModel = 'Amethyst'; UPDATE …

Member Avatar for Piolo_1
0
136
Member Avatar for saadi06

Hi, I have three folders in my project named as apache, php and mysql. I want to update my php,apache and mysql to latest version but I do not want to reinstall all the system again. My system works in this way that we copy all the folders and install …

Member Avatar for veedeoo
0
505
Member Avatar for Builder_1

Simulate a patient’s lines using queues with enqueue ( ), dequeue ( ) and printQueue ( ) operations. Define a queue node in the following manner: typedef struct queueNode { int patientID; // Unique identifier; starts at 1; after 24 hours should be reset to 1 int checkupTime; // Random …

Member Avatar for Builder_1
0
380
Member Avatar for Auroch

Hello. I need to write a program to evaluate a definite integral with Simpson's composite rule. 1. ![fb9ac9a01f247c8a0ed8a606b7c10f4a](/attachments/small/4/fb9ac9a01f247c8a0ed8a606b7c10f4a.png "align-left") I know there is a Simpson's rule available in Scipy, but I really need to write it by the following scheme. 2. ![239643044a08379e5fe3747e13b2834e](/attachments/small/4/239643044a08379e5fe3747e13b2834e.png "align-left") , where a, b - limits of …

Member Avatar for Auroch
0
2K
Member Avatar for ddanbe

It was tinstaafl who put me on the right track. [Click Here](http://www.daniweb.com/software-development/csharp/threads/450463/graph-plotter) I did not know that .NET as of VS 2010 had a charting control! OK, let’s get started! But the learning curve, is as always, a bit steep. MSDN does not seem to provide too much code, so …

Member Avatar for ddanbe
0
3K
Member Avatar for Muhammad_70

public static bool CheckIdentifier(String i) { bool state = false; char[] c = i.ToCharArray(); try { if (Convert.ToInt32(c[0]) >= 65 && Convert.ToInt32(c[0]) <= 90 || Convert.ToInt32(c[0]) == 95 || Convert.ToInt32(c[0]) >= 97 && Convert.ToInt32(c[0]) <= 122) { for (int Index = 0; Index < c.Length; Index++) { if (Convert.ToInt32(c[Index]) >= …

Member Avatar for ddanbe
0
344
Member Avatar for Ali_41

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'a5247065_funmaza'@'localhost' (using password: YES) in /home/a5247065/public_html/includes/connect.php on line 2 When I uploaded my website on web hosting that error occurs...plzz help me

Member Avatar for minitauros
0
149
Member Avatar for Wajid sardar

Source File not comiled error message occures #include <iostream> #include <stdlib.h> #include <time.h> using namespace std; main(){#include <iostream> #include <stdlib.h> #include <time.h> using namespace std; main(){ //declaraing and initialization integers int secretNumber = 0, UserNum=0; int UpperRange=0 , userMaxRand=0, LowerRange=0; cout<<"My Student ID Mc140402241 "<<endl; //Prompt the user to enter …

Member Avatar for Moschops
0
529
Member Avatar for ceeandcee

I have two tables that I would like to work together (stories and events). Stories is a table that is used to produce articles on a website and events is a series of events put into a table. I would like to be able to add events to story based …

Member Avatar for ceeandcee
0
201
Member Avatar for stokie-rich

Hi people I need some advice off you please. I'm creating a quiz for the website that I'm creating for my portfolio to help me to get a graduate job. I want to get 20 questions (at random) I think I have got this sorted now. But when I try …

Member Avatar for stokie-rich
0
3K
Member Avatar for AJones

Hi Folks: I just installed Dev-C++ 4.9.7 beta 7 and compiled a simple "Hello World" console app, I get a lot of error related to iostream.h file not being found. Dev-C++ is installed in C:\Dev-Cpp\ directory, Has anyone else have had this problem. Thanks AJ

Member Avatar for Wajid sardar
0
2K
Member Avatar for pikai

Dim con5 As New ADODB.Connection Dim rs5 As New ADODB.Recordset Private Sub Command1_Click() con5.Provider = "Microsoft.JET.OLEDB.4.0;" con5.Open App.Path + "\da.mdb" rs5.Open "[DEMO]", con5, adOpenStatic, adLockOptimistic 'The above code can't work when the database is protected. 'Please Tell, How can I solve it

Member Avatar for Santanu.Das
0
251
Member Avatar for chrisschristou

hello dani friends. i'm working on webdesign and web developement from 2 years autolearning on interent. now i'm capble to make a website for a client using php/mysql and html5/css. but i dont know when i will deliver the site for my client how he will be able to add …

Member Avatar for gabrielcastillo
0
172
Member Avatar for aluhnev

//Hi i do the delivery company project,this are my members of the base class //how do i create 2 constructors in base,one for sender and one for recipient? //I did one for sender ,but visual studio does not allow me to create identical for recipient //Can some one help to …

Member Avatar for rubberman
0
260
Member Avatar for UK-1991

Hello guyz Just written a small code trying to make a scenario in which I get a name from user and see that the provided name is present in my array list if it is then it displays name found if not present in array it simply says name not …

Member Avatar for JamesCherrill
0
107
Member Avatar for shungkiu.lee

hello guys, well basically i have zero java knowledge, so don't mind me asking such kind of dumbass question( to you but not to me lol) so, i have a .txt file in which there is a number in such line (for example, 0 and 1) i want to print …

Member Avatar for JamesCherrill
0
186
Member Avatar for Amr_Mohammad_R

I need to know how the primary index is classified as a sparse index? The sparse index as described by some aticles and books has index entries for only some of the search values and has a fewer entries than the number of records in the file. When you make …

Member Avatar for Amr_Mohammad_R
0
201
Member Avatar for herrschteiner

I'm writing a bash script that redirects the output of a command to a file. The next thing the script should do is read the contents of the file, into the tenth line of a python script. It's tricky, because the line of text in the python script should read: …

Member Avatar for Software guy
0
311
Member Avatar for Kadian

he following code gives the error UnboundLocalError: local variable 'currentpl' referenced before assignment: if user_choice == 0: currentpl = 1 elif user_choice == 1: currentpl = 2 while gameover(num_sq): if currentpl == 1: pick = getPlayerPick(num_sq) while not validPlay(pick, num_sq): pick = getPlayerPick(num_sq) makePlay(pick, player_col[currentpl]) if currentpl == 2: pick …

Member Avatar for snippsat
0
374
Member Avatar for redtribal23

Okay so first is I am confused with the void function. It is said that void function does not return a value. If for example I have a void function that gets user input, like price and month, how do I use price and month to do another function? int …

Member Avatar for redtribal23
0
149
Member Avatar for lewashby

When I compile the following two programs one of them compiles and one of themse does not but I don't see a difference. The smaller program is the same only I've taken out a lot of the code so that I'm left with only the minimum that I need to …

Member Avatar for mike_2000_17
0
4K
Member Avatar for ToniSoft

I am using a Crud plugin and i am having some problems. After i modifie it for my needs i ma having a problems creating a records. Error code is in line 186. this is my code please help.. <?php require 'database.php'; if ( !empty($_POST)) { // keep track validation …

Member Avatar for ToniSoft
0
216
Member Avatar for Trle94

Hello everyone, I need small help.. So I got working text file loading to listview, but if file is to big it get whole app stuck untill it load it out... So my question is, is it possible loading with background worker and progress bar? Here is my current source: …

Member Avatar for Reverend Jim
0
164
Member Avatar for COKEDUDE

If you want to set an entire array to -1 is better to cycle through it with a for loop like this? for (int i = 0; i < 100; ++i){ array[i] = -1; } Or use memset like this? memset (array,-1,100);

Member Avatar for Maritimo
0
190

The End.