199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jBat

Hi, I'm just starting to practice with c++ and I'd like to know if there is a good way to handle the errors/exception. I write this program to check the modification time of a file. Thanks [CODE]int filewatcher::watch() { struct stat filestatus; stat(this->_filename, &filestatus); if((filestatus.st_mode & S_IFMT) == S_IFREG) { …

Member Avatar for Nick Evan
0
152
Member Avatar for khemalatha

Hi i want to get contact details from outlook and display that contact details in my datagrid view using csv file. My grid view display only few columns such as Name, Address, Email and category. In outlook i will add the contact details such as First Name, LastName, Business address …

Member Avatar for sknake
0
202
Member Avatar for computerfreak97

Can anyone give me an example on how to use fft to see weather there is a certain frequency above a certain amplitude in the microphones current sample(s).

Member Avatar for Gribouillis
0
98
Member Avatar for touqra

Hi, I don't understand why I failed to insert vectors as an input of a function. I wrote : void fun( std::vector<double> do, int &count ){ ... } but it doesn't compile...

Member Avatar for Narue
0
119
Member Avatar for scias23

i want to extract 576 to hundreds = 5 tens = 7 ones = 6 my code does this purpose, but.. [CODE=java] h=num/100; t=(num-(h*100))/10; o=((num-(h*100))-(t*10)); [/CODE] i want to rewrite my code using loop and modulus operator.. help guys. thanks btw: i'm writing a program that converts numbr to w.ord-/.

Member Avatar for scias23
0
161
Member Avatar for mwouters

Hello, I found a lot of so called ajax (jquery) solutions to protect mailto's, but i found them still quite tricky. They used [mailto]test[at]domain[dot]com and then jquery to convert it to mailto:test@domain.com. But i don't think it's that safe. Now, what i want to do is to call a javascript …

Member Avatar for codejoust
0
121
Member Avatar for kehar

Hi, I have completed my software but I would like to create Keygen to it so that the software should ask for Serial No., 15 days after it is installed. Pl help me (Kehar)

Member Avatar for Kegtapper
0
141
Member Avatar for leroi green

hey all, I have a form where a user selects from a couple radio buttons. once THAT button is selected i want a new form to load where the user has to fill out personal info and submit. what's the best and easiest way to set this up? like: 1) …

Member Avatar for adam1991
0
116
Member Avatar for osirion666

Okay so i am having a major problem i am using an image button to delete a recrod from a DB when i use FF it deletes perfectly runs are you sure you want to delete JS and if clicked okay deltes the record In IE 7 however this is …

Member Avatar for osirion666
0
90
Member Avatar for pilipino93

Hi there. Is it possible to make it so that a user can manually add and delete file resources by using a open file dialog? Like, the user can click a button which opens up a FileDialog. Then they can choose a file to load it into the program as …

Member Avatar for DdoubleD
0
143
Member Avatar for shadwickman

Hello, I am currently trying to figure out some event stuff with Javascript. I have the page capturing all [I]onkeypress[/I] events by calling my function [I]keyPress[/I], and passing the event as an argument. The key presses get passed to a text field that I have on the page (even if …

Member Avatar for codejoust
0
167
Member Avatar for sarithak

Hi frnds... I am doing poll in AJAX..this is first time i am using AJAX.. The below code is working fine in mozilla, chrome...but not working in IE....plz check the below code...and change the code as correctly..i think problem in object creation in IE.. [CODE] <script> //VOTE POLL ------------------------------------- function …

Member Avatar for diafol
0
101
Member Avatar for feoperro

Hi, I'm trying to create a single instance of a regex term. i.e. [CODE] boolean rProcessEndpoint = Pattern.matches("[http://]{1,1}", processEndpointInput); System.out.println(""+processEndpointInput); [/CODE] However, with this particular instance, you can type "http://http://" and it will return true. Here is my source of information: [url]http://www.dreambank.net/regex.html[/url] Here is where I test my regex: [url]http://www.regular-expressions.info/javascriptexample.html[/url] …

Member Avatar for feoperro
0
257
Member Avatar for networkmancer

I need to put this one in my case 5 [code]#include<stdio.h> #include<conio.h> #include<process.h> float rate,day,gp,netpay,totald,sss,med,love;int age; float basic,cola,tax;char employee[20],addr[30],sex[10],bday[8]; void main(){ clrscr(); char choice; gotoxy(20,2);textcolor(4);cprintf("Payroll System"); gotoxy(20,4);textcolor(5);cprintf("Select Choices:"); gotoxy(18,6);textcolor(7);cprintf("[1] Add Customer Info"); gotoxy(18,7);textcolor(7);cprintf("[2] Compute Payroll"); gotoxy(18,8);textcolor(7);cprintf("[3] Display Information"); gotoxy(18,9);textcolor(7);cprintf("[4] Exit"); gotoxy(18,10);textcolor(7);cprintf("Enter Choice:"); scanf("%d",&choice); switch (choice){ case 1:printf("Employee Information\n\n"); printf("Enter Employee …

Member Avatar for Ancient Dragon
0
295
Member Avatar for mstrlouis

My code is a php search function which is supposed to search from two tables in my database and displays matching results from the two tables in a line after line format. It is supposed to match the two tables with a common key field. However, the primary table has …

0
183
Member Avatar for awa

Hi, I want to make a python program which allows to read data from a file starting from a line with a certain keyword, skipping 4 lines, beginning to write the contents to an output file and stopping after n lines. I tried so far an input with the re.search() …

Member Avatar for awa
0
150
Member Avatar for momo_rose

i need login code in my project. in my project two different category of user one is administrator and other is data operator. both have to redirect different page after login. my problem is that how to login the both user on different page .

Member Avatar for Mongz
0
88
Member Avatar for wil0022

Hi can anyone help me doing a binary search..? example: the number of input is 10. then the inputted number 20, 10, 90, 23, 21, 32, 87, 45, 76, 56 search value: 32 output: Lower: Middle: Higher: Value not found! (Until the value found or the loop end) sorry for …

Member Avatar for kvprajapati
0
141
Member Avatar for Mujahid158

I'm running a PTC website. I want to show the last member registered on my website. I tried the following query but nothing is shown on the page; [CODE] <? $mem = mysql_query("SELECT username FROM tb_users ORDER BY id DESC LIMIT 1"); ?> New Member: <? echo $mem; ?> [/CODE]

Member Avatar for Mujahid158
0
81
Member Avatar for basketball4567

Hi guys, I know that there might already be a tread about reading from file but this has a certain hurdle to jump... I have to read in a 1000 word document into something that will make a list of unique words and how many times they appear. Thats not …

Member Avatar for jencas
0
118
Member Avatar for especta

find replace hi i have 2 txt files in 1 i have stored numbers numbers.txt ex. 10 20 30 others i have stored word.txt 10,hello 20,welcme 30,text ...... i need to auto replace numbers with words .. plise help.

Member Avatar for especta
0
221
Member Avatar for Atove

Hi all; i'm trying to connect my program to an SQL Server Express database... however i am just getting an error that simply states: "Login failed for user 'sa'." Within my code this appears on: objConnection.Open() my code so far is: [code] Imports System.Data.SqlClient Imports System.Data Private Sub Form1_Load(ByVal sender …

Member Avatar for Atove
0
121
Member Avatar for Seba Sama

Hi! I searched for this one with no results. I have an Access table with a column Date_of_birth witch has date/time format like dd/mm/yyyy. I develop a VB6 application that needs to read, write, update data in the mdb. INSERT: The user inserts this Date_of_birth in a textbox. I use …

Member Avatar for Seba Sama
0
115
Member Avatar for hansino

Hi , //In this project, you’ll create a program that calculates a salesperson’s commissions using double-precision values, and displays the results. The commission rate in the first method will be entered as a decimal value (for example, a 7.5% rate will be entered as 0.075). I read javaAddict reply here …

Member Avatar for crunchie
0
237
Member Avatar for runee1000

hi: i'm trying to make a simple java program which can determine whether a number is odd or even. I am 100% Completly new to java and just started, and so I do not understand most terms and such, so my apologies for that. The Following code is wht i …

Member Avatar for fox07
0
223
Member Avatar for empoor

Hey. I've got this code, [CODE] // query article $query1 = "SELECT * FROM (articles LEFT JOIN authorisation ON articles.page_id = authorisation.page_id LEFT JOIN authors ON articles.author_id = authors.author_id) WHERE articles.page_id NOT IN (authorisation.page_id) ORDER BY issue ASC"; $mysql_result1 = mysql_query ($query1) or die ("Query '$query1' failed with error message: …

Member Avatar for empoor
0
150
Member Avatar for kvass

Can someone please write a piece of code for the following and comment each line (except for really simple ones like int x = 5;) explaining what it does? Objective: write a program that "spins a number wheel" in the background while waiting for you to type "stop" -- when …

Member Avatar for kvprajapati
0
94
Member Avatar for yorro

How do you set or adjust opacity of controls during runtime? (buttons/textbox/etc) I've tried this [CODE=vb] Public Sub setOpacity(ByVal opacity As Integer) Me.BackColor = Color.FromArgb(opacity, 255, 255, 255) End Sub [/CODE] But error returns that it controls does not support opacity. [B]I want my controls to load on runtime with …

Member Avatar for yorro
0
491
Member Avatar for nicolek808

Output should be as show below: and files are attached. 1. Here is example output for input file electricity.txt: number of integers in file "electricity.txt" = 4 index = 0, element = 1877 index = 1, element = 1923 index = 2, element = 1879 index = 3, element = …

Member Avatar for quuba
0
162
Member Avatar for anujsharma

Hi, I urgently need some help on system date and time.Here's the code [code=c] #include<stdio.h> #include<time.h> main() { time_t rawtime; struct tm *timeinfo; time(&rawtime); timeinfo=localtime(&rawtime); int hour2; int minute2; int seconds2; char end1[5]; int end=0; char diff[5]; char start[5]; int i=0; char ch[5]; char ch1[5]; FILE *fp2; FILE *fp1; FILE …

Member Avatar for anujsharma
0
133
Member Avatar for PcPro12

Ok, so I'm kinda new to programming, but I'm quick to grasp it. I like programming. Anyway, I'm trying to write a program that will do this. If a user types in a name in the first line of a textbox and clicks a button, the name will be wrapped …

Member Avatar for PcPro12
0
201
Member Avatar for no1uknow

I have several fields being updated for a parking structure... The client inputs the number of cars and can immediately see the percentage before updating the database.... The field names always change so I need the JavaScript to be able to pick up the unique field names calculate and place …

Member Avatar for accountholder
0
145
Member Avatar for wandor

When I fill my Contact Form 1) select option TITLE (MR. MRS. MISS) 2)First Name 3)Last Name 4) E-mail I make validation to all data, The question is when I select title e.g. MR and then fill first name, last name AND e-mail IS NOT right (info2company.com) validation said *Email …

