199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for johnray31

Hi guys, can anybody explain to me with a example why we people emphasize to pass double pointer in a function instead a single pointer when we want to fill some variable inside that function. or what are thge advantage of double pointers in c over single pointer?

Member Avatar for Bharat_1
0
16K
Member Avatar for murali2489

Hi All, I have created a Class named Stock and have declared three Constructor . First constructor with no parameter, second constructor with three parameter, third with Two parameter. When I call my constructor inside a System.out.println(constructor); , it should display the variable Values right ? . but instead it …

Member Avatar for murali2489
0
198
Member Avatar for joma.tioquin

the program should be able to display array (11 22 33 44 55 66 77 88 99 00). then will ask user to input a number that is (only) in the array displayed. then display the new array. sample: input = 44, new array should be 11 22 33 55 …

Member Avatar for joma.tioquin
0
409
Member Avatar for christinetom

Would anyone know where I could get a really extensive coverage of pre-processor directives? There are plenty of websites but the information is limited. Was hoping there was a complete source like a book out there. Thanks everyone.

Member Avatar for rubberman
0
190
Member Avatar for Eternal Newbie

Is there a way to set a window to the top on screen and set focus on it? I'm having a menu in VB.Net calling a bunch of .exe. Everytime a window apears, it runs itself to the top on screen. But there was a window, problem-able one, with some …

Member Avatar for Eternal Newbie
0
14K
Member Avatar for Eternal Newbie

Hmm, normally, I just cut all those controls out and delete the GroupBox. But, it's not easy all the time, so me just wondering if there was a way to do it without touching the child controls. Remove the relationship? Or other otions?

Member Avatar for Eternal Newbie
0
3K
Member Avatar for tieties

Ok so im reading int values from an sql database but then the "Executor" comes back as a hex value and it is declared as a int value in sql..all the bit field values i have comes back correctly accept the int values. can someone help me ons this, what …

Member Avatar for Eternal Newbie
0
179
Member Avatar for pooh1234qwerty

#include<stdio.h> #define CH char*; int main(){ CH a,b; printf("%d %d\n",sizeof(a),sizeof(b)); return 0; } here the o/p is 4 1. why isnt b also of type char*..??

Member Avatar for JasonHippy
0
178
Member Avatar for nathan.pavlovsky

