199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for daldrome

Hello. I am trying to use the strtok function to separate individual words and store them in a 2D char array. However, only the first word is stored in the 2D array. [CODE]cout << "Enter a string: "; cin.getline (str, MAX); //count number to words char *p = strtok (str, …

Member Avatar for deceptikon
0
2K
Member Avatar for ztdep

[CODE]#ifndef PARTICLE_H #define PARTICLE_H #include<vector> #include<iostream> using namespace std; class Particle { protected: public: Particle(); Particle(const int aDim); int dimension; vector<double> velocity; vector<double> position; vector<double> pBest; double pBestFitness; double fitness; bool valid; bool operator<(const Particle& aP2) const; ~Particle(void); }; #endif[/CODE] [CODE]#define SWARM_H #include"Particle.h" #include<vector> #include <Algorithm> #include<iostream> #include<stdexcept> using namespace …

Member Avatar for jaskij
0
98
Member Avatar for laklaker

Hello guys! I created a website. I tested it on my computer it works when I transfer it to the host it won't work now :( here's the code [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 5.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>NeverlastingRO</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link rel="stylesheet" type="text/css" href="ceres.css"> <script …

Member Avatar for laklaker
0
141
Member Avatar for anuj.juthani

i am calculating some expressions and the result of these expressions is a DOUBLE type value , i am storing this result into a double type variable called Sum . now i want to write this value of Sum into the Edit Control of a Dialog Based MFC application . …

Member Avatar for thines01
0
994
Member Avatar for kamilacbe

Hi.. Is there any option of downloading free controls (eg button) for windows application as we do in asp page . links would be helpful to work on it.. Thanks...

Member Avatar for kamilacbe
0
139
Member Avatar for vivekanandaan

[CODE] Dim connection As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=""d:\sprrg\\scm\scm\sprrg.mdb"";") Dim adapter As New OleDbDataAdapter("SELECT * FROM mr_head", connection) Dim dbInsert As New OleDb.OleDbCommand Dim table As New DataTable adapter.Fill(table) 'job_code,mr_no,mr_date,item_code,qty,mr_status,mr_approved_date 'Dim row As DataRow = table.Rows(0) connection.Open() dbInsert.Parameters.Add(dbInsert.CreateParameter).ParameterName = "job_code" dbInsert.Parameters.Item("job_code").Value = jobcode dbInsert.Parameters.Add(dbInsert.CreateParameter).ParameterName = "mr_no" dbInsert.Parameters.Item("mr_no").Value = mr_no dbInsert.Parameters.Add(dbInsert.CreateParameter).ParameterName = "mr_date" …

Member Avatar for vivekanandaan
0
1K
Member Avatar for MattWhitehead__

My PHP contact form doesn't send an email to my email address when a form is submitted. This is where the form is located;- [url]http://www.mattwhitehead.co.uk/contact2.htm[/url] Any help would be great, also I'm very new to PHP. Thanks, Matt

Member Avatar for MattWhitehead__
0
627
Member Avatar for M.Waqas Aslam

hello EveryOne! i am very new in JS and JSON , or you can say this is my first day to learn something about JS and JSON, i have few questions 1- what is difference between JS and JSON. 2-My Task is to connect MSSQL server 2008 and show records …

Member Avatar for M.Waqas Aslam
0
143
Member Avatar for kincaid

Hello everyone - new member here! I have a javascript function for creating an 'add bookmark' link on my pages. For firefox it uses window.sidebar.addPanel to add the bookmark [code] function addBookmark(title, url) { if (window.sidebar) { // firefox window.sidebar.addPanel(title, url,""); } else if( document.all ) { //MSIE window.external.AddFavorite( url, …

Member Avatar for atul.kushwah
0
860
Member Avatar for krishnisilva

hi, I am using SQL client as the database and VS 2008 standard to bild my project. i need to browse for a file and upload it to the SQL database. how can I do this ?? I have the code to browse for the file and insert to the …

Member Avatar for LP...
0
2K
Member Avatar for Mr.BunyRabit

Why is netbeans doing this?! I added an image to my login screen, but now when i want to add a new one (i just chose a crytec logo to show) then it doestn display it!? It still displays the old one!? Whyy?? (image Attached)

Member Avatar for Mr.BunyRabit
0
143
Member Avatar for Joeeb22

The goal of the project is to calc based on age and gender there rental rates for cars. but something is going terribly wrong T-T. I am receiving the following errors in homework for java class. ----jGRASP exec: javac -g RentalRate.java RentalRate.java:112: error: illegal start of expression public static String …

Member Avatar for stultuske
0
491
Member Avatar for Johnbonono

I have a div with 2 divs inside it. The container div is positioned relative, and the 2 inside it are positioned absolute, one on top of the other (on the z axis). I made it so that when the mouse enters the container div, the top div slides up …

Member Avatar for ckchaudhary
0
204
Member Avatar for jhonnyboy

hello everyone i am currently working on my website. I wanted to make a php script for registering users. So that they may log in, log out, register, and access member only functions. I found a good tutorial online but since im fairly new to php and have never worked …

Member Avatar for aruna_juice
0
1K
Member Avatar for srinidelite

HI I would Like to Know how can Display the error Message When Executing the SP .. and the Stored Procedure doesn't having any value to Fire the Event .. [CODE] set ANSI_NULLS ON set QUOTED_IDENTIFIER ON go -- ============================================= -- Author: <sabari,,Name> -- Create date: <Create Date,,> -- Description: …

Member Avatar for ckchaudhary
0
570
Member Avatar for trivikrama

Hi all, I have to design a form where User can fill some details. After he submits the form it should be viewed for final confirmation. If everything is fine, then there should be two options. Save as PDF and Send mail. if save as pdf -> the submitted page …

Member Avatar for trivikrama
0
273
Member Avatar for androidf

My project scope is on android forensic. 1. After extracting all the information from an android phone, the information is saved to an excel file. Currently, I'm trying to transfer all the data saved in the excel file to MySQL database in Java. 2. After which, implement a feature that …

Member Avatar for peter_budo
0
567
Member Avatar for tamildinesh

i want to send the mail , when product got expire from before and ondate and after day, in php i was used datediff mysql function with php, but if product expire date comes like 31-1-2012 , the differ value is not suit for my coding , plz help how …

0
216
Member Avatar for abhijeet P

Hello, I have written a code in which back button was working fine but it is not working for some reason also the validation of 2nd form isnt working as well.....plz help here is the code [CODE]/* * To change this template, choose Tools | Templates * and open the …

Member Avatar for peter_budo
0
125
Member Avatar for Brewsky

Hi, first am a noob at PHP and IMAP.. So please bear with me... I am trying to create a PHP page that will check an IMAP server for any unseen messages and download an attachment (the attachment will always be the same audio file format), then attach the file …

Member Avatar for vijaykavin10
0
4K
Member Avatar for adam9452

Hi, i want to change fileToolStripMenuItem from enabled==true to enabled==false after click on it in my formApplication. It does not work: private void fileToolStripMenuItem_Click_1(object sender, EventArgs e) { fileToolStripMenuItem.Enabled == false; } what is wrong?

Member Avatar for lolafuertes
0
116
Member Avatar for Tcll

first off... a litte explanation as to what I'm doing... this is basically a way for me to create an update system for my program... the webhost I'm using allows hot-file linkage, so there's nothing that's improper... (except for my compy not having net) anyways... the structure I have for …

Member Avatar for Tcll
0
168
Member Avatar for mohamedasif18

Hello everyone ! I need a code that displays my URL friendly, Normally, URL : [url]www.domain.com/externalpage.php?page=12[/url] Now i need my URL Like this [url]www.domain.com/externalpage/pageid/[/url] Is there any way for this ??:)

Member Avatar for mohamedasif18
0
395
Member Avatar for HasNor

Hi, actually i've tried the simple checkbox code but it doesn't work. My point is want to insert the selected checkbox value into the same database row. Example : one,three --> if there are selected. This is my code. Anybody can help me? [CODE] <?php include 'connection/db_connect.php'; if(isset($one)) $val1=$one.";"; else …

Member Avatar for Atli
0
365
Member Avatar for noprogn

The compiler keeps complaining it cannot understand one operator<< manipulator if it is in one order, but accepts it if it is in a different order or statement. But the error code is cryptic, it finds the correct function signature among candidates but gets lost in a string of parenthesized …

Member Avatar for noprogn
0
326
Member Avatar for borchu

Hello, I am asking about true syntax of the following:: I have a class name P and in header file (of this class) ------> [CODE] class P { public: P(); ~P(); void addItem(const int newItem); void deleteItem(const int Item); void showAll(); /** need to proper getter funct. of tail */ …

Member Avatar for borchu
0
250
Member Avatar for softDeveloper

Dear all, Context: JSP I'm trying to get the value of a java variable and assign it to a javascript variable in order to later on use it in an iframe: [CODE] ... rs.next(); entry1 = rs.getString(3);%> <SCRIPT> [COLOR="Red"] var tt="<%=entry1%>";[/COLOR] [COLOR="red"] var content = "<html><body>" + tt+ "</body></html>";[/COLOR] var …

0
105
Member Avatar for sp85202

I'm working on a homework my OOP class and I just can't figure out this last part. The assignment calls for us to write five different classes with parent class StaffMember. I'm pretty sure I've that at the subclassess (Volunteer, HourlyEmployee and FullTimeEmployee) correct so I'm not going to post …

Member Avatar for sp85202
0
330
Member Avatar for jbutardo

Hi, I just have this program that needs to create a downloadable template for the excel file that will be used later in my program, now I have this templates in my server and I think that i'll just import this file first and then put it in the data …

0
145
Member Avatar for Alex_2011

Hi, I am trying (Push)add data into my stack (length of five) and (Pop)delete from the end of my stack. I need to know how can: - Add the elements to the stack with keeping track of adding and deleting from it (adding an element will increment until 5 and …

Member Avatar for Alex_2011
0
173
Member Avatar for kris-kz

Hi co-programmers, We're currently doing a simple conversion of a jsp to java format. I think we we're able to somehow force our way for a java program to hold our jsp program, but unfortunately we are having a slight problem. We're getting this exception: Exception in thread "main" javax.script.ScriptException: …

Member Avatar for kris-kz
0
203
Member Avatar for Ghoztrider

Good Day! I've created a rudimentary program that takes multiple .csv files and creates one merged .csv file. What I'm looking to do is after merging the file into one, I want to convert it to an .xls file, however, when I do this the converting is not correct. Here …

Member Avatar for Ghoztrider
0
2K
Member Avatar for txwooley

I've been going through a couple of tutorials on SDL and having moderate success. But this one has me stumped. The tutorial from LazyFoo.com has me creating a dot that emits sparks. I followed along and wrote my code which returns my .bmp as NULL. Hmmm, I must have done …

Member Avatar for jaskij
0
927
Member Avatar for cdea06

So I was asked to write a code which would take in 2 dates of the format mm/dd/yyyy, validate that they were good dates (including leap years), then output the dates in chronological order. It works as intended for every date I throw at it but it seems way to …

Member Avatar for WaltP
0
146
Member Avatar for ARKaMAN

Alright I have a MYSQL database with data for Clients. I am displaying this Client info on a HTML Table. I want the last 2 Table Cells to have EDIT and DELETE Functions. I am almost there I just need a final solution to linking them together and getting them …

Member Avatar for Fest3er
0
721
Member Avatar for yeeitsneo

hi. uhm. im having a problem with coding such conditional statement that would check if a certain input contains a certain subs tring. for example. i have a text box that is used for the user to input a string. (0,1) then i have a command button to determine if …

Member Avatar for Sam367
0
315
Member Avatar for mehnihma

I have problem with selecting text, In this code it only selects one and finds one, hot to make it to find more? [CODE]public void actionPerformed(ActionEvent e) { if(e.getActionCommand().equals("ResetAll")) { area.setText(""); search.setText(""); found.setText("0"); } else if(e.getActionCommand().equals("Exit")) { JOptionPane.showMessageDialog(frame, "Good-Bye","218 HW #5", JOptionPane.INFORMATION_MESSAGE); System.exit(0); } else if(e.getActionCommand().equals("Clear")) { area.setText(""); } else …

Member Avatar for mehnihma
0
128
Member Avatar for pradeepreddy

hi , I am pradeep. i wrote a code to get all information with in brackets of each sin() ,which i would like to give as my input to text box. but i am not able to get it exactly, for example i write "sin(90*2)+sin(60)+sin(60+(75*2))+sin(50)+sin(20)" in textbox i need "90*2,60,60+(75*2),50,20" …

Member Avatar for ChrisPadgham
0
131
Member Avatar for John Paul Carlo
Member Avatar for daydie

Is this possible? Download a webpage source without using a browser and place in to a textbox ready to edit and post(stop page/image load times)

Member Avatar for codeorder
0
429
Member Avatar for sdimantova

My program performs a search on a specific directory and returns a list of files with specific criteria. I want the user to be able to select an item in the list and click a button and have that file open...is this possible? The first column of my list gives …

Member Avatar for PraDevil
0
2K
Member Avatar for randomguitarguy

I'm planning on developing a call center/call tracking software for an IT helpdesk for my Final year project. The system should: 1. Auto-generate ticket numbers 2. have a database of users (agent just puts in ID number and the rest of the fields populate) 3. Be able to search for …

Member Avatar for hfx642
0
96
Member Avatar for mehnihma

I have problem with do while loop I need something like this [CODE] What do you want to do? 1 Create a new account 2 Deposite funds 3 Withdraw funds 4 Show Balance 5 Show Interest 6 Show Summary 7 Quit Enter Option: 2 Which account <1 to 2> do …

Member Avatar for mehnihma
0
123
Member Avatar for jsheehan

I have got this bit of code for a simple game and i need annotate and can someone explain to me the processes which are occuring. import random # set up our maximum and minimum number of blocksMAXBLOCKS=100MINBLOCKS=0 # set up the initial number of blocks in the toweruserBlocks=50 # …

Member Avatar for ctaylo21
0
134
Member Avatar for phorce

Hello hope that you can help. Basically, I'm making a site that uses a header file and then for each page, include the header and set the title.. It's easy using procedural PHP but I want to do it using OO. Here is the problem: Page.php (class) <?php class Page …

Member Avatar for ctaylo21
0
106
Member Avatar for xtinab

I keep getting these errors: Validation.obj : error LNK2005: "bool __cdecl dotDashRules(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?dotDashRules@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) already defined in main.obj Validation.obj : error LNK2005: "bool __cdecl IsValid(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?IsValid@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) already defined in main.obj I can't get rid of them. This program is …

Member Avatar for thines01
0
603
Member Avatar for ThaiAmL

I'm working on a program for an intro to java class and am supposed to use the following interface: [CODE]public Interface Animal{ //The animal is first supposed to "speak" and then it gets to eat //As long as the food supply lasts public void feed(); //The animal eats public void …

Member Avatar for ThaiAmL
0
229
Member Avatar for Despairy

Hi, we were asked to build a 2d complex maze using c++ and sfml. the game includes: a king that needs to reach his castle a warrior that kills orcs and they drop money a thief that collects the money to open gates and more characters. so far no problem. …

Member Avatar for Despairy
0
306
Member Avatar for labhijitp

I have written a small query. I want to create link on my php site which on click will run this script automatically and export results to an excel file. I dont want to create a page to view the results. Any help to this new bie will be very …

Member Avatar for leardas
0
1K
Member Avatar for softDeveloper

Hi all! Can anyone help me on finding out if it is possible to fill an iframe in a jsp loading text from MySQL? or a different way to do it? Thanks in advance [CODE] Example: <% Connection conn = null; Statement stmt = null; ResultSet rs = null; String …

0
115

The End.