199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for merse

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: () ?

Member Avatar for mrnutty
0
101
Member Avatar for calypso&noname

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 …

Member Avatar for calypso&noname
0
124
Member Avatar for Mclovin1234

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 …

Member Avatar for mrnutty
0
99
Member Avatar for tangieb01

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 …

Member Avatar for BestJewSinceJC
0
107
Member Avatar for EvaDo

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 …

Member Avatar for Gribouillis
0
182
Member Avatar for dark1806

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] …

Member Avatar for Narue
0
91
Member Avatar for morecrab

:) How do i send email with php Is there some computer configuration needed too for this purpose [U]Please reply.. urgent[/U]

Member Avatar for refrost
0
97
Member Avatar for iassael

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 …

Member Avatar for twomers
0
115
Member Avatar for gary89

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.. …

Member Avatar for gary89
0
211
Member Avatar for nola_Coder

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[][] …

Member Avatar for nola_Coder
0
170
Member Avatar for student88

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 …

Member Avatar for student88
0
184
Member Avatar for Dex02

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 …

Member Avatar for Dex02
0
112
Member Avatar for kpcorp

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 …

Member Avatar for Ezzaral
0
102
Member Avatar for abby524

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 …

Member Avatar for abby524
0
3K
Member Avatar for samarth

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 …

Member Avatar for gastonci
0
272
Member Avatar for Clawsy

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 …

Member Avatar for Clawsy
0
726
Member Avatar for ericcool

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 …

Member Avatar for ericcool
0
145
Member Avatar for dsylebee

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 …

Member Avatar for DdoubleD
0
722
Member Avatar for Mahsa_C++

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 …

Member Avatar for Mahsa_C++
0
460
Member Avatar for lewashby

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 …

Member Avatar for masterofpuppets
0
154
Member Avatar for ababhijit das
Member Avatar for daneuchar

[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 …

Member Avatar for almostbob
0
95
Member Avatar for hailpam

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 …

Member Avatar for hailpam
0
194
Member Avatar for tennisshoes

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 …

Member Avatar for Narue
0
450
Member Avatar for kardsen

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]) …

Member Avatar for kardsen
0
130
Member Avatar for tatt727

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 = …

Member Avatar for almostbob
0
115
Member Avatar for supriya mysore

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

Member Avatar for debasisdas
0
113
Member Avatar for hamidvosugh

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

Member Avatar for hamidvosugh
0
209
Member Avatar for shakunni

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 …

Member Avatar for Ancient Dragon
0
108
Member Avatar for Bemani_lover

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] // …

Member Avatar for Bemani_lover
0
182
Member Avatar for procomp65

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 …

Member Avatar for procomp65
0
703
Member Avatar for silveram

Can you convert the object returned by jTable.getValueAt(Row,Col) to an integer?

Member Avatar for javaAddict
0
92
Member Avatar for dmmajorstudent

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 …

Member Avatar for dmmajorstudent
0
183
Member Avatar for kaydub123

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!

Member Avatar for masterofpuppets
0
136
Member Avatar for rajeshwari_ib
Member Avatar for Pranesh_Ashrit

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 …

Member Avatar for javaAddict
0
108
Member Avatar for Japus

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 …

Member Avatar for ov3rcl0ck
0
246
Member Avatar for proprasee

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 …

Member Avatar for dasatti
0
213
Member Avatar for Chris11246

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, …

Member Avatar for Chris11246
0
71
Member Avatar for P00dle

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?

Member Avatar for P00dle
0
88
Member Avatar for hardik.rajani

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 …

Member Avatar for parry_kulk
0
137
Member Avatar for dima shawahneh

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

Member Avatar for dima shawahneh
0
113
Member Avatar for SharpNovice

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 …

Member Avatar for privatevoid
0
681
Member Avatar for deadllama19

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 = …

Member Avatar for GTJava
0
102
Member Avatar for DrLod

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 …

Member Avatar for privatevoid
0
124
Member Avatar for ineedalotohelp

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 …

Member Avatar for TomW
0
146
Member Avatar for patriciuuu

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 …

Member Avatar for nure
0
392
Member Avatar for daviddoria

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 …

Member Avatar for daviddoria
0
5K
Member Avatar for c#noob

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 …

Member Avatar for Geekitygeek
0
206
Member Avatar for maria_college

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 …

Member Avatar for maria_college
0
378

The End.