43,549 Solved Topics
Remove Filter ![]() | |
hi, i am reading the book "The c++ standard library -- a tutorial and reference"{N.M.Josuttis} in the beggining of the 6th chapter it says{in regard to container initialization}:: [CODE=c++] std::deque<int> c( (std::istream_iterator<int>(std::cin)), (std::istream_iterator<int>()) );[/CODE]{the weird indentation is on purpose} instead of:: [CODE=c++]std::deque<int> c(std::istream_iterator<int>(std::cin), std::istream_iterator<int>());[/CODE] because [QUOTE="N.M.Josuttis"]In this case, c declares … Software Development c++ | |
hi all, i have the following xml file. <rss version="2.0" xmlns:media="http://tools.search.yahoo.com/mrss/" > <channel> <title>SWF media</title> <link>http://www.blogdigger.com/media/</link> <description>Recent .swf files found by Blogdigger</description> <item> <title>Dollar Bus Rolls Into Town</title> <link>http://feeds.feedburner.com/Chicagoist?m=1115</link> <description>some description</description> <pubDate>Thu, 23 Mar 2006 14:11:57 EST</pubDate> <enclosure url="http://www.kitschn.com/flash/MenuCoverPage-DrinksMenu09-05.swf" type="application/x-shockwave-flash"/> <media:content url="http://www.kitschn.com/flash/MenuCoverPage-DrinksMenu09-05.swf" type="application/x-shockwave-flash"/> </item> <item> <title>E-mail</title> <link>http://billarnold.typepad.com/poet_in_motion/2006/03/email.html</link> <description>description 2/description> <pubDate>Wed, … | |
I'm currently making a program that gives the person who uses it information about the costs for a shipment. The transport company changes it numbers quite often, so in Excel the numbers are easier to change. I want to have, let's say, C3 be displayed every time in VB in … Software Development visual-basic | |
I am in a beginners java class and I have an assignment that is really difficult (for me). the assignment is to prompt the user to enter a person's full name in the order: first middle last. Output will include: the prompt the original name the name in the form … Software Development java | |
Hi I have used three combo box in VB 6 form one for selecting date one for month and one for year. If the selection is say 12/07/2007 then I need it to be converted as 12/07/2007 under one field i.e date field of access database. So how can I … Software Development visual-basic | |
hi all, i have problem creating queries in access.this is because i do not know how to call the value from a variable in vb into the query in access. let say in vb i've created : [code] Public booking_date As Date Public fac_type As Integer . . . . … Software Development visual-basic | |
here's my printing code: [code] Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage Dim printlinestring As String Dim horizontalPrintLocationSingle As Single Dim verticalPrintLocationSingle As Single Dim printfont As New Font("arial", 12) Dim lineheightsingle As Single = printfont.GetHeight horizontalPrintLocationSingle = e.MarginBounds.Left verticalPrintLocationSingle = e.MarginBounds.Top PrintPreviewDialog1.Document = PrintDocument1 … Software Development vb.net | |
I am now taking Java classes and I have worked this program out, but it is giving me a "illegal start of type" on my code and I do not know why please help. Thanks for your help. [code] // Displaying multiple strings import javax.swing.*; // to use JOptionPane.show InputDialog … Software Development java java-swing | |
I just started learning about stl.... the problem is that 3 cases that i consider "equivelant", don't do the same thing...so the question is, why they are not equivalent? here are the statements: [CODE]cout<<(char)toupper(*pos)<<" "; //this works![/CODE][CODE]cout<<toupper(*pos)<<" "; //without cast it doesn't work, why?[/CODE][CODE]*pos=toupper(*pos); //and this also doesn't work cout<<*pos<<" … Software Development c++ | |
I began to learn about Python perhaps an hour or two ago. In a Python tutorial, I came across the below text (between lines of equal signs) regarding default function arguments. This makes no sense to me at all. What is the scope and lifetime of L? It appears that … Software Development python | |
Hello, I am a newbie in Python and maybe this is a stupid question, but when I run this code I receive a very strange output. [code] status = 0 for i in range(10): status = status + 0.1 if status == 0.1: print status elif status == 0.2: print … Software Development python | |
uhmmm.. we have this project, we were told to make an [B]output[/B].. [B]"A multiplication table" [/B]I know that you guys don't don't give help if we don't give it a try. It's just that I don't know how to make one or even to start it. Can I just ask … Software Development java | |
If there is a file created and stored in a class: [code] void setLogFile(File LogFile){ this.LogFile=LogFile; } File getLogFile(){ return LogFile; } [/code] and the FormattedWriter is created in another class and it's constructor calls super. Why won't this work? [code] FormattedWriter out = new FormattedWriter(new FileWriter(getLogFile(),true)); [/code] Software Development java | |
Hi, Im having a problem here. I have 3 classes/frames. After arriving at the 3rd frame, i want to get values entered in the 1st first frame. All the variables in the 1st class are declared as Private. In order for me to get this value from other class, i … Software Development java | |
I was a little confused by the brief explanation that my Assembly teacher gave on pipelining. I don't think I really understand the process that well... 1) In a 4-stage non-pipelined processor, how many clock cycles does it take to execute 3 instructions? Assume each stage takes 1 clock cycle. … Software Development assembly | |
Hey everyone. Noob poster here so bear with me. So the code below makes a drawing of a face move around the graphics window. However, the face is noseless. My dilema is that I absolutely can't figure out how to add a nose to the face and have it move … Software Development python | |
Dynamic GUI Hello people... really I dont know if this is the correct name (Dynamic GUI) but I wanna ask u how to build dynamic JButtons .. 4 example : the number of the buttons in a frame not static ... (user enter it) at the begging and the buttons … | |
Can someone tell me what i'm doing wrong: [code]#include "stdafx.h" #include <iostream> #include <iomanip> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { const int MAXGRADES = 5; int i, grade[MAXGRADES]= {0}, count = 0; double Avg, sum = 0; for (i=0; i < MAXGRADES; i++, count++) { cout << … Software Development c++ | |
Having some trouble with my number guessing game. The object is that the user thinks of a number between 1 and 100 and the computer tries to guess it in a set number of tries. The user inputs an "l" or an "h" if the guess is too low or … Software Development c++ | |
i dont understand what the function "flush" does please answer and one more, is there a way that we output a set of data only after a certain while in program execution without storing it in a file and again printing it after reading from that file eg.... i declared … Software Development c++ | |
i need help with this assignment i have this class and i need to implement the functions and the main i've implemented it but i want to check if its right and i have a problem in writing the main [code]#ifndef #define class GBook { public: GBook(); void inputGrades(); void … Software Development c++ | |
I have downloaded the source code for the .AVI format but when I compile the project, an error is reported which when simplified, is "[Build Error] *** multiple target patterns.". Also, the line which gets highlighted by due to the error is the line 25 which has the phrase "$(BIN): … Software Development c++ | |
I'm a new user to Visual Studio .Net, writing most of my projects in C++. I have this problem with the OO paradigm when I tried to apply it to my projects. Variables for classes which I described in eg. dXmanager.h fails to appear in my dXmanager.cpp; when I try … Software Development asp.net c++ visual-studio | |
Hi, I'm a beginner, so please forgive my inadequate knowledge. I'm am trying to write a program that searches one file for specific words and their replacements found in another file. As of yet, all I have is a program that opens my files and counts the words in them. … Software Development c++ | |
I have a Dialog window with a [INLINECODE]Button ko[/INLINECODE] and a [INLINECODE]JLabel l[/INLINECODE]. The button`s label refreshes at 1000ms from 5 to 1. There are 2 problems: the [INLINECODE]JLabel l[/INLINECODE] it`s not displayed before the counter starts, it`s displayed after that, and the button doesn`t work during the countdown, if … Software Development java | |
Hi, I'm having problem reading a sequential file, I have done some searches all without any positive result. I trying to read a sequential file, but the problem is that the last record is read doubly. Any help would be appreciate. [CODE]#include <iostream> #include <fstream> #include <string> #include <iomanip> using … | |
hello every1, really i need help on how i can make a login form that works and is connected to my database using ADO my frmlogin is composed of 2 textbox (txtuser,txtpass) and 2 command buttons (cmdlogin,cmdcancel) and my database name is (MAINDB2) inside MAINDB2 is (tblReg) fields inside tblReg … Software Development visual-basic | |
Hi, how do I use the EOF function with an Excel spreadsheet? I'm thinking that the EOF needs a file number. But in my code below, I don't have a file number. What do I need to do? Any links, code, info available? Thanks.[code]Dim app As excel.Application Dim book As … Software Development visual-basic | |
I've tried so hard to do it but I couldn't so I really need help since I have to send it to my professor tonight so please HELP [code=cpp] class String{ char * const cp; // pointer to the first element int Alng; // the N# of the elements in … Software Development c++ | |
Actually my requirement is some thing like this... I'm writing a parser which has standard xml format which will be written in a file like this "<TESTDATA><FACTORY NAME=""SAKTHI"" TESTER=""" & Getcontent(97, ":", 1) & """ /></TESTDATA>" and this parser has to watch a folder constantly and then once file is … Software Development visual-basic xml | |
i have a project on password authentication, and i have simulated and already implemented two very secure algorithms but i also need any body who could assist me with developing a password authentication technique that would not need any database for storing the database and it will not need any … Software Development java | |
Hey, I have no idea why this code isnt working, im new to C++ so maybe im missing some fundamentals or something. But to me it looks perfectly fine.. the purpose of this program is to change binary into user code... if someone could help me out it would be … Software Development c++ | |
So I have a program with a specification file, implementation file, and a client file, I'll post all three but I know the problem rests in the client file. What's happening is that it reads the first team from my data file which I'll also post, and then it doesn't … Software Development c++ file-system | |
The assignment is : Write a C++ program that calculates the volume of 3 different geometric shapes. Your program should give the user a menu like the following and repeat until the user wants to stop. Volume Calculation Program Select the Number of Your Chosen Object 1. Dumbbell 2. Axle … | |
Hi, could any one help to debug this code plz thanks in advance #!/usr/local/bin/perl # load_bulkups.pl - create bulkup orders from a csv file # the input file should be in the comma seperated, in the # following format: # site,vendor,sku(Stock Keeping Unit),forecast,qoh(Quantity on Hand),qoo(Quantiy on Order),buying_multiple,outl,demand,order # if an … | |
whats up everybody? havent been on daniweb in a while. self-motivation like whut....until now. anyways ive got this script that makes an html form with 19 or so fields. its supposed to put the form info into a file (mediaRequest_log.txt). it gets this information by way of [code=perl] # get … Software Development file-system perl | |
I'm making a code that will add the squares of a range, ie input number is 4,the squares of 1+ square of 2+square of 3+square of 4 (1+4+9+16)= 30. In my code I'm using the caret symbol for the square but it just multiply the number by 2 and not … Software Development c++ | |
hi all, I am working in a windows application. i have a text say for eg, <img src="http://static.ibnlive.com/pix/sitepix/06_2007/kumaraswamy_cm90.jpg" alt="BACKTRACKING? Kumaraswamy says he never said he would step down on October 3." title="BACKTRACKING? Kumaraswamy says he never said he would step down on October 3" border="0" width="90" height="62" align="left" hspace="5&"/> Kumaraswamy … Software Development regex | |
Hi, Im trying to implement a LCD screen as part of a engineering design project. The screen is to be connected to a M16C/62 microcontroller. In order to compile the software I am using the NC30WA V5.20 Release 1 compiler, as it is the compiler which comes with the development … Software Development c engineering | |
Hi, I am new here.. I faced a problem when I tried to call two difference software function.. I name this two software as App A and App B.. I had create App B's pointer at App A, name as BPointerAtA.. I try to new the pointer at App A … Software Development c++ | |
Good day all, I've been working on this code for a for a while now and I can't seem to find what's wrong. I am supposed input two numbers and return if this is a twin prime number by just outputting true or false. My program compiles and runs but … Software Development c++ | |
hello all,i hope you all can help for this,i want showing image by clicking button,i have 5 button with parents panel 1 and i want show image to panel 2,my plan the image can be drag or rezise and image show all the time user want,i have idea for drag … | |
Hello People! I'm trying to design a text editor using wxpython. I wish to add some basic formatting functionality (like BOLD, ITALICS, UNDERLINE) to it. Is there any way to achieve this in wx.TextCtrl ? Or do I have to use stc.StyledTextCtrl (which I don't really wish right now)? Thank … Software Development python | |
I am a student taking a java class online. its kinda hard because I don't have anyone to talk to directly. I do not want someone to do this for me i just want a simple yes or no answer. I have created a program for my second assignment. The … Software Development java java-netbeans | |
I am trying to call an external class with the following line class "classname" implements "another classname" { ..I however keep getting an "Interface expected here" error at compilation. What am doing wrong, please? Software Development java | |
I try to set a variable in another class. It does not. It goes to that class and the variable is always 0and the program stops. I know its something basic that I should know but I need it to set the variable and continue in the calling class. Any … Software Development java | |
Does anyone have time to look over a 3 class program? I get a NULL POINTER ERROR. What is the best way to debug a variable that produces this error? Thanks Software Development java | |
I'm trying to solve a problem that my friend gave me and i'm really stuck at it, I'm solving this now for about 1 whole day and my PC's about to melt. Im trying to figure out how to add numbers in a range i.e I input the number 6 … Software Development c++ | |
Hey guys :), Thanks for any help ahead of time. I'm writing a program that would take the input scores of seven judges and throw out the highest and the lowest. [code]#include<iostream> using namespace std; int main() { float a=0, b=0, c=0, d=0, e=0, f=0, g=0, score=0, difficulty=0; cout << … Software Development c++ |
The End.