199,114 Archived Topics
Remove Filter ![]() | |
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), … | |
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 … | |
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 … | |
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 … | |
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 … | |
[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 … | |
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? | |
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: ' … | |
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? | |
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] | |
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 … | |
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 … | |
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 | |
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. | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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] … | |
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 | |
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 … | |
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 … | |
.,'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... … | |
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 … | |
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 … | |
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 | |
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); … | |
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 … | |
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 … | |
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: … | |
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) … | |
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, … | |
[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, … | |
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 … | |
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 … | |
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; … | |
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 … | |
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 . | |
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 … | |
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 … | |
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). | |
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 … | |
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 … | |
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 … | |
[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 << … | |
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') ?> | |
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.... |
The End.