199,114 Archived Topics
Remove Filter ![]() | |
Similarly, you can add more fields to an enum and simply provide accessor methods to retrieve them. For example you could change it to have an extra field indicating an output directory to write specific types of data to, and a getter method to return that directory. | |
i was tasked with writing a program that prints the question ”Do you want to continue?” and reads a user input. If the user input is ”Y”, ”Yes”, ”OK”, ”Sure”, or ”Why not?”, print out ”OK”. If the user input is ”N” or ”No”, then print out ”Terminating”. Otherwise, print … | |
Hi guys I am currently making a simple calculator for children in turbo c++ and I do not know how to make the help screen. I want the child to be able to press the letter h which will take them to the help screen. Can anyone help me? | |
Hello guys, I'm completely losing it. The question asks to emplement an electronic directory traverse in size a chosen folder (using JFileChooser)and print the structure with the calculated the size of each folder and file. Finding the file size is easy using File.io `getSize()`. However, to find the size of … | |
Which of the following statements are correct about static functions? 1.Static functions can access only static data. 2.Static functions cannot call instance functions. 3.It is necessary to initialize static data. 4.Instance functions can call static functions and access static data. 5.this reference is passed to static functions. A. 1, 2, … | |
hi every one i want to write a program in visual basic 2010 to read any file and convert it's binary data into an array i search it internet and find this website http://www.daniweb.com/software-development/vbnet/threads/320160/visual-basic-reading-text-file-into-array i compile the code and make some change and its work fine i tried to read … | |
#### Function secondLoop has the same components with the additional lines # number = len(sentence) while number != 0 #While flag==True letter = input("Enter letter: ") # letter is asked in function again if letter not in enteredLetters: find = sentence.find(letter) if find == -1: print("Letter is not in word") … | |
| |
Hey guys! I'm making a program requires a listbox with numbers from 0.02-7. That's a lot of numbers to add one at a time. I tried to figure out a different way other than rateListBox.Items.Add("") but I can't really figure it out. Does anyone know now to do that? | |
Hi Folks, I need help with my code. Basically I am building an inventory progress web so that it pulls the value from the dropbox, and with onChange, getting the corresponding value from the DB, Update the value and reinsert the new value to the DB using submit button. One … | |
http://acm.epoka.edu.al:8080/en/problem-pid-c45b?ps=1&smt=a&smpwid=0 .. the exercise is found in this link pls | |
I am developing a client server application in C#. I am sending from my server to client an object of `Student` type which I serialize on the server side and deserialize on client side. The serialization and deserialization are as follows : // server side serialization. Student s1 = new … | |
Is it possible to trigger the action of a form with a submit button that's outside the form tags? If so, how should this example be rescripted to make the input tag work outside the form tags? <html> <body> <form name="input" action="html_form_action.asp" method="get"> First name: <input type="text" name="FirstName" value="Mickey" /><br … | |
It's been awhile since I've needed help, but I can't for the life of me figure out why subtraction isn't doing what it should be I'm clearly missing something or some change to how C++ interprets subtraction, if you could point me in the right direction that would be awesome … | |
Hi! I have this code, classes with matrices, overloading operator etc (this is just one part, I reduced it from original). #include<iostream> using namespace std; class matrix { protected: float* M; size_t m,n; public: matrix(){} matrix(size_t m,size_t n); matrix(const matrix& A); ~matrix(); matrix& operator=(const matrix& A); matrix operator+(const matrix& A) … | |
I want to declare an array of type (char / string) confused! dunno which one.. which will store 5 names this code couldnt work char names[5]={monitor,cpu,mouse,joystick,system}; someone guide me please | |
i wrote a program that have four classes .one of these classes is Date : class Date { public Date(int year,int month,int day) } in other classes there are some method that one of they're input is Date for example public void f(Account account ,Date date) i want to write … | |
So I have a single drop down menu populated from data base, now i want to get a bit snazzy and select from the first and from the selected then populate the 2nd drop down to select and then link to a url. Here is my code for first drop … ![]() | |
hey with this code that ive written, im not sure why its not outputting a value for the BMI.. can anyone help?? thanks def application(environ, start_response): headers = [('content-type', 'text/html')] start_response('200 OK', headers) formdata = cgi.FieldStorage(environ=environ, fp=environ['wsgi.input']) if formdata.has_key('Mass') and formdata.has_key('Height'): Mass = float(formdata.getvalue('Mass')) Height = float(formdata.getvalue('Height')) BMI = formdata.getvalue('Mass/(Height*Height)') … | |
I try to limit my search result to 5-7 per page, but i got this error: *Parse error: syntax error, unexpected T_STRING * My Code is: <?Php require "config.php"; // All database details will be included here $page_name="page1.php"; // If you use this code with a different page ( or … | |
I wanted to display the blue mean value in the text box, but it is giving me an error blue.set(B_mean1) AttributeError: 'numpy.ndarray' object has no attribute 'set' And this is my code: from Tkinter import Tk, Frame, BOTH from Tkinter import * import cv2 from collections import * from CBIR … | |
hi, i'm wondering how can i make my project running in to another computer without changing the connectionstring. i am using this connectionstring("Server=GEN-PC;Data Source=GEN-PC/SQLEXPRESS;Initial Catalog=Brgy;Persist Security Info=True;") | |
hi, can someone correct this code for me. i will be very thnakful. #include<iostream> #include<string> using namespace std; template <class T> class ListIterator; template<class T> class List { friend class ListIterator<T>; //declaration of <Template>class iterator public: List(int size); ~List(){ delete [] listArray; } bool isFull() { return mSize == MaxSize; … | |
Hi Dw I want to read a text file line by line and refer to those lines, meaning the text file will have 1 word per line and these words are the names which will be used by a scanner to check if there are any files named as these … | |
hi guys, Hi, I want to create a calendar shifts in C # Board will have four arrays in which there will be names of people Each month the board will take one name at random from an array and put it in the table In addition there will be … | |
Hi Dw There is a program that I'm doing and what it does is move a chosen file/folder to a folder on drive "C:\test" and I have a list box that only display the files name inside the Test folder and when the user click the file name on a … | |
I am trying to code a mysql query that will enable me select and insert multiple vaules from one table to another table in the same mysql database. I want to automatically populate the values from my id,levy from my tb_residents into table 2 resident_payments uid , rate . I … | |
Hi I am working on dynamic add row. In that if a value is enter in ptype box it should disable the releated textbox filed based on the value. i written code but its not working can any please help me to solve this issue **html Page** <form id='students' method='post' … | |
Hello, I am trying to access the admin page and there is error in the admin first page: http://www.indonusa.net.id/IndonusaCMS/admin/ How to fix it? admin/index.php <?php include ($include); ?> </div> </div> </body> </html> <? } ?> Here is like the last 20 lines of admin. | |
program that implements an event-driven simulation of a line of customers at a bank.Each customer enters a queue, waits until reaching the front of the queue, performs a transaction with a teller (bank employee), and then leaves the bank. You may assume that the bank has only one queue and … | |
create a structure called sales with: salesid, custmer name, customer address using constructor to initialize. | |
Is there any simple way to create a txt file with its name come from the user input. Also the file will be stored in a specific location such as C:\Users for example. Here is what I do but doesn't work. import java.io.File; import java.util.Scanner; public class cITF implements ICommand{ … | |
I am writing a program where the user enters 2 strings and the program checsk to see if any characters are in both strings, and if they are, remove them from the first string and print it. So i have this at the moment, and it's almost working but it … | |
I have two tables in db named department (contains department) and sup (contains name of supervisors name). now my query is: By selecting the department in select menu the next select field sup should automatically get fetched with names. how can i do it with php using onchange javascript menu.. … | |
Hello, so i am making a shooter game, and i want the asteroids or '@' to spawn randomly along the y axis and fall down (- y axis per second) compiler:- codeblocks os:- win 7 thanks. | |
[Click Here](null)Friends... Good Evening... I am final year student of UG Computer Science.. I am creating my College Admin Project using Vb.net 2010 with SQL server 2005. When i am trying to complete my project , i have to connect all my different modules (Admission, Fee Management, Students Profile, Attendance … | |
Hello! :) It's my first time here. I don't know why GLSL is better to Nvidia Cg! :( I'm working on skeletal animation in GPU. With Nvidia Cg it's just fine, but when I try to use GLSL, just don't work! I'm using a Nvidia card in my new computer. … | |
Hi, Entering website first time. Script says Admin then admin. Like so Admin Id: Admin Password: admin But get Error. Wrong Admin Login. Plus these errors top of page: Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/adven735/public_html/config.php on line 4 Warning: mysql_fetch_array() expects parameter 1 to … | |
-->>Hello everyone, -->>I curently faced the problem with My project that the Main Form (Which is My startup form) in My project is NOT loaded in.. -->>project explorer window during the design time,when I lounch the project I get the following error: Microsoft Visual Basic Errors during loading. Refer to … | |
i'm taking the image from the user, and displaying it using label. Now i have to use that image for further processing. my code is: from Tkinter import Tk, Frame, BOTH from Tkinter import * import cv2 from collections import * from CBIR import * from experiment import * from … | |
I can't seem to get a response from my query method. I have a database connection from method ping_server and use mysqli as connector. Can anyone help me figure out why I cannot print results from mysqli_fetch_array. dbclass.php class db { private $connection; private $selectdb; private $lastQuery; private $config; function … | |
Hello, This is about an assignment and the requirements (to pass) is as follow: 1-Abstract base Class **Shape** must have the following consturctors: area() print() Recommended constructors: Point( double x, double y, double size) Circle( double x, double y, double radie) Rectangle( double x, double y, double width, double height) … | |
Hi I want to call the xml file and I want to change the tag name. here sample coding of get txt file. my $inputtxt=$ARGV[0]; open(TXT,"$inputtxt"); my $txtstr=join("",<TXT>); close TXT; $txtstr =~ s#\n\n#\n#sgi; # print $txtstr; open (OUT,">$inputtxt\.txt"); print OUT $txtstr; close (OUT); I need how to call xml file, … | |
So I am not getting the data from text1 to load properly(I would assume text2 is the same). If I step through it the variables load and then once it reaches Dim A() etc. it gives the "path's format is not supported" error. I have changed up how i'm getting … | |
hy i have a problem in a Result programe of C++. I want to find 1st,2nd and 3rd position from any number of students. I already have a code to find first three largest element of array but problem is that 2 or 3 students marks can be equal but … | |
I am new to parsers. I want to extract/parse the HTML documents. I have heard of this HTML DOM using PHP. Can ypu tell me some links or some basic introduction to start with? How can I use it to extract info from HTML document? Thanks in advance. | |
On the Ad there is 2 security groups 1. SG-warehouse1 users : test1 2. SG-warehouse2 users : test2 These 2 Security groups belogs to one distubution list : DL-warehouse what i am trying to do instead of searching 2 secuirty gorups i like to check if the user links to … | |
Undefined index: id line 7 help me please email me asap at asmafayaz@hotmail.co.uk <?php // Connect to database server $conn = mysqli_connect("mysql5", "fet12014211", "Milkshake12","fet12014211"); // Show a particular value. $id = $_GET['id']; // SQL query $strSQL = "SELECT * FROM countries where iso_alpha3='" . $id . "'"; // Execute the … | |
<?php $to='gsankar5181@gmail.com'; $message='hai'; $sen=mail($to, 'My Subject', $message); if($sen) echo "yes"; else echo "no"; ?> 14-04-04 14:35:44 : Message is missing sender's address 14-04-04 14:39:37 : Message is missing sender's address 14-04-04 14:39:39 : Message is missing sender's address | |
Hello, I have a complex form and a 'Print' button which should print only the contents of a specific DIV. I am using the following function (i found on another forum): [CODE] function PrintContent() { var DocumentContainer = document.getElementById('divName'); var WindowObject = window.open('', 'PrintWindow', 'width=750,height=650,top=50,left=50,toolbars=no,scrollbars=yes,status=no,resizable=yes'); WindowObject.document.writeln(DocumentContainer.innerHTML); WindowObject.document.close(); WindowObject.focus(); WindowObject.print(); WindowObject.close(); … |
The End.