199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for rob211

Hi @all! I have a array with three numbers: num[0] = 5 num[1] = 2 num[2] = 5 I need to find out which of these numbers are the largest ones, it could be one, two or all of them, and need the index. Here for example "0 and 2". …

Member Avatar for rob211
0
181
Member Avatar for hey.howdy

Hi Can anyone please help me understand and so possibly illustrate with an example why and how a function cant return or evaluate more than one value ?

Member Avatar for zeroliken
0
98
Member Avatar for whitech

I have to write a code.The program compute random sentences by using singly linked list date structure.The same word cannot be used more than once. I've already written the some codes which takes the list. [CODE]// random_sentence_operator.cpp : Defines the entry point for the console application. // #include <stdio.h> #include …

Member Avatar for harinath_2007
0
116
Member Avatar for ilovephil

how can i use reverse polish notation in link list using stack i need to reverse the numbers>_< #include<stdio.h> #include<stdlib.h> #define p printf #define s scanf struct node { int data; struct node *link; };typedef struct node *nodepointer; void push(nodepointer &top,int num) { nodepointer newnode; newnode=(nodepointer)malloc(sizeof(struct node)); newnode->data=num; newnode->link=top; top=newnode; …

Member Avatar for BobS0327
0
254
Member Avatar for shujat132

I thinking about a project to build up a web based application. I am not able to understand what should be structure of the database. [B][COLOR="Red"]Problem:-[/COLOR][/B] Data is in bulk which is of a big general store, and they have 50,000 transaction minimum each day. They store all data and …

Member Avatar for shujat132
0
137
Member Avatar for Denden17

Heres what i want to do. I want to check the two fields in my table | I use Ms Access the fields are EmployeeID | StartingDayWork Sql = "Select * from Employees where EmployeeId = '" & txtID.text & "'" 'This is running but whenever i add StartingDayWork it …

Member Avatar for Mitja Bonca
0
127
Member Avatar for xyxtss

