199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ulrik04

hey :) i have this piece of code: [code] while(!(std::cin >> input) || input < 1 || input > 100){ std::cout << "not valid, try again: "; } [/code] it should allow the user only to be able to write numbers between 1 and 100 (input is a short int), …

Member Avatar for Radical Edward
0
110
Member Avatar for realone

Pls i want to generate two report from my database one for duplicate of record based on thumbprint the other for original thumbprint using VB6 and sql server.I need the code.I will appreciate your help. i mean i want to track duplicate of thumbprint in one table and distinct of …

Member Avatar for debasisdas
0
96
Member Avatar for LogicWeb

Greetings everyone, On the [url]www.logicweb.com[/url] top banner (static), the live chat white circle image map area has an IE issue here. The live chat image map works fine in Firefox and Oprea but not in IE7. I believe its the # link. What can I do to the below code …

Member Avatar for arifathar
0
288
Member Avatar for Beemer

Hi all I am learning C++ , but am still pretty new to it I have one problem I am writing a program to simply input a mark and then it gives the corresponding symbol and according to the symbol if its anything above an E it displays you pass …

Member Avatar for Nick Evan
0
92
Member Avatar for OmniX

I have a variable in a variable. I have done this before but it is not working this time. I have it in a for loop so my code is: [code=php] $abc1 = one; $abc2 = two; for($i = 0; $i < 2; $i++) { echo $$abc$i; } [/code] The …

Member Avatar for OmniX
0
127
Member Avatar for web_master

[CODE] #include<stdio.h> int main() { int i ,j ,a[5]; for(i=0;i<=4;i++) { printf("\n\tEnter the %dst value of the array: ", i+1); scanf("%d", &a[i]); } j = a[0]; printf("\n\tOriginal array entered by the user: "); for(i=0;i<=4;i++) { printf(" %d ", a[i]); if(a[i]<a[i+1]) { j = a[i+1]; } } printf("\n\n\tGreatest no. from the …

Member Avatar for varsha0702
0
98
Member Avatar for SonxQ7

Hi all, i'm using Visual Studio 2005 and by mistake enable the arrows which represents tabs and dots with represents spaces when coding... How do i disable this?

Member Avatar for SonxQ7
0
77
Member Avatar for jinx_uk_98

