199,114 Archived Topics
Remove Filter ![]() | |
String is an object, but it can be initialize without (), like [CODE]string str;[/CODE] However if I define a user defined object, I must initialize it like: [CODE]myclass myobj(); [/CODE] How is it possibel to not use: () ? | |
This question has largely already been posted, and I apologize for that. However, I cannot get the max an min values to change from anything except -1. I'd love to make them actually work; I feel like the comparison statements are correct. I know the counter is working properly, and … | |
An integer is said to be prime, if it is divisible by only 1 and itself. For example, 2,3,5 and 7 are prime, but 4,6,8 and 9 are not. Write a function that determines whether a number is prime. Use this function in a program that determines and prints all … | |
The questions are at the bottom of the code. Need Java Help! I don't know what I'm doing or where to start!? Here is the first program: public class IntClass { private int x; public IntClass() { x = 0; } public IntClass(int num) { x = num; } public … | |
Hi!totally new, i did an undergrad in non-python related science, and I'm trying to move into incorporating python into my postgrad, so my questions right now are fairly basic. I basically want to run muscle (a sequence alignment tool) on a large number of files.how do i start a python … | |
hi i need a litle help.....i must write a program that search for a string in a text file and return the line in the text file were string was found...string its an argv....i wrote this code but it returns the whole text file when i search for something [CODE=c] … | |
:) How do i send email with php Is there some computer configuration needed too for this purpose [U]Please reply.. urgent[/U] | |
how can i declare something like this? int main(int argc, char *argv[]){ char *users[] = {}; char *names[] = {}; openPasswd(users, names); return 0; } void openPasswd(char &users[] = {}, char &names[] = {}){ } as you see i want to populate the 2 char arrays from the function back … | |
Hi Guys, Its my first post here, and hoping to find some help.. I have installed a spiderPoll v1.1 system on my server, the problem is I cant seem to be able to vote.. It displays everything correctly but when I try and vote it will not recognise my vote.. … | |
I'm working on a Floyd's Algorithm type Java program. What I have done so far is represent a directed graph in a 2d array, and I am trying to transform that into a 2d array representing the graph's paths of length 2. I planned for it to fill the adj2[][] … | |
hi all .. just want to ask if anyone have an idea how can i move image down throug keyboard cursors up an down .. i know that there is the keydown event and the keyup event but really i don't know how to write the code .. other qusetion … | |
Hello guys, i need help. I just began to learn c++, and i have a problem. How to write a program, which count numbers in a interval from k to n. I now the program is simple but i just can t bring it to work. Im using the loop … | |
OK i have been stuck with this particular problem and driving me crazy any insight would be helpful. I am trying to create a program that asks user for a string and using the scanner method count the instances it appears in a txt file below is the code oh … | |
Hi, I'm a newbie, having problems creating a feedback form that will be sent to me via email after the client fills it out, any help would be great! When I choose ctrl f5 to take a look and test, I'm getting the below error message: A page can have … | |
Hi, I have the following piece of code. I do the following here 1)open a file. 2) Print the filepointer positon . I get 0 3)Read the file in a while loop till i reach the end 4)close the file 5)Open the same file 6) Print the file pointer position … | |
Hello, In my project I have to capture screen activity (including audio) to a video file. I try using JMF for this. I don't know how to use those two classes: DataSource.java and LiveStream.java. I read them line by line. I probably have to create a Processor and feed it … | |
Required to use PriorityQueue to implements Dijkstra’s algorithm for solving the single-source shortest-path problem for weighted graphs without negative edge weights. I have a wrong output of my program. Here's the code: [CODE] //Graph.h class Graph { public: Graph(int r = 1, int c = 1); // constructor void setCost(int … | |
Hi everyone, thanks for reading this! I have a RichTextBox in my form which contains alot of text. the content of this richtextbox is going to be sent by email but first I need to convert it to HTML format.. Now I know it exists but I can't manage to … | |
Hello to all ! i am encoding a class about rational numbers, holding the numerator and a denominator and all operators like are overloaded for it..it works all so fine ecxept for one wierd point: my cast-to-double operator is called at the times it is not called at all..for example … | |
In the following code, could someone please explain these if statements? elif 5 <= unhappiness <= 10:, & elif 11 <= unhappiness <15:, they have two arguments, one on each side which is something I haven't seen before. Also, what the one to the far right for anyway? Also, this … ![]() | |
| |
[code=php]<?php # Script 16.7 - activate.php // This page activates the user's account. require_once ('includes/config.inc.php'); $page_title = 'Activate Your Account'; include ('includes/header.html'); // Validate $_GET['x'] and $_GET['y']: $x = $y = FALSE; if (isset($_GET['x']) && preg_match ('/^[\w.-]+@[\w.-]+\.[A-Za-z]{2,6}$/', $_GET['x']) ) { $x = $_GET['x']; } if (isset($_GET['y']) && (strlen($_GET['y']) == 32 … | |
Hi all, I've a problem: my application must convert ms word documents (imported from another system) into rtf documents, in order to be manipulated with OOo APIs and [U]to be immune from mistakes[/U] (for coding incompatibility reasons). I ask you: how can I manipulate ms word documents directly from my … | |
Hail. I'm having trouble with this program...here is the discription... Description: Design and implement an application that creates a histogram that allows you to visually inspect the frequency distribution of a set of values. The program should read in an arbitrary number of integers that are in the range 1 … | |
I am trying to write a query in my .net app and I'm having trouble pivoting the table since the columns are generated dynamically (based on a month range selected by the user) [CODE]SELECT SUM(HEALTH_MTTR) AS MTTR, SUM(HEALTH_OTR) AS OTR, SUM(HEALTH_REPEAT) AS REPEAT, SUM(HEALTH_CHRONIC) AS CHRONIC, SUM(HEALTH_TOTAL) AS TOTAL, (CAST(CAST(YEAR([DATE_RESOLVED_FOR_CLOSURE]) … | |
Hi, I am trying to workout how I can changed the buttons I have for sorting the fields in the table into hyperlinks. I have worked out how to do one, but what about if there are several forms on the same page? Thanks [CODE]<?php //Connect to server $conn = … | |
i have a combo box in vb6.0 which i need to get a column of data from oracle database, how can i extract a perticular column of data to a combo box | |
Hi Would any one tell me how can I generate a random permutation of N numbers in c++? Is there any algorithm in STL for this purpose? Thanks in advance | |
I know how to use the file_pointer=fopen("location","type") to open and check if a file exists. But I'm not sure how I would use this command or a similar one to check if a folder exists? What command do I have to use to check if a folder exists in the … | |
Ok, so I need a little bit of help with a program i'm writing. Let me give you the details. The user is suppose to enter two sentences with all lower case letters and have the first letter of each sentence become capitalized. Here is the code so far:[CODE] // … | |
Hi I have a data logger that records different lenghts of data. I download it in my application and create graphs. I need to show a progressbar to indicate how long the download is going to take. I get data from the logger to indicate how long the data run … | |
Can you convert the object returned by jTable.getValueAt(Row,Col) to an integer? | |
How do i create a phone number form box in javascript using no inner html . there must be at least one dash in it. this is my div for the phone number <body> <div id="wrapper" class="grid_12"> <div id="header" class="grid_8"> Take a Survey </div> <div class="clear"></div> <form method="post" name="myform"> <fieldset … | |
I need to write: Starting weight of food (in lbs:ozs)=8:9 into a python 3.0, I'm very new to this and what I came up with was: Starting_weight_of_food_in_lbs{:}ozs=input("Enter Starting_weight_of_food_in_lbs{:}ozs") print("Starting_weight_of_food_in_lbs{:}ozs entered=", Starting_weight_of_food_in_lbs{:}ozs) and I belive i'm way off....any help would be great! ![]() | |
how to store image file into database using python | |
Dear All, I have a web-application where there are two modes of operation i.e. User and Admin. I have pages index.html, user.jsp, admin.jsp in my jsp folder. The problem is the User can go to the browser and type the admin.jsp in the url and gets the admin page. I … | |
Hello I've got a project running at school where I've got to create Pacman, everything is going great. But I want to load an image to use as ghost, background or pacman. Currently it's a square which is pretty stupid. But how can I convert the image from jpg, gif … | |
i have 10 buttons by default colour is red. for each click its colour changes to blue then red that was implemented. The problem is i ahave an array of 10 elements.initially value 0. when button changes to blue corresponding value changed to 1 for red -0 how can i … | |
![]() | Whenever I try to run my program it keeps giving me an overflow error and I dont know why. The problem is shown when i call this sub: [CODE]blueP.shootBall(blueS.x, blueS.y, blueP.ang, blueP.captured, ball.x, ball.y, ball.velx, ball.vely)[/CODE] this is the sub [CODE]Public Sub shootBall(ByVal x, ByVal y, ByVal ang, ByRef caputred, … ![]() |
Hi, In my program, a text file is read in, and certain parts of it are written to a XML file. There are special characters(e.g. &) that need to be escaped, so I need to escape all of them. How can I manage to do this? | |
Hi. I am working on a HRMS system in J2EE. Here i need to verify mobile number through sms. I am reading about it from 2 days but didn't get anything except SMPP. It will take a long time for me to learn this and implement whole. I need suggestion … | |
hello im a beginner in web programming and i faced a problem i defined a button in a certain page say contact.aspx when i choose button_click event it appears in Default.aspx.cs which is not correct coz i lost my control to the page contact.aspx waiting for ur answers .. thanks | |
Hello, firstly I would like to thank you in advance for any assistance provided. I am new to software development and have designed several Client/Server applications over the last 12 months or so, I am currently working on a project that involves a user logging in to gain access to … | |
There were two other variation which I completed but I am confused with this one: Write a method for each triangle variation. Use nested for loops to draw the triangles. Variation 3: /** Precondition: width is an odd number >1*/ public void diamond (int width) { } if width = … | |
Hi! in a school project, we have the task of building an application to deal with judgments protocol for a dog show :-) I find it difficult to determine how I should implement the business logic, and therefore need your help. The requirements I have thoughts on the following (this … | |
Hi guys, Im having trouble with this code, when i had it working with static variables set, it was fine, now i am using a passed variable, its not working... Might not be anything to do with it, anyhow... [CODE]Public Class frmContacts Dim con As New OleDb.OleDbConnection Dim ds As … | |
I'm trying to make a SMTP Checker using Python. The checker will do the following things: The code will take a list of smtps accounts (ex: host,user,pass) and will try to send an email to a email you will specify in the code. If it's successful (the send of the … | |
Consider two classes, PersonClass and LawyerClass. If LawyerClass derives from PersonClass, you can create a PersonClass* as a LawyerClass, like [code] PersonClass* Person = new LawyerClass; [/code] then you can convert it to a LawyerClass* with [code] LawyerClass* Lawyer = static_cast<LawyerClass*>(Person); [/code] However, if you don't know that the person … | |
im doing a project and i want to add a record to an accdb using a windows forms application on c# i have got what appears to be code that works i.e. it doesnt show any errors and appears to run however it doesnt add the record il post the … | |
Hello! I wonder if someone can help me. I'm trying to create a Macro that would copy a line of text from one Word doc into a specific position of another Word doc, and then use the content of the clipboard as the Filename. From recording various Macros and researching … |
The End.