Hellp programmers! I'm trying to create a program that displays the impact of changing the rate of compound intrest using the historical example of Manhattan's aquisition as an example. The code is below: int main() { double amount=0; //amount on deposit at the end of each year double principal=24.00; //initialize …

Member Avatar for gusano79
0
369
Member Avatar for modaresi

Right now, this program asks the user to enter the input infile and outfile file names. Then it gives an error if it can't open the file. If it can open infile, it reads the first value and consider that as the array size. After that it continues with other …

Member Avatar for Ancient Dragon
0
418
Member Avatar for Dani

What's the difference and which are you supposed to use? I typically stick to `else if` unless I am using short tags. Is this correct??

Member Avatar for EvolutionFallen
0
273
Member Avatar for Matigo

Hello everyone How can i make the button be on the left side or right side please Part of the code Button(self, text = "start", command = self.launch).grid(row = 7, column = 0, columnspan = 1,) Thanks in advance

Member Avatar for bumsfeld
0
220
Member Avatar for Antriksh_1

#include<iostream> using namespace std; class A { int a[]; }; int main() { cout<<sizeof(A); return 0; }

Member Avatar for mike_2000_17
0
243
Member Avatar for FaridMasood
Member Avatar for furlanut

I have some experience of PHP but limited knowledge of handling arrays. My db table has 5000+ rows and 13000 populated fields. I want to create an alphabtical, visible index of the contents of each field, possibly for inclusion in an html page. If this possible, can it be initiated …

Member Avatar for diafol
0
320
Member Avatar for somjit{}

[this](http://docs.oracle.com/javase/tutorial/uiswing/examples/components/TextComponentDemoProject/src/components/TextComponentDemo.java) is the code i was looking at.Its about how to use JTextPane and related swing text Components along with actions and keymaps. my question is that in this part textPane = new JTextPane(); textPane.setCaretPosition(0); textPane.setMargin(new Insets(5, 5, 5, 5)); StyledDocument styledDoc = textPane.getStyledDocument(); if (styledDoc instanceof AbstractDocument) { doc …

Member Avatar for somjit{}
0
222
Member Avatar for kindofsudden

Okay, I'm pulling my hair out. I'm getting NO error on the following code: Dim cmd As New OleDb.OleDbCommand("CREATE TABLE [" + empTableName + "] ([ID] DOUBLE, " & _ "[LnameFname] TEXT(255), " & _ "[Location] TEXT(255), " & _ "[SalaryOld] DOUBLE, " & _ "[FtePercentage] DOUBLE, " & _ …

Member Avatar for kindofsudden
0
252
Member Avatar for Yuexuan

Hey guys, New to the site, new to writing SQL queries and have no background in this type of thing. But I've been googling my way to victory for the most part. I'm struggling on probably a very simple problem. I'd like to Sum the contents of a column, if …

Member Avatar for Yuexuan
0
443
Member Avatar for sanbhu2105

hello, am new here and new to php/mysql coding. i have 2 tables - tbl_prodstd and tbl_products tbl_prodstd - std_id, prod_name, prod_desc, prod_photo, prod_brand tbl_product - prod_id, std_id, prod_name, prod_brand, prod_desc, prod_price, cat, subcat, prod_photo i created 3 pages - add_prod.php, addprod.php, func.php the func.php displays prod_name and prod_brand as …

Member Avatar for sanbhu2105
0
334
Member Avatar for mahesh113

Hi, Please tell me in the following question why no copy constructor is called when fun returns the A object. While returning b and constructing c, there is no copy constructor called. Why?? #include<iostream> using namespace std; class A { public: A(){cout <<"Default\n";} A(const A&){ cout<<"copy\n"; } A fun(A a) …

Member Avatar for mike_2000_17
0
341
Member Avatar for london-G

Hello, I am trying to send an email notification to a specific email address. I have a MySQL database in which I hold a product table. Product ID, ProductDescription and ProductQuantity. When the Quantity reaches "0" I want to send an automatic email saying that ProductID is out of stock. …

Member Avatar for paulkd
0
1K
Member Avatar for Szabi Zsoldos

Hi guys, I want to create a crawler to extract some infomation from a page. The problem is that it is written with the Java Wicket Framework and I don't know how to scrape informations from it because I don't know how to submit some post parameters. Is this possible …

Member Avatar for Szabi Zsoldos
0
391
Member Avatar for sathish_nadu

I'm trying to set a query that will pull all clients whose birthday is today. I'm using phpmyadmin localhost via Unix socket, birthday is set as DATE. All I need returned is the firstname (emp.emp_firstname asfirst name) , lastname (emp.emp_lastname aslast name) and date of birth (emp_birthday as 'dob')

Member Avatar for pzuurveen
0
145
Member Avatar for khiemkim.xuan

Hi all! I was wondering if there is a way to get location of assemby rather than specifying it directly at Assembly.Load(...), can we use Assembly.Load and inside the parameter, we extract the probing path from app.config? app.config: <configuration> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <probing privatePath="version_control;version2;bin2\subbin;bin3"/> <dependentAssembly> <assemblyIdentity name="myAssembly" publicKeyToken="1524dba369a4decc"/> <bindingRedirect oldVersion="1.0.0.0" …

Member Avatar for Ketsuekiame
0
922
Member Avatar for khiemkim.xuan

Hi all! Can anyone please answer this question? I want to now if it's possible to use the oldversion of .dll file (which it should do) when redirecting to new version. The error I get is down below: Unhandled Exception: System.IO.FileLoadException: Could not load file or assembl y 'Version_One, Version=2.0.0.0, …

Member Avatar for khiemkim.xuan
0
204
Member Avatar for JDoggieIII

Hi, I am attempting to replace the database in an application with MariaDB. This application is written in C# and previously accessed the database (mostly inserts) with LINQ. When I attempt to insert (other transactions have the same type of issue) I get the error message: "You have an error …

Member Avatar for Ketsuekiame
0
1K
Member Avatar for xjshiya

I have an array of checkbox that is populated with data from mysql database through a query. I can submit the value of the checked checkbox into a table from a database. But I want it to be saved according to the sequence the checkbox was checked by the user. …

Member Avatar for meharsaracomp
0
1K
Member Avatar for Dani

Can you guys help me figure out what's wrong with www.daniweb.com/chat (Sorry, you need at least 5 posts to access the page) It looks fine in Chrome, Firefox, and even Internet Explorer. But the right column doesn't show up in Safari. :(

Member Avatar for Dani
0
221
Member Avatar for pooh1234qwerty

#include<stdio.h> int main(){ float f1=14.375; float f2=14.385; if(f1==14.375) printf("Yes1\n"); else printf("No1\n"); if(f2==14.385) printf("Yes2\n"); else printf("No2\n"); return 0; } the output of this prog is Yes1 No2 but i had expected Yes1 Yes2 plz explain me the output...??

Member Avatar for nullptr
0
141
Member Avatar for nitin1

#include<stdio.h> main() { int a=258; int *num=&a; printf("%d %d",*((char *)num),*((char *)num+1)); } does the output depends on little endian or big endian structure of machine on which i am running this ? thanks.

Member Avatar for nitin1
0
148
Member Avatar for taylby

I am working on a facebook application using Javascript, Knockout JS and ofcourse facebook's js SDK. I have created my view model to have several properties on, one of which is the facebook user id. This I will send off to my server in due course so I can tie-in …

Member Avatar for ryanki10
0
326
Member Avatar for ron117

Hi experts, Im Ron and i have just recently started using VB and have written a small application for sending SMSes. Code: Imports System.Net Imports System.IO Public Class Form1 Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) End Sub Private Sub Button1_Click(ByVal sender As Object, ByVal e As …

Member Avatar for ron117
0
288
Member Avatar for Garrett2011

Hello I encountered following info at [this page](http://en.wikipedia.org/wiki/Call_stack#Overlap): For some purposes, the stack frame of a subroutine and that of its caller can be considered to overlap, the overlap consisting of the area where the parameters are passed from the caller to the callee. In some environments, the caller pushes …

Member Avatar for sepp2k
0
325
Member Avatar for abra_ka_dabra

Can somebody explain me the use of "Delegate" and its equivalent in java... I am learning java programming and has encountered a C# program which use "Delegate" and pass on functions as arguments to another function.... I am trying to modify the C# program for use in java...

Member Avatar for sepp2k
0
629
Member Avatar for Echo89

OK, I have an idea of what I might do: I'm planning on making a Event handling system, and this is how I will connect events to functions and be able to send any type of data. This is the basic idea: #include <iostream> template <class T> T *from(void *data) …

Member Avatar for Echo89
0
244
Member Avatar for turpentyne

I'm going back to an old project to apply things I've learned. As a beginner, I was able to figure out how to change the query, based on what was chosen, but it seems like a backwards way to do it, and I'm not sure of a better way. I'm …

Member Avatar for pritaeas
0
173
Member Avatar for arunkishorres

Error 2 error LNK1120: 1 unresolved externals Error 1 error LNK2019: unresolved external symbol "bool __cdecl identical(class cv::Mat,class cv::Mat)" (?identical@@YA_NVMat@cv@@0@Z) referenced in function _main this is the error i am getting...tried a lot but still couldnt corrrect it...referred many sites, a guy had this same error but nobody managed to …

Member Avatar for Moschops
0
352
Member Avatar for GeekPlease

Good day folks, I was trying to do a simple project but somehow I'm stocked with it. What I want to do is to get the index of a column in datagridview when a cell is changed? For example this is a dgv: ID | UserID | Status | 1 …

Member Avatar for Eternal Newbie
0
218
Member Avatar for bhanu1607

Hi All, This is Bhanu Teja M. I have a problem with an object. Actually i have to convert an object into another object. Here in my Category object contains a list of categories (subcategories). The main issues in this code is we have to convert the all subcategories (Category …

Member Avatar for JamesCherrill
0
337
Member Avatar for Violet_82

Chaps, I wonder if you can help me with this problem please. In a nutshell I am trying to remove/add round corners around a container on the fly. The reason is that I have a div with some content that slides down and when the content is visible I want …

Member Avatar for Violet_82
0
270
Member Avatar for modaresi

Here is what I want this program to do: Be able to calculate mean, standard deviation, and median. Data should be sorted using insert sort first though. The program must be able to accept input from an input file and print a report to an output file. These files are …

Member Avatar for modaresi
0
533
Member Avatar for kantigniter

I have a form as follows, and I have set the session on clicking next. Each type of house is with a different set of rooms. Say, if I click Independent, I get a list of rooms below. If I choose Villa/Duplex, a different set will pop out. In the …

Member Avatar for kantigniter
0
156
Member Avatar for maalaakhantaurux
Member Avatar for rushimaadhav

I have a problem during making my project . the problem is I programmed it like if we press 123 a message box pops saying something when I type 456 I programmed it like a msgbox pops up and says something but when I run it the first time I …

Member Avatar for GeekPlease
0
130
Member Avatar for MichaelRyan

Hi folks...get into the wayback machine. :) I have a VB6 program I'm drastically modifying due to vendor API changes. This isn't my natural language, so I have to hack around every time I change things. Problem now is that the program won't end. I know it hits the END …

Member Avatar for GeekPlease
0
388
Member Avatar for Aleksa_1

Hello:) Well this is my source code, but unfortunately it doesn't as it should. It should insert string s2 into s1 beggining from position p. For example if s1="green apple", s2="orange", p=3, output looks like this: greorange en aplle, and it should be in one line. I would appreciate very …

Member Avatar for Ancient Dragon
0
256
Member Avatar for welly.sinclair

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim b As String = "" If TextBox1.Text = "" Or TextBox2.Text = "" Then MsgBox("Data tidak lengkap", MsgBoxStyle.Information, "Login") Else conect = "select * from tbl_id" cmd = New SqlCommand(conect) dr = cmd.ExecuteReader() Try While dr.Read If …

Member Avatar for GeekPlease
0
275
Member Avatar for ogsirus

Hi, I just finished making a program which displays all the files in a directory and lets me open them when selected. What I find is that I get every file found in the directory however not divided by sub-directory, is there a way i can do this showing it …

Member Avatar for ogsirus
0
212
Member Avatar for Tinnin

I know this has been asked on almost every forum but I've been at this for two evenings now and I'm stumped. PHP 5.4.6-1ubuntu1.2 Server version: 5.5.31-0ubuntu0.12.10.1 (Ubuntu) Initially I had no access to mysql functions either but that hurdle has been overcome. I've placed the extension modules (.so files) …

Member Avatar for Tinnin
0
3K
Member Avatar for kilermage

[Click Here](http://www.upload.ee/image/3396246/newerror1.jpg) This is what I get when I run the code. Please help me fix this. EDIT: A lot has changed since 2008 so idk how to upload the image so I just made a link for it.

Member Avatar for kilermage
0
205

The End.