Hi guys, I have this sql statement that is trying to insert data from some fields <?php $con = mysql_connect("xxx","xx","xx"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("xxx", $con); $sql="INSERT INTO guests (guest_name, guest_email) VALUES"; for($i=0;$i<sizeof($_POST);$i++){ $sql.="('".mysql_real_escape_string($_POST[$i])."','".mysql_real_escape_string($_POST[$i])."')"; if(!$i==sizeof($_POST)){ $sql.=","; } } // if (!mysql_query($sql,$con)) { die('Error: ' …

Member Avatar for nav33n
0
91
Member Avatar for sowmyask

I have a c# file from which the data/ value is passed to the xml file . then the xml file is again called along with the updated data. How do I do this?

Member Avatar for ruinedpheonix
0
94
Member Avatar for zls11610

i want to define a dictionary in python script i come from china . start to learn python only a week ago e-mail: [email]zls11610@onestx.com[/email]

Member Avatar for praveen_web
0
4K
Member Avatar for Aamit

Is it possible that server sends one exe to clients and execute that exe on client machines And get information back to server. No manually execution of that exe on client machine It is automatically through server only.... Is it possible through programmatically and HOW...which concept use for this like …

Member Avatar for Nick Evan
0
188
Member Avatar for alannabrittany

Problem Math Input File: MathIn.txt Output File: MathOut.txt Project File: Math Mathematicians on the planet Earth, write math expressions using in-fixed notation. In this notation, math operators are written between the operands they operate on (e.g., 2 + 3). On Mars, math strings are written in post-fixed form. In this …

Member Avatar for javaAddict
0
125
Member Avatar for sanch3za

for example : I have 4 check box with their own variables a,b,c,d How can I create query with condition using what users choose, where users can choose more than one check box thanks for your support

Member Avatar for nav33n
0
81
Member Avatar for s080072

I have to write a program that asks the user to input a positive integer. It should than output a message indicating whether the number is a prime number.

Member Avatar for javaAddict
0
94
Member Avatar for SUBHABRATAIISC

If I write a code like: def addstring(n): a1=raw_input("PRINT THE FIRST STRING:") a2=raw_input("PRINT THE SECOND STRING:") a3=" " a4=a1+a3+a2 print "THE TWO STRINGS YOU PRINTED ARE ADDED AS" print a4 Now, if I design one HTML form where strings can be submitted but if I put one ADD button how …

Member Avatar for SUBHABRATAIISC
0
88
Member Avatar for chsarp_vijay

Hi friends, I have written following program in Csharp windows application. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Threading; namespace Practice4 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void START_Click(object sender, EventArgs e) { Thread …

Member Avatar for macu
0
975
Member Avatar for amass

i want to use Crystal reports to generate my reports. how can i connect to the server. i am using SQL server as my database with vb6

Member Avatar for choudhuryshouvi
0
239
Member Avatar for depash

I have developped a program using vb6 used by a college to store students scores in diferent courses. My problem is that i want to create a button users can use to search for a specific record using the students admission number. I do not have much knowlegde in finding …

Member Avatar for QVeen72
0
80
Member Avatar for Traicey

We have given a project at school, we have to submit ERD next week... the project is as followes..... Software Experts(SE) is a consulting firm that specialises in creating custom software application for clients. When a client approaches SE with a project, the management at SE determine the staffing needs …

Member Avatar for Traicey
0
156
Member Avatar for twelvetwelve

Hi I want to split a variable to check what type of user they are. If they are user type 1 their username will be in the form "LLL" where L is a letter. If they are user type 2 their username will be in the form "LLNNNNN" where L …

Member Avatar for rgviza
0
142
Member Avatar for Teckiwi

This is for an assignment, I'm not asking for answer answers/code to help me out but a point in the right direction would help me greatly. I have approximately 250 lines of data (olypics data) that I want to load into a constructor and then make an array of said …

Member Avatar for Teckiwi
0
115
Member Avatar for priyapratheep

Hello friends In my form I am using two AJAX functions.. Both are working fine... Problem is both are displying in one place..I want to display it in different locations... I used [code=html]<div id="txtHintGrade"></div> <div id="txtHint"></div>[/code] txtHindGrade for first [code=html]document.getElementById("txtHindGrade").innerHTML=xmlHttp.responseText; <span id=\"txtHindGrade\"></span>[/code] and txtHint for the second [code=html]document.getElementById("txtHint").innerHTML=xmlHttp.responseText; <span id=\"txtHint\"></span>[/code] …

Member Avatar for MidiMagic
0
72
Member Avatar for tondeuse34

Is there a function out their in python that you will declare a target i.e. a text box on another open window, and it would print text to that screen? Thanks

Member Avatar for tondeuse34
0
94
Member Avatar for websurfer

Hello, all: I need some help with a dynamically populated dropdown menu... I have managed to dynamically populate the dropdown menu from my item_categories table, and it works fine, EXCEPT once I have entered an item and want to bring it back into the form to UPDATE it, how do …

Member Avatar for ryan_vietnow
0
119
Member Avatar for ChristieLuv

Hi! I'm trying to find a basic PHP code that uses an HTML form to upload an image to a specified directory and after that the image address can be called for displaying the image with PHP or putting it in a textarea box for linking. I know it seems …

Member Avatar for servis
0
103
Member Avatar for alpe gulay

.,'I created a program to put some data in a certain datagrid.. I succesfully made it... but, the point that makes me confuse now is how to get that data in which i will be going to put in my database.,' I get some difficulties on how to do this... …

Member Avatar for Jx_Man
0
82
Member Avatar for nurulshidanoni

I have x and y array...After I have sort y, it succefully sort the y. but for x, there is some number that are not sort like this [B][U]x y[/U][/B]30 1 45 1 46 1 15 1 I want the x sorting also...like this [B][U]x y[/U][/B]30 1 15 1 30 …

Member Avatar for VernonDozier
0
120
Member Avatar for froboi

So i've been attempting to program a home bar tending program that takes materials that you have in your home and compiles a list of drinks that you can possibly make. The problem I'm having is that i have no clue how to make the search function and the compiling …

Member Avatar for jrcagle
0
179
Member Avatar for evios

Erm, how can i actualli detect certain word in a string so that i can accordingly insert them to the separate table in the database? For example: xxxxxxxAxxxxx,xxxxx,xxxxx,xxxxxx,xxxxxx xxxxxxxBxxxxx,xxxxx,xxxxx,xxxxxx,xxxxxx ........ xxxxxxAxxxxxx for table A xxxxxxxBxxxxxx for table B? thanks

Member Avatar for sierrainfo
0
163
Member Avatar for Alishaikh

When I run the follwing code: [code] #include <iostream.h> #include <string.h> #include <vector.h> #include <fstream.h> using std::string; using std::vector; void exchange(vector <int> &array,vector<string>&array1); void main() { ifstream fin,f2,f3,f4; //First name input vector <string> fname(25); fin.open("firstname.dat", ios :: in); for( int i= 0;i<25;i++) fin>>fname[i]; fin.close(); //Second name input vector <int> fnum(25); …

Member Avatar for bugmenot
0
106
Member Avatar for shadowfire36

ok i have wrote this program and been trying to break into a class called football , but i keep getting an: error error C2228: left of '.Season' must have class/struct/union i have tried moving my stuct around in and out of the class but im not sure how to …

Member Avatar for shadowfire36
0
111
Member Avatar for Maxil

Amateur c++ student here who has gotten to the point where I'm comfortable with classes somewhat, however I'm a bit obsessive compulsive. I've been learning by just continually adding to a program, however it's all in my main.cpp. I use visual studio 2005, and would like to take certain classes …

Member Avatar for hacker9801
0
148
Member Avatar for kbrown123

I am reading records from a linked server table, and trying to use the output in the next update statement, not on the linked server. I am assigning it to a declared variable. The file is being updated with NULL, instead of the correct check number. Any help??? Example code: …

Member Avatar for kbrown123
0
100
Member Avatar for twgood

I am wodering if i answered these correctly or not? Algorithm Verification Consider the following selection statement where X is an integer test score between 0 and 100. input X if (0 <= X and X < 49) output "you fail" else if (50 <= X and X < 70) …

Member Avatar for jephthah
0
204
Member Avatar for hellotreasure

I'm looking for a javadoc script that would automatically generate a javadoc website and update the SVN with it, but I can't find one anywhere, so does anyone know where I can get one? A simple script that runs javadoc would do just as well, because from what I understand, …

Member Avatar for hellotreasure
0
81
Member Avatar for Relegant

[COLOR="Green"]This case, [/COLOR] [CODE]case 18302: if (playerLevel[19] <= 1) { guard(); addSkillXP(19, 50); isNpc = true; updateRequired = true; appearanceUpdateRequired = true; else if (playerLevel[19] >= 1) { sendMessage("You need a shapeshifting level of 1 to do this."); } break;[/CODE] [COLOR="Green"]I made it by myself, and it gives 100 errors, …

Member Avatar for VernonDozier
0
95
Member Avatar for Jennifer84

I am replacing 2 words in a textBox with this code. What happens is that the code scans the textBox and finds 2 words: "one" and "onefour". These two words [B]should [/B]be replaced with: [B]onefour[Calculate][Calculate2] one[Calculate][Calculate2][/B] But instead the replacement will look like below. I know why it happens because …

Member Avatar for Jennifer84
0
108
Member Avatar for BigEnglisHoward

I am very much a part time user of C++ to solve particular problems and therefore a bit of a greenhorn - I am having some issues with where files are stored. When I first start up my application the path appears to be the directory where the .exe is …

Member Avatar for BigEnglisHoward
0
94
Member Avatar for mertucci

function is x/y+z means (x/y)+z if you dont write to Z anything program says "ERROR: Operator-operand imbalance." program is that as it is above and my code is [ICODE]#include <iostream> using namespace std; class Calculator { int x,y,z; public: void arith_ex(int,int,int); }; void Calculator::arith_ex(int x,int y,int z) { cout<<"X="<<endl; cin>>x; …

Member Avatar for mertucci
0
124
Member Avatar for callie_360

Hi! :) I want to read each line in my file, and determine if each occuring page tag is included in the validPages array...I've gotten everything except when I retrieve a line with a page tag (readLines()), I can't use that line as a string to compare with my array...even …

Member Avatar for woooee
0
125
Member Avatar for kv79

Hi all I am using Dev-C++ . I want , when I press Tab to skip a 3 blank places instead 6 . Thank you for your effort of reading .

Member Avatar for kv79
0
99
Member Avatar for emilio

i'm trying to get random numbers in a loop like this [CODE=syntax]#include <stdio.h> #include <time.h> int getRand ( int a , int b ) { return a+rand()%(b-a+1); } int main() { srand ( time( NULL ) ) ; int i; for(i=0 ; i<6 ; i++) printf("%d\n",getRand(0,9)); return 0; }[/CODE] the …

Member Avatar for emilio
0
118
Member Avatar for peter_budo

I have some webspace that I used so far for university assegnments. I would like to to convert it to blog website where I will place some rants, codes and some maybe for somebody interesting info that I find along the research path of my MSc project. Website will be …

Member Avatar for jwenting
0
83
Member Avatar for 26933

Hi,everybody I am a beginner in c++;Could you please tell me how to change an iteration program to a recursive one and vice versa?It will be greatly appreciated if you could show me with the help of a few examples(programs).

Member Avatar for Salem
0
157
Member Avatar for Azurea

I've got an issue with lists right now. I've got 2 lists, Checker1 and Checker2, which check for the Ko rule in my game of Go. However, Checker2 should always be checking the board one turn behind Checker1, which checks the board every turn. That way, the Ko rule can …

Member Avatar for Azurea
0
93
Member Avatar for Scottmandoo

ok lets make this a little simpler than my last topic. I found this [URL="http://wiki.dreamhost.com/index.php/PHP.ini"]site[/URL] which everyone who follows it seems to be getting results from, though it says "You are expected to be knowledgeable in the UNIX shell." which i have got no idea what that even is. I …

Member Avatar for rgviza
0
102
Member Avatar for Alistair1

Ok well apart from a little inconvenience, my program runs almost flawlessly given the guidelines of the assignment. I'll tell my problem first and right after paste my code: When you type in the sentence to be analyzed, only the punctuation mark at the very end doesn't get counted towards …

Member Avatar for Alistair1
0
109
Member Avatar for R4zrF1r3

[CODE=c++] #include <iostream> using namespace std; //----------------------------------------------------------------------------- void UserMove(int &NumStones) /* Pre: NumStones > 0 Post: User has taken 1, 2, or 3 stones from pile */ { cout << "How many would you like? "; int TakeStones; cin >> TakeStones; while (TakeStones<1 || TakeStones>3 || TakeStones>NumStones) { cout << …

Member Avatar for VernonDozier
0
119
Member Avatar for som3on3

can anyone help me convert this to c++?? <?php function show_me($info) { $arr = array('fruit' => 'apple', 'car' => 'bmw'); return $arr[$info]; } echo show_me('fruit'); //or echo show_me('car') ?>

Member Avatar for som3on3
0
116
Member Avatar for kitsune

Hello, Is there any simple way to add a bar chart in jsp, I have a question and answers tables for a survey and I want to show the result for it like this: QuestionText.............................Result aaaaaaaaaaa............................Yes 70% ------------ ...............................................No 30% ----- Can anyone Help Me....

Member Avatar for jwenting
0
98

The End.