199,114 Archived Topics
Remove Filter ![]() | |
Hi, I was curious if I could return a vector from a virtual function. I keep getting an error for this. [CODE] Class A { public: virtual vector<int> getSomeStuff(); private: } .cpp File vector<int> A::getsomeStuff() { return; } [/CODE] Can anyone tell me what I am doing wrong? ![]() | |
I have found out that goto is bad in C++? Why? I just got a book the other day (for my birthday :)) and it says it is fine to use. Also the book doesn't use brackets ({}) these things around else (statement?), I can see why that is a … | |
Hi. I am new to the site and not too clever at Pascal (beginner). I need to be able to get an IP address, then compare it with one I want to use then if the address is the same run a program if not quit. This is to get … | |
Ok so I created an instance of the mysqli class: [code=php]$siteconn = new mysqli($dbhost, $dbuser, $dbpass, $dbname);[/code] But when I try to run a query using this I get the error that's in the title... code as follows: [code=php]$result = $siteconn->query("SELECT * FROM categories ORDER BY id LIMIT $limit");[/code] Any … | |
I am having trouble removing the errors listed below please help [code=cplusplus] #include <iostream> #include <fstream> #include <cmath> using namespace std; class rational { public: rational(int num, int den); rational(int num); rational(); int getnum(); int getden(); void input(istream& in); void print(ostream& out); bool less(rational r); rational Add(rational r); private: int … ![]() | |
Hey Guys, I want to make a web development project based on php and mySQL. I have roughly around 3-4 weeks to make it. Please suggest some ideas. Thanks. | |
Hi, I have an application which is about harvesting the data from html pages, contains an interface. I had implemented it for (like customization of it) some html page to harvest. But jvm hitting me with - [ICODE] Exception in thread "main" java.lang.ExceptionInInitializerError Caused by: java.lang.RuntimeException: Uncompilable source code - … | |
Hi everyone, I am working on a project where i have encounter such problems: Data samples: LA-1-2, LA-1-2-33, LA-1-22-333-4444, LA-2-3, LA-12-34, LA-123-45-67 .. with upto 8 dashes Objective: I need to find the values behind each dashes into multiple columns in orders. [e.g LA-1-2-33 will have columnA = 1,columnB = … | |
hello; can we say this when defining an enumeration : enum letter{A=4,B=3,C,D,E}; i mean give letter B value smaller than the value of the letter A , is it possible ? and what is the real benifet of the enumeartion in general ? sometimes when making "cout" statement , the … | |
hi all.. ive got a C++ assignment to do. this is what it says: Write a program in C++ that takes input from a text file specified by the user and outputs the following to the screen: • Number of single letter words. • The average word length for the … | |
Hi, I built a form to send customer info and used some ASP I found on the internet so I'm quite new to it. I got it to send the info I want but I recieve an e-mail every time I navigate away from the page not using the submit … | |
Hi Everyone! I have a wired problem with print preview in Delphi. When I am invoking a PreviewModal procedure on QuickReport object Preview page appears. But sometimes [B]printer setup[/B] and [B]Print[/B] icons are inactive. Colud someone explain me this situation? Best regards | |
hi! I m using netbeans 6.5.1 i am trying to read a text file from a jsp using the code [code] BufferedReader input = new BufferedReader(new FileReader("contactus.txt")); [/code] this file "contactus.txt" is placed in the same folder (ie web folder) as the jsp file. but the browser is giving the … | |
Hello, I have an SQL server 2005 database/table with a name and email columns. I was wondering what would be the best way to get the data from sql and send automatic emails using a web based form in asp.net lets say every month...is there any samples of such procedure … | |
[code] #include<iostream.h> #include<conio.h> class suitcase { int sno[20]; long double amount[20]; public: suitcase(); void print() { int i; for(i=0;i<=19;i++) cout<<amount[i]<<'\n'; } }; suitcase::suitcase() { amount[20]={0.25,1.0,10.0,100.0,250.0,500.0,1000.0,5000.0,10000.0,50000.0, 100000.0,200000.0,300000.0,400000.0,500000.0,1000000.0, 2500000.0,5000000.0,7500000.0,10000000.0}; } void main() { suitcase s1; s1.print(); } [/code] When I run this program, I get an error :- [quote]expression syntax in function … | |
hi, I am struggling with the code on attached file. Don;t know what the problem is. Please help me if possible: | |
EDIT: I just realized I should have posted this in the MySQL section. If a mod can move it there I'd appreciate it. Thanks :) Hi all I have two tables. The first one has the details of each fruit, its code, markup percentage, it's cost price and the amount … | |
hi i m gonna do a project on inventory management ...i dont to how to start up...pls help me | |
Hi all, I want to read the data from the browser what i opened in my browser using java.if can any one knows pls help me.... Thanks all in advanced.... Regards, sreeram | |
Hello friends, my problem goes here, i have two aspx pages, lets say A.aspx and B.aspx. B.aspx contains information comming from database. when user clicks btnShow on A.aspx B.aspx is displayed with all the information from database on run time. i want to display B.aspx as pdf formate in browser. … | |
The configuration in our setup is one Web Server and one database server running SQL Server. With the current connection string it works. Recently we moved the database server to another machine with a different ip but with the same name. We used the name and not the ip in … | |
Hi All, I am creating an application where in I want to display the rows in DataGridView based on the values entered by the user in the textbox. For Eg. If the User enters the BookName in the textbox all the details regarding that book should be displayed in a … | |
i want to make a button wich will give me link of that folder from Windows tree, wich i chose............. Sorry for my English:)) | |
I don't use combo boxes very much, so I basically forgot how to use them. Im connecting to an SQL database and I just want to populate a combo box with a users first name. Heres what I have so far: DBATimeOff.SelectCommand.CommandText = "SELECT FName FROM tblEmployee" DBATimeOff.Fill(DataTimeOff) CmbEmployee.DisplayMember = … | |
hey guyz howz u ???? cn u tell me how cn i color my console based output( in C# ) not a whole output but a selected string only. plz tell me if u knw d answer .......:) Bye TC | |
hi everyone.. anybody can give me feistel chipher source code? i,m in urgent plizz.. | |
Hi I am having trouble reading a file inside constructor from a method. Here is my code:- I can compile my code but I am getting runtime errors. Error [CODE]Exception in thread "main" java.lang.NullPointerException at java.io.FileInputStream.<init>(FileInputStream.java:133) at java.io.FileInputStream.<init>(FileInputStream.java:96) at java.io.FileReader.<init>(FileReader.java:58) at Testwow.readFile(Testwow.java:25) at Testwow.<init>(Testwow.java:13) at Testwow.main(Testwow.java:45) [/CODE] fh = new … | |
Hi, I need help on this asap please.. I need a program to build a console application to sort a list of names entered in an array in alphabetical order WITHOUT using array.Sort() Method.... please this is not an assaignment ,i have tried a lot but couldnot figure out plzz … | |
Working on a project and stumbled here for help. I am at about 90% of what I need but I am having one small problem. With the exception of one of my "if" sections, my "else" output is triggered and diplayed when I don't want it to be. Just asking … | |
I need to read numbers from a user and then copy them to an array. This shouldn't be that hard but I think I'm making it hard by trying to use [I]getline[/I] and then parsing the numbers. Heck I don't even know how to do that. Is there an easy … | |
Hi guys, I has a question to ask it is possible to call out the same ID on two different table. Example i have same ID like said 123 on table 1 & table 2 it is possible to call then out and show out on the data grid when … | |
I have a potentially very large csv file that I need to read in and display, but only a few records at a time. I want to be abe to page thru the file using offset and records variables. What I have is the following, but it really doesnt work … | |
On my Drupal site I have a block which I've set up with a couple of links at the top. I want to change the content of the block depending on which link is clicked. I'm pretty sure you can do this as I've seen sites with this functionality, but … | |
Hi All, This is the parent issue that led to the post [B]Need help with getDOCTYPE() function[/B] ([url]http://www.daniweb.com/forums/thread196837.html[/url]) [B]USING THE BODY METHOD:[/B] The following code will properly get the viewable window area if no DOCTYPE is specified. [icode]document.getElementsByTagName("body")[0].clientWidth//Height[/icode] [B]OR[/B] [icode]document.body.clientWidth//Height[/icode] If DOCTYPE is XHTML ANY* the above code reports only … | |
Hey there! About a week ago, I started working with C++, just as a hobby. I started working on a Square Root Calculator, just to use it as a reference for my future C++ projects. :) However, when some of my friends were wondering that I could implement 'Pi' within … | |
Hello. I have come across many scripts for rebooting remote computers using python, but what about the computer the script is running on? If possible, I would also like my script to run in the background so the little cmd box is not visible. Thanks in advance for your help. | |
Hi all, I am not sure where to start with this one really. I have built the template for my site but, having a few issues in trying to impliment certain things that have to happen. This site needs to have 3 types of user. I am using a generalization … | |
I'm trying to make a simple prime number generator for bigger program. It needs two numbers (n and c) and needs to edit them. So I decided to put the numbers in pointers, and just give the adress two the pointers. After about a half-houre of fumbling with *'s and … | |
Hello, My problem is : I have a .aspx page where I use a ScriptManager and a UpdatePanel. In the update panel I generate controls based on user interactions. My problem is this : when I add dynamically the CustomControl (.ascx page ) in the UpdatePanel ( the CustomControl has … | |
Hello I am not an experienced programmer, and I entered some code from a book I am following, to see if it would work but unfortunately I have run into some difficulty. This program prompts the user for the red, green, and blue values, and then fills a rectangle with … | |
hi, there .i am coming up with a login page authentication, however i am getting this error that says[B] 'Type SQl.Data.SqlClient.SqlDataReadercon1 is not defined '[/B] [code] [B]Dim reader As System.Data.SqlClient.SqlDataReadercon1 [/B] <%@ Page Language="VB" MasterPageFile="~/CouierMasterPage.master" Title="Untitled Page" %> <%@ Import Namespace="System.Data.OleDB" %> <%@ Import Namespace="System.ComponentModel" %> <%@ import namespace="system.web.security" %> … | |
Hey all, Here is what I'm trying to do. I have a list whose output is: [['4/18/94', '29.125', '442.46'], ['4/19/94', '29.336', '442.54'], ['1/20/04', '75.175', '1138.77'], ['1/21/04', '75.711', '1147.62'], ['1/22/04', '75.595', '1143.94']] Item [1] in each list, the middle item, is the number I want to focus on. Currently, I have … | |
I have a master page with a treeview and I want to pass the onlick node value to a select statement that exists in the content page(in an sqldatasource control). How can I do that? | |
Hello everybody, how do I rank mysql search results by column weighting? thanks for your input. | |
what is mean by replication..can anyone explain me with example ..couldnot get clear idea in google?plz | |
Good Day, I am using an Ms Access Database to design a StockTracker applicaton. The application is used to check the stocks of users. Firstly I need to sign on as an administrator and then be able to add users and their stocks to the database. I have created the … | |
Hey guys, I am intrested in making a web application. I wanted to ask whether ASP.NET is sufficient or should i learn any other language in .NET like C#?? Will ASP.NET be sufficient in making a web application??? | |
Hey guys.. I have been trying to debug this mysql statement for the past 2 hours.. here is the statement: [CODE] $sql1 = "SELECT * FROM cpmip WHERE adid='$a' and ip='$ip'"; $res1 = mysql_query($sql1) or die(mysql_error()); [/CODE] I just can't figure out why this won't work.. it throws the following … | |
Hey guys, I have been trying to search for this answer on online tutorials, but cannot figure out just what I am doing wrong. I have a list of names, and some of them have the character '/' For example: [CODE]list = [adam, bill, jon/juan][/CODE] Because later in my code, … | |
Hi, We are into Reports development using C# and PDF Library (for front end). The development is done in Visual studio 2005/2.0 framework. Now since the production has 1.1 framework, I was asked to "downgrade" to VS 2003. The problem is we have Tuple/generics in 2.0. After I recreated the … |
The End.