I am new to programming. My code are listed below. [CODE]public abstract class Mark { private double mark; public double getMark() { return Mark; } public void setMark(double mark) { this.mark = mark; } public abstract void calculateMark(double x, double y, double z); }[/CODE] [CODE]public class Test extends Mark { …

Member Avatar for stultuske
0
137
Member Avatar for firoz.raj

Can anyone tell me how should i delete listview checked data using delete button. right now i got error object variable or with block variable not set. [code] Private Sub Command3_Click() Dim rs As ADODB.Recordset Set rs = New ADODB.Recordset Dim x As Integer For x = ListView1.ListItems.Count To 1 …

Member Avatar for MH Moni
0
259
Member Avatar for aianne

Hi everyone! I am sorry I'm new to PHP and MySQL. So, I am creating a form for user to update their details and compute student's grade but the updating part doesn't work. Here is code: [B]COMPUTE.PHP[/B] [CODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Compute Grade</title> </head> <body> …

Member Avatar for aianne
0
324
Member Avatar for skp03

i wrote a code to search a file in the external devices like external hard disk read the code line by line so u can understand properly [CODE] private static void SearchForFiles(string path, string pattern, List<string> SearchResults) { foreach (string file in Directory.GetFiles(path, pattern)) { SearchResults.Add(file); } foreach (string dir …

Member Avatar for Mitja Bonca
0
225
Member Avatar for gogs85
Member Avatar for skatamatic
0
170
Member Avatar for jacksantho

Hi, Am having, some doubt, please clarify this? [CODE] 1. Using Import/Export wizard, can i able to import the excel data into the temporary table ? How ?[/CODE] 2. The following TSQL is working fine. Can i able to do this, from the CLIENT Machine itself. I don't want to …

Member Avatar for adam_k
0
693
Member Avatar for brightline

Dear All, I had developed a desktop application that searches word files contents in a folder for a specific word(s) .It's working fine, but it's slow. I want to apply indexing(or any other technique) to speed up the performance of my application ... I want to know how to apply …

Member Avatar for skatamatic
0
107
Member Avatar for mani508

my project is web discussion forum. profile management is one module of my project . i want to find user location using google map how it possible..?

Member Avatar for mani508
0
91
Member Avatar for BanksyHF

Okay, first off, this is not a thread for an answer like "Use delegates", or the like. I know how to use them, but one time I forgot to use them, and when going over my code, it worked, and I've been wondering why for a while. http://screensnapr.com/e/xx68FK.jp[/img] The image …

Member Avatar for skatamatic
0
205
Member Avatar for Oriden

I have been doing a lot of reading and digging and not able to put together a away to do this. Here is my problem. I am building a quiz program in C. I want it to pick at random from a list of questions and compare your answer to …

Member Avatar for zeroliken
0
153
Member Avatar for coroll

Hi all, Im new to java. I get this error. Non-static variable this cannot be referenced from a static context myClass c=new myClass() ^ this is my code [CODE] public class MyOwnBm{ private Hashtable myHash=new Hashtable(); public static void main(String[] args) { myClass c=new myClass(); c.match(); } public class myClass{....} …

Member Avatar for JamesCherrill
0
491
Member Avatar for tendaimare

I am trying to save my scale configurations in the database so first I have to check if it exists in the database.and I am using the code below to do that . however when there is no data in the database I will get an error "No row at …

Member Avatar for aksay
0
187
Member Avatar for alapeh

hello. currently i am doing a project and i am stuck with this compile error, can any1 help me with this? is there any cure for this compile error ? [URL="http://a2.sphotos.ak.fbcdn.net/hphotos-ak-snc7/304749_10150467265314408_808639407_11280088_80875314_n.jpg"]http://a2.sphotos.ak.fbcdn.net/hphotos-ak-snc7/304749_10150467265314408_808639407_11280088_80875314_n.jpg[/URL] thanks :)

Member Avatar for alapeh
0
123
Member Avatar for dilse4sk

Hi every one i am having some problem in deleting customer Record. I have also uploading the screen shot of my form. i have customer records in textboxes and booking records in datagridview . i have solved the problem to delete the records in gridview but i want a button …

Member Avatar for Mitja Bonca
0
171
Member Avatar for adityamadhira

$date =date("m-d-Y"); $selected =$_REQUEST['sel_day'];// Selected date $today = strtotime($date); $expiration_date = strtotime($selected); if ($expiration_date > $today) { echo $valid = "yes"; } else { echo $valid = "no"; } not working? please help

Member Avatar for almostbob
0
132
Member Avatar for ilovephil

Any idea how to make restrictions in link list. im still confuse what will i need to make restrictions?? i know the isdigit isalpha etc. for example i can only enter DIGIT,

Member Avatar for ilovephil
0
282
Member Avatar for dlouhi

Hello I appreciate all the help i can get on this ,i am running a javabean on my application server inside the network ,this java gets requests from the apache web server on the DMZ ,my firewall admin has rules for my users to connect using defined ports numbers ,my …

Member Avatar for sirisha05
0
634
Member Avatar for NOVICE3

public void ByteData_TextChanged(object sender, EventArgs e) { DataString.Append(ByteData.Text); //here I do some logic on the character just received } I am using a single textbox (ByteData) to input some ASCII characters. The character strings vary from one character to about five. I would like to terminate the data entry with …

Member Avatar for Mitja Bonca
0
2K
Member Avatar for bleedi

Hey guys! I've got a small problem that I can't figure out. I have 2D arrays of arbitrary sizes, and they contain different characters representing different stuff (like 'a', 'b', 'c' etc.). Now, the problem is, I need to find horizontal and vertical lines of same characters and make new …

Member Avatar for bleedi
0
377
Member Avatar for coreyhughes

I have a question for a homework assignment. This is C, not C++ (sorry! i didn't know where else to go). I have 2 character arrays, declared as char s1[100] and s2[100] in my main function. The part of this assignment I am having trouble with is the readString function. …

Member Avatar for coreyhughes
0
130
Member Avatar for JerieLsky

I encounter an error message when I click on my submit button. The error is: [QUOTE]Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\Duplicate of Edited Site\question.php on line 17[/QUOTE] Line 17 contains the …

Member Avatar for rafaelcarioca7
0
287
Member Avatar for ilovephil

im still confuse in RPN will i use insert at bottom of stack or front and then reverse it? cause my project say's that insert at the bottom of the stack..somebody help me pls

Member Avatar for BobS0327
0
105
Member Avatar for hey.howdy

[CODE] #include<iostream> using namespace std; void comparison(char arr2[], char arr3[],int& i,int j) { int abc=1; for(j=0;j<5;j++) { if((arr2[j]==arr3[j])||(arr2[0]!=arr3[0])) { j++; } i=i+1; j=5; } } int main() { char arr[5]={'a','b','c','d','e'}; char arr1[5]={'a','b','c','d','e'}; int refr=0, iteratorr=0; comparison(arr,arr1,refr,iteratorr); for(iteratorr=0;(iteratorr<5&&refr==1) ;iteratorr++) { cout<<arr1[iteratorr]<<endl; } return 0; } [/CODE] //Can anyone help me figure …

Member Avatar for hey.howdy
0
155
Member Avatar for jonajonlee

I've been racking my brain on this for hours. The goal of the program is to estimate the value of pi using three different formulas. My arithmetic is fine, I've tested it, and if it is wrong, I can correct that easy. The problem is that my if statements don't …

Member Avatar for jonajonlee
0
164
Member Avatar for ilovephil

i need that every user input is character it will ask again to enter number until the user's input is correct.my program does not seems to apply the proper condition any help guys? #include<stdio.h> #include<stdlib.h> #define p printf #define s scanf #include<ctype.h> struct node { int data; struct node *link; …

Member Avatar for zeroliken
0
127
Member Avatar for lastgame2007

Hi i'am try to insert multiple data on a single submit, but i'm a total noob to Arrays, can any one help me out here... one of the members send me this out, but still i can figure it out how to insert the fields onto my database. it inserts …

Member Avatar for lastgame2007
0
133
Member Avatar for Detkimble

When i try running this code i get an error 'Floating Point Exception'. I dont know why this is happening. [CODE]#include <stdio.h> #include <stdlib.h> #include <time.h> #include <pthread.h> long long int number_of_tosses, number_of_threads, number_in_circle = 0; pthread_mutex_t mutex; void *mc(void* rank) { double x, y, distance_squared, pi_estimate; int toss; long …

Member Avatar for Detkimble
0
165
Member Avatar for zu007

i'm new in C++ programming 1 problem comes in fuction .it's result is correct but it return the value 0 also,if i'm not use return 0; in functionin it print any value plz check this .and correct.thanx[code] #include<conio.h> #include<iostream.h> #include<iomanip.h> int mul1(int x[][3],int y[][3]) { int i,j,k,sum,z[3][3]; for(i=0;i< 3;i++) { …

Member Avatar for zeroliken
0
94
Member Avatar for momonq1990

error msg: Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'mon'@'localhost' (using password: YES) in C:\xampp\htdocs\project\include\connection.php on line 7 Could not Connect ///my connection.php code <?php define("contype","localhost"); define("user","mon"); define("passwd","affinity"); define("db","project"); $con=mysql_connect(contype,user,passwd) or die('Could not Connect'); $dbcon=mysql_select_db(db); ?> //here's my scenario. i add new USER to my mysql in phpmyadmin and its …

Member Avatar for momonq1990
0
180
Member Avatar for alapeh

hello guys, can any1 help with this error? i searh through all the website and i still cannot find a cure to it. i have a picture and this is a form_load of it [CODE]Private Sub Form_Load() Picture1.FillColor = Form1.BackColor Picture1.FillStyle = 0 prevX = 0 End Sub[/CODE] and a …

Member Avatar for Jx_Man
0
767
Member Avatar for C0ding

Hi everyone, I would like to merge few text documents into one, For example, i have 12 text documents in a folder, then needed to merge their text into one. 12 = 1. any help will be very appreciate, thanks in advance. if is not much to ask, if i …

Member Avatar for C0ding
0
1K
Member Avatar for ychan623

Hi all, I'm working on a webpage with 2 dropdown menu and a submit button. both the dropdown menu has a default value="" selected. I am trying to figure out a way to filter mysql query. Here is the drop down menu <form action="showJobs.php" method="post"> <select name="Locations"> <option value="" selected="selected">All …

Member Avatar for LethargicCoder
0
1K
Member Avatar for mags11

I'm getting error messages when I run my program. The problem is as follows: Design a Payroll class that has fields for an employee's name, ID number, hourly pay rate, and number of hours worked. Write the appropriate accessor and mutator methods and a constructor that accepts the employee's name …

Member Avatar for NormR1
0
3K
Member Avatar for cahitburak

Hi all. I am trying to build a Binary Linked Trie but fail in basic pointer operations.Following code can be built but in debug or run mode, it breaks and outputs the error. [ICODE]typedef struct node { char ch; node *next; }; struct node *root = NULL; void add(struct node …

Member Avatar for cahitburak
0
967
Member Avatar for Farhan_B

ok what i am trying to do is i have two textboxs which have figues in them and need the 3rd textbox to display the figure the code i am using doesnt seem to be doing anything could anyone spot it and tell me why it is not working for …

Member Avatar for Farhan_B
0
237
Member Avatar for minimee120

Hi all, my Professor has asked us to solve this problem, which is a Midterm Practice problem for our up and coming Midterm exam, which is on Monday. I am wondering if I'm doing this the correct way or not. [B][U]Here is this question the problem asks:[/U][/B] Problem 19 Random …

Member Avatar for M.S.
0
158
Member Avatar for sukhy_1

hello i was trying 2create crystal reports but they dont work for some silly reason is there any other way reports can be created?? any ideas linking vb.net 2 access 2run reports

Member Avatar for dilse4sk
0
810
Member Avatar for angelineang

what is the problem actually in my code?when debug ,it will crash or come out same data. [CODE]#include <stdio.h> #include <stdlib.h> #include <time.h> int main(void) { int col; int rand_question[3]; int confirm_question[3]; int i; int score=0; char choice; int max_question, total_question; max_question = 3; total_question = 3; srand(time(NULL)); /for(col=0 ; …

Member Avatar for WaltP
0
148
Member Avatar for a_sd

Hi! :) I want to print all different elements of sorting array. input: 10 10 5 4 output: 10 5 4 :-/ Thank you!

Member Avatar for WaltP
0
139
Member Avatar for alexgv14

I am trying to create a form that exports my mysql database , and can also reimport the mysql database using like a form. I am trying to do this in PHP any ideas on how it can be done or if it''s already been done? I know there is …

Member Avatar for vincentwansink
0
181
Member Avatar for greatman05

Hello. First, here is my code: [CODE] class BankAccount { private: int accountNum; double balance; public: bool setAccountNum(int num); int getAccountNum() const; double getBalance() const; void depositMoney(double money); bool withdrawMoney(double money); void displayAccount() const; BankAccount(); }; class SavingsAccount: public BankAccount { private: int accountNum; double sBalance, rate; public: void setInterest(double …

Member Avatar for ravenous
0
216
Member Avatar for jps447

Hi, I'm planning to create a login window where I can enter a username and password in visual basic 6. In this window, there are also options to create and change password. Can you help on how to do this? And also, how will the passwords be protected from other …

Member Avatar for billyakaeaster
0
2K
Member Avatar for Raisefamous

Hi, I need to sort a string of symbols and numbers in to two different strings, first one with numbers, second with symbols. I have written the following code, but it only passes the first type into its string and gives random characters for the second type. Example: if i …

Member Avatar for Raisefamous
0
109
Member Avatar for kalcio

hi, I have a problem with my JTable it displays the same line at all lignes,my code consists to use a command that will be run in background (using the command exec.getRuntime ()), and this will return multiple rows for that, I used a variable "i" to initialize lines and …

Member Avatar for mKorbel
0
163

The End.