199,114 Archived Topics
Remove Filter ![]() | |
This is the assignment-Write a C#.NET (call it Lab7) that performs the following: The program contains an array that holds 10 ZIP codes to which a company delivers. Prompt the user of the program to input a ZIP code and then display a message on screen that indicates whether the … | |
#include<fstream.h> #include<iostream.h> #include<conio.h> #include<dos.h> #include<stdio.h> class ALARM { public : struct time t; int m,h,a,b; void resetalarm() { ofstream x("D:\\hour.txt"),y("D:\\minute.txt"); a=0,b=0; x<<a;y<<b; x.close();y.close(); } void setalarm() { ofstream x("D:\\hour.txt"),y("D:\\minute.txt"); cout<<"\n\n\t\t\t\tEnter hour\n"; cin>>a; cout<<"\n\n\t\t\t\tEnter minute\n"; cin>>b; x<<a;y<<b; x.close();y.close(); } void alarmmatch() { ifstream i("D:\\hour.txt"),j("D:\\minute.txt"); i>>a; j>>b; i.close();j.close(); gettime(&t); m=t.ti_min,h=t.ti_hour; if(h==a&&m==b) {cout<<"\n\n\t\t\t\tTime … | |
If I do something like: [CODE] Label _label = label1; _label.Text = "123"; [/CODE] Would label1 read "123"? Does this work for int and string? If not, how would I achieve this? | |
hellow every body i m trying to do a graphique interface using c++ but i cant know which .dll i have to use such im using visual studio c++ 2010 express edition . when i thank to use QT with vs2010 there is a lot of problemes caus i don't … | |
Hi all, I have a more philosophical question which I think might help me to better understand the interest of pointers in C++. Indeed, my background is mainly Perl and a bit of Java. I am currently implementing (as an exercise and because I work in this field) a class … | |
Hi, Can someone help me with a javascript function that identifies <onmouseout> what radio button has been selected so that a message prints in a <div> further down the same page prior to submitting the page. e.g. If Radio Button value="train" is selected Print "You have chosen the image Train: … | |
Hmm... can we use the continue statement in [COLOR="red"]if-else statement[/COLOR]? as i know the continue statement only can use [B][COLOR="Red"]under for loop[/COLOR][/B] right? and also is there any idea how to write [B][COLOR="Green"]pseudocode[/COLOR][/B] of for loop ? give some sample examples. thanks alot. :) | |
I want to learn C# .net because .net is so popular now. and I would like to work on an interesting topic which interests me, because the tutorial is so boring........ personally I am interested to web spider/crawling using python, and the project got to be in console ( not … | |
Now before we start, please don't send me off on XML Serialization, I want binary for a reason. :) In the following code (and I don't even know if its correct ... it does compile), I'm trying to serialize and write a list of my class to a file and … | |
I am trying to remove all listbox items that contain all spaces(11).I am stuck. This code doesnt remove the items [code] for (int i = 0; i < tree.Items.Count; i++) { if (tree.Items[i].ToString().Contains(" ")) { tree.Items.RemoveAt(i); } } [/code] | |
Hello Daniweb'ers, I was wondering if you could help me. I'm developing a YouTube downloader and want to be able to convert a YouTube link into a title. Such as this: textbox1.Text = " [url]http://www.youtube.com/watch?v=Bj7_W1FuO70&feature=related[/url] " label1.Text = " Fire Like This Hardknox Me Myself And Irene " In other … | |
So basically, as soon as my page loads I need to have a pre-loaded date to my drop-down boxes and in my textfields that came from my database as you will see if you go over my code. My drop-down boxes are auto-filled with the months-days-years because of my javascript. … | |
Note: NotePad.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.[code][/code] | |
I am trying to write a named semaphore, can anyone point me in the right direction. I have tried googling it. I come from a java background so i understand the theory. Is a named semaphore created in the same way an semaphore is ? | |
Can somebody help me i want to send a mail for forget password n iwant to send a link of my reset password page in it please help me Thanks in advance | |
hello friends... I'm new to jquery and as well as to daniweb :P I'm learning jquery from 3 days using online tutorials... I am given a task by my guide... For which i want to know why is it that the jquery carousel on the page [B][url]http://web.enavu.com/demos/3dcarouselwip/[/url][/B] works in firefox … | |
hello to all, by the way i'am new in visual basic. could any teach me how i should start my project. my project is that. its talk about accounting the proopsheet and the ledger. now this is the problem when a person created a proopsheet in excel, there is three … | |
Hello everybody, I have developed my software using NetBeans IDE 6.9: very simple, a db on a remote server, a JDBC:ODBC bridge connection in order to access it and everything was working fine, until I was ready to deploy it, and I fell in this problem of 32-64 bits conflict. … | |
hi! everyone. please help i need to add a date picker to an asp page and i have been looking over the internet and i cant find anything to help me.it may be a drop down or may be like (check this page [url]http://www.asp.net/AJAX/AjaxControlToolkit/Samples/Calendar/Calendar.aspx[/url]) .it would be real nice if … | |
Hello, I made a form into Visual Studio (Window forms) and i used a webbrowser from toolbox. I want to open into the webbrowser a web page from local drive. In properties, into the URL box if I write the absolute path (ex. c:\xy.htm) it works, but how i can … | |
Can anyone tell me the upload script using mysql and php. Also can we insert images in mysql database? | |
I'm using the streamreader to read in a text file and using the function EndOfStream to detect the end of the text file. The problem i facing is that i'm getting this weird error message -- > [B]System Error &H80131c25&[/B] Does anyone know what this means and how to solve … | |
I have a number of text files each with 4 pieces of data on each line: name, date, time and comment. I have used $fh to open and read the data and put them in 1 long variable called $AllComments. I then need to sort them by date and time … | |
is there any layout manager or some other way to add a label or any other component starting from a specific point like we draw rectangles i need this because i want to move the label around with input. | |
Hi All, I have written a JSP file which will run query, get the result in a csv file and send the csv file daily to an email address. But how can I execute this JSP file daily in Linux? Can anyone help in this? | |
Let's say a user submitted some information through a form into a MySQL database. The data was timestamped. The user is given a certain number of days to submit an additional chunk of data into the database. If he doesn't submit it by the required date, an email has to … | |
Hi everyone, I am quite new to C++ (coming from perl). As an exercise, I am currently trying to create a class to play with graphs. I have a class Node in which I overload the == operator (to test the equality between two nodes). At the moment, I consider … | |
I need help with a program. It’s suppose to keep track of motel reservations. A guest’s name is entered and then assigned to a room. The motel has three floors and 40 rooms (numbered 1 to 40). The program is suppose to reserve a room, cancel a reservation, and display … | |
How to get .swf file's Height and Width in C# or VB.net Program.Because I want to Load dynamicly a .swf file in my program with Flash File current size. | |
I have 3 separate questions. I'm trying to develop a program that displays several vocabulary lists and has a row of buttons at the top for selecting the lists. These buttons don't appear until I re-size the window. Does anyone know why this occurs? Second, I've extended the JPanel class … | |
I am using VB to query a MySQl database and populate an Excel spreadsheet. All is working well, but now I would like to start distributing the spreadsheet shroughout the company and cannot protect it. If I protect the spreadsheet the VB cannot add the MySQL data, so I added … | |
How would I make a 3,4,5 triangle print out in a GUI. I was using the drawline function, but I can't figure out how to make it so its between two coordinate points. I have some code like this to draw a line [code] // draw line coloredPen->Color = Color::Red; … | |
How would you split an existing string where a chararacter occurs into an array of strings, and store that character in a char? For example, inputting 123a5 would return {123,5} in an array and 'a' in a char. I've confused myself with this. I will greatly appreciate any help. | |
Hi all, My site is on dedicated server by fasthosts.co.uk. i get email from host server that my site has been placed on the Spamhaus SBL. below is the content for that: [CODE] >> Web bot: port 80 >> IP address 217.174.241.205: on fasthosts.co.uk/live-servers.net >> Canadian Pharmacy spammer[s] are using … | |
We've to build one mini project on Vending Machine.. Our Guide have given us following topics to be covered in mini project - [LIST] [*]Normal Vending machine program working on Deposited balance - Can do it [*]Login and Password for 5 members to store their individual spares separately [*]Permanent storage … | |
I am new to c# with that in mind can some one please tell me how to call a class file that i have created in to a windows form file.for example how do i call a function that handles error logs to call and run on a form file. … ![]() | |
im juz learn C++ from C++ how to program , but i not really understanding in this section ,can someone explain and describe?..thx... | |
I'm trying to make some sort of database for cards for a cardgame similar to Final Fantasy VIII Triple Triad Card Game where each card has its name and scores on the top, bottom, left, and right sides of the card. I'm using arrays of structures. i can't compile it … | |
Hi, I don't know if this is the right place to post this question but here is my problem, I would like to take an audio wave file and convert it to a data file, (.csv, .txt etc). I would like to do some signal analysis on the file but … | |
Say I wanted to open test.html in Firefox on the click of a button. How would i do that assuming Firefox is not my default browser? ![]() | |
Hi everybody. I would like to know if its possible do dynamically manipulate the scrolling of a webpage in a WebBrowser control in my Form. Either by a page loaded event or some other event. Also if that is possible, can it be done without the control having scrollbars. I … | |
Hey all, I am currently trying (desperately trying if I might add) learning how to use GLUT for school. Our professor gave us an assignment to make a 2d tube of some sort, but I only managed to make a circle. The tube will be only displayed on its front … | |
Hi, I have a doubt regarding inheritance of base class constructor by inherited class. I was recently going through some C++ online tutorial when I came across this piece of code: [CODE=c]#include <iostream> class Foo { public: Foo() { std::cout << "Foo's constructor" << std::endl; } }; class Bar : … | |
Hello everyone.. When working with Visual Studio 2010, the "MessageBox" function displays chinese characters, instead of english ones. Example: I attempted to prompt a message to myself using the messagebox function, saying "Success!" However, the message box pops up a message in chinese, and not in english. I am able … | |
[ATTACH=RIGHT]16431[/ATTACH]Blitz Arcade, the downloadable division of Blitz Games Studios found themselves a World Record holder today, despite having accomplished this feat last year. With the creation of[I] Invincible Tiger: The Legend of Han Toa[/I] in 2009, Blitz now holds the Guiness World Record for the very first stereoscopic 3D console … | |
I have problem with my mini blog since 2 days until now [URL="http://blog.soccerass.com/"]http://blog.soccerass.com/[/URL] Here the latest error log --> [B][Tue Aug 03 03:51:43 2010] [crit] [client 87.250.254.243] (13)Permission denied: /home/socc*****/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable [/B] I have 2 domains called soccerpropick.com and soccerass.com both … | |
I am confused. Here is the source: [url]http://www.learncpp.com/cpp-tutorial/28-constants/[/url] [QUOTE] Literal constants Literal constants are literal numbers inserted into the code. They are constants because you can’t change their values.[/QUOTE] Why can't we change literal constant? I mean if we want to initialize something, let say [CODE]int x = 14;[/CODE] And … | |
Hello, I just finished my "Who wants to be a millionaire Game", (very basic coding), but I got some issues when I click somewhere out of the Boxes range(try it), and I'd like to add some sort of points to each question, and as they go further make the question … | |
Hi friends, Plz anybody can tell me, How to retrieve only date from DateTime in vb.net in dd/MM/yyyy format and I have a field in table in access 2007 which has date/time datatype. Data is stored in datetime format.(04/08/2010 12:01:07 AM) I want to retrive only dates which are in … |
The End.