Member Avatar for cwarn23
0
2K
Member Avatar for ggl0rd

from my this code for search record.. what code for update after i search the record? anyone can help me? [CODE]Private Sub btnCari_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCari.Click Dim ConString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Password="""";User ID=Admin;Data Source=""H:\PROJEK\New Sistem\SISTEM_DATABASE.mdb"";" ' string declare connection ke dbase Dim DBCon As …

Member Avatar for kvprajapati
0
85
Member Avatar for beershits

I'm trying to setup a simple php code that will read .txt files. I want the links to change $x to the desired .txt file, then print the results below the navigation. The code works if i predefine $x, but i want to make it where clicking the links defines …

Member Avatar for almostbob
0
73
Member Avatar for lllllIllIlllI

Hi guys, I have been programming in python for just a bit over 2 years now. Being quite apt at it i was wondering, what can you do to really extend yourself in python? We have a lovely thread in the Projects for Beginners, but in some ways i have …

Member Avatar for lllllIllIlllI
0
213
Member Avatar for llemes4011

Hi everyone. I have a quick question: Is there anyway that you can check to see if a point lays on an Arc2D object? I'm trying to write a Physics library (or at least part of one), and I noticed that there is no method that does it. You can …

Member Avatar for llemes4011
0
173
Member Avatar for praveen_dusari

hi all, i am generting a report where i need to display the monthly wise reports iam not able to display correctly [code=php] <?php ob_start(); include_once('login_check.php'); include_once('functions.php'); $mon=date("m"); $year=date("y"); $num = cal_days_in_month(CAL_GREGORIAN, $mon, $year); ?> <html> <head> <title>..</title> <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"> <link rel="stylesheet" type="text/css" href="../styles.css"> <style type="text/css"> <!-- body …

Member Avatar for praveen_dusari
0
150
Member Avatar for furqankhyraj

i want to make a program in which if we input 98765 than it give output as 9 8 7 6 5 please help me

Member Avatar for Ancient Dragon
0
87
Member Avatar for Terry56

Hi to all, hope you all will be fine, I use a script to detect IE and Mozilla but the problem is when i run it in the firefox it won't work then i find out the name of navigator and it shows Netscape. How i detect Mozilla here is …

Member Avatar for Terry56
0
235
Member Avatar for milhero

Hi, I have posted about receiving email before and this is a follow up of my progress. I have only one form and it consists of 2 buttons, one for downloading messages from the server, the other, to disconnect the connection. I also have one listview and one textbox to …

Member Avatar for milhero
0
280
Member Avatar for severman

hi all i have a very urgent question i want to write a function that i can use what i want to do is something like that: [code] <?php $a=_GET["a"]; function radom() { $x=rand(0,4); echo "&b=$x"; } if($a==1) {random(); } [/code] the problem is that it doesnt work... i'm getting …

Member Avatar for codejoust
0
90
Member Avatar for AutoPython

I'm making a program that shuffles a specific code. Each letter and number has a specific variable represeting them such as code1, code2, code3 etc. So lets say 1 is sait to code1, 2 to code 2, 3 to code3 etc. So here's what I've done, I've put the all …

Member Avatar for AutoPython
0
116
Member Avatar for Se7Olutionyg

[CODE]#include <iostream> using namespace std; class BigNum { private : int biggest; void determineBiggest ( int num) { if (num > biggest) biggest = num ; } public : BigNum () { biggest = 0 ; bool examineNum(int); int getBiggest() { return biggest; } }; bool BigNum::examineNum(int n) { bool …

Member Avatar for vmanes
0
145
Member Avatar for Der_sed

I know that an array matrix would have been better but Im taking a freshman course so coulnt use it. 1- Tic tac toe grid is defined from locations 1 to 9 2- For loop executes 9 times for 9 turns 3- A functions takes all 9 locations as argument …

Member Avatar for DdoubleD
0
145
Member Avatar for kyosuke0

Iv always had trouble with templates and I always get the same error message "Error: Templates can only declare classes or functions." program is a template linked list class and I'm using the sun studio 12 C++ compiler linkedList.h file: [CODE]#include "nodeType.h" using namespace std; template <class Storeable> class LinkedList …

Member Avatar for DdoubleD
0
268
Member Avatar for becraig

I am a php noob and I have tried a few things and nothing so far has worked. I need to find some php code that allows me to do an http post and return the results into an array so I can parse the results for a string. The …

Member Avatar for becraig
0
133
Member Avatar for khemalatha

hi am developing a Outlook form using csharp, if am click Get contact button contact in the outlook are displayed in the 'datagrid view' . Its working well. at the time am getting a error message as "A program is trying to access e-mail addresses you have stored in Outlook. …

Member Avatar for jatin24
0
181
Member Avatar for atch

Hi, I know that this topic was discussed previously but those previous threads didn't answer to my question which is: How to change color of this text: [code=c++] cout << "Some text" << endl; [/code] when I'm outside of main, i.e. in file with my class and in one of …

Member Avatar for atch
0
280
Member Avatar for rena0514

I have a program where i have to use partial array intialization to read data from a file and place it into an array...there is no example of this in my class book and i'm confused!

Member Avatar for DdoubleD
0
114

The End.