132,728 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for xshashiy

hi i want to generate non repeated random numbers many times. for that i m using the following code. [code]#include "sys/types.h" #include "stdio.h" #define MAX 200 #define N 20 main() { int array[N],r; int n = 0; int count_check,count_gen ,i,j; for(j=0;j<10;j++,printf("\n")) { srand(j); for (count_gen=0;count_gen<=MAX;count_gen++) { r = rand()%N; for …

Software Development c
Member Avatar for slygoth
0
225
Member Avatar for alex55

i have this function that should compare values and return a string based on input from the main function. However it returns no value at all does anyone see and issue with it? have checked all the input it is getting the correct values highestMontName and averagedMonth are declared globally …

Software Development c++
Member Avatar for alex55
0
124
Member Avatar for ronthedon

How do i get the loop to go back and prompt using for a valid number? #include<iostream> #include<conio.h> #include<iomanip> #include<string> using namespace std; int main () { string firstName; string lastName; int score1, score2, score3, score4, score5; float totalpoints; cout<<fixed<<showpoint<<setprecision(2); cout<<"Please enter the student first and last name: "; cin>>firstName>>lastName; …

Software Development c++
Member Avatar for ntrncx
0
137
Member Avatar for JeremyK2

I have a class that stores all of my variables and functions (for our purposes, DataClass), and a few different windows form classes that use the public variables and functions in DataClass. I need to keep the values of the public variables in DataClass until the program closes. I set …

Software Development c++ html-css oop
Member Avatar for rxlim
0
207
Member Avatar for gungrayve

I created an app that reads two columns from excel file and search for each file in column A. if file is found then it is renamed to what column b says and moved to a separate folder. This part of the code that i am having issue, please help!!! …

Software Development
Member Avatar for Rynkadink
0
171
Member Avatar for ajinkya112

How do i create two tables in a database at same time from a windows form.?? how do i give them same name??

Software Development
Member Avatar for Rynkadink
0
142
Member Avatar for Mr. K

What is wrong with my code? My fps time is not working.I found two errors in my code. Error 1 error C3861: 'install_timer_ex': identifier not found. Error 2 error C3861: 'textmode': identifier not found. [CODE]#include <allegro.h> BITMAP* buffer = create_bitmap(480,480); volatile int fps = 0; volatile int avg_fps = 0; …

Software Development c++
Member Avatar for rxlim
0
211
Member Avatar for TIP.Synergy

I am using update query statment but is not working for this code [CODE]Dim myConn As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source= Provider=Microsoft.Jet.OLEDB.4.0;Data Source=../lms/DBLMS.mdb") Dim item As Integer myConn.Open() myComm = New OleDbCommand("UPDATE tblVehicles SET Vehicle_Type = " & cboVehicle_Type.Text & ", Vehicle_Model = " & txtVehicle_Model.Text & ", Plate_No = " & …

Software Development open-source vb.net
Member Avatar for DONPAWPAW
0
5K
Member Avatar for ayushi12

heyy..plz suggest me new C#.net project topics other than managemant systems..

Software Development c c# c++
Member Avatar for ddanbe
0
97
Member Avatar for abcdef1

Hi, I have below code : [code]my($abc) = "fred<hello>3hello"; $abc =~ /^[^\d]{2,4}<([^>]+)>\d?\1$/; if (defined($1)) { print "$1\n"; } else { print "not found\n"; } }[/code] What is the code doing ?? what function of the regular expression [code]$abc =~ /^[^\d]{2,4}<([^>]+)>\d?\1$/;[/code] Please advice what it do ??

Software Development perl
Member Avatar for masijade
0
162
Member Avatar for radhikakumaran

Hello all, I hv jst recently started using C# and i need to read some Xml documents using C#. I hv a Xml document as , [CODE] <?xml version="1.0" encoding="utf-16"?> <add>< fnum>12</fnum> <snum>12</snum> </add> [/CODE] Now, i need to independently get the values of the elements fnum and snum and …

Software Development c# xml
Member Avatar for bhagawatshinde
0
194
Member Avatar for Shodow

when i try to add a record [CODE]Private Sub cmdDone_Click() Dim Rs As New ADODB.Recordset Set Rs = New ADODB.Recordset Call ServerConnect Rs.Open "SELECT * FROM list1", conn, adOpenStatic, adLockOptimistic Rs.AddNew Rs!CustomerName = txtName.Text Rs!ContactNumber = txtContact.Text Rs!Date = dt.Value Rs!TimeStart = cmbStart.Text Rs!TimeEnd = cmbEnd.Text Rs!Event = cmbEvent.Text Rs!Guest …

Software Development mysql visual-basic
Member Avatar for AndreRet
0
198
Member Avatar for fugmag

Hi, I have set up pydev in eclipse from the download site, but when I try to add a new pydev project I get the following error i the new-project wizard: [CODE] .project found in C:\workspace(use import project) [/CODE] But I have no project called that in my workspace. I …

Software Development python
Member Avatar for fugmag
0
72
Member Avatar for azzu khan

when i select option button of fastfood it retrieve the data in two listbox from database. i m using 4 list box one(check style list box) is for food item another(simple list box) is for cost. when i selects(checked) any fooditem then a inputbox will occur for entry of food …

Software Development open-source visual-basic
Member Avatar for AndreRet
0
196
Member Avatar for nallasivam25

**i'm having the problem of capturing all the coordinate value of pixels while dragging with the mouse using mousedragged event in java** while i'm dragging slowly i'm able to get all the coordinate value of pixels but when i'm doing it fast i'm getting only one third of the pixel …

Software Development java java-swing
Member Avatar for JamesCherrill
0
347
Member Avatar for abhi10kumar

Delete selected record on Button click. I am using MS Access as a Database in C#. How it can be done ??

Software Development c# gui vb.net
Member Avatar for jay.gadhavi
0
181
Member Avatar for Beat_Slayer

Simple script for image transparency. Someone asked one some time ago, and i had other but for a different system, and decided to write a Python/PIL version. The value of the color used as transparent is the value of the pixel at position (0, 0). You can adjust tolerance value. …

Software Development image python tkinter
Member Avatar for gleam.uahmed
0
1K
Member Avatar for Shodow
Member Avatar for AndreRet
0
2K
Member Avatar for elsiekins

Hello, I have a program that uses getchar() and slightly confused and tried googling and it made it worse [ICODE] cout << ">What is the expected letter <<"\n>"; expectedLetter = getchar(); putchar(expectedLetterl); string exletter = expectedleter + post; cout <<">Do you wish to enter another letter (Y/y)/(N/n)\n>"; repeatIn = getchar(); …

Software Development c++
Member Avatar for elsiekins
0
162
Member Avatar for sj5536

hi, i created project in java using eclipseIDE now the project is completed i have to create executable of that project that means i have to install that project on client side how should i do thanx

Software Development java
Member Avatar for stultuske
0
98
Member Avatar for AnGeL_69

im wondering if any1 can send me the function that evaluates the value of a postfix expression in c++<<using stacks>>... i really need it as soon as possible.. :sad:

Software Development c++
Member Avatar for khanmj89
0
251
Member Avatar for Shodow

can u give me a module code for connection i am using mysql table: list1 database: database1 username: root password: N/A

Software Development visual-basic
Member Avatar for AndreRet
0
228
Member Avatar for Ra1sed

Hi, i want some help on my VB game (school project). My vb is 6.0 and i want do match image. i want do 6 random pictures, if you can help me, tanks

Software Development gaming image visual-basic
Member Avatar for AndreRet
0
807
Member Avatar for Roldy

Is it possible to change the event of a button click within different subs? For example, have the button take me to the main menu in one sub, but in another sub have the same button take me somewhere else.

Software Development gui visual-basic
Member Avatar for AndreRet
0
206
Member Avatar for prafullaD

can any help me in vb code. i want to make an image processing software having functions of edge detection, increasing and reducing brightness and contrast value and adding noise in an image. if any one have to code please send to me...........bye have a nice time

Software Development image visual-basic
Member Avatar for AndreRet
0
170
Member Avatar for twsmale

I'm using VBA to query and modify an Excel database. The database contains information about servers and their locations. Most of the rack mount servers have the location column as something like "G-05". Those are easy. When it comes to the blade servers, the locations are listed as "G-05E2S09" or …

Software Development microsoft-office visual-basic
Member Avatar for AndreRet
0
169
Member Avatar for jaymo'o

hi everybody. Im very well a beginner and I cant quiet grasp classes. I found that this topic is all over forums and I have decided to give it a whirl and I am stuck. Would anybody out there help?

Software Development c++
Member Avatar for rxlim
0
149
Member Avatar for threwup

I am having trouble with the "for loop" of a 32 bit Adder program. I am suppose to take 2 arrays of 32 bits and sum them together. The 2 errors I get are on line 37 and 38 called "called object is not in function". I don't know how …

Software Development c
Member Avatar for griswolf
0
118
Member Avatar for rkmeena

Hi............ How can i pass and access the array variable in Stored Procedures

Software Development sql vb.net
Member Avatar for bLuEmEzzy
0
77
Member Avatar for arthurav

The subject of my bachelour thesis is "Solving linear programming problems using parallel algorithms". I will create a library for solving different kinds of problems (simplex, branch and bound and so on). I want to use OpenMP or PThreads locally and OpenMPI in the network. Which one would you recommend …

Software Development c++
Member Avatar for arthurav
0
129
Member Avatar for mroberts50

I am using Visual Basic Express. Here is my code but my number is always a whole number when I divide I want it to be two decimal places. For example 367/12 should equal 30.42 not just 30. I do not understand what I am doing wrong? Private Sub btnIntegerDivide_Click(ByVal …

Software Development vb.net visual-basic
Member Avatar for bLuEmEzzy
0
243
Member Avatar for frank33

Is it possible that when a user clicks, the fact that she may have clicked on two overlappping labels, for instance, be responded to ? In other words could the Sub for a click on Label1 check that Label2 has actually been clicked simultaneously ? Thanks.

Software Development vb.net
Member Avatar for Pgmer
0
108
Member Avatar for jkoske
Member Avatar for Red Goose
0
85
Member Avatar for Diamonddrake

I have an object that i use in a generic list, i need to expose a property in that object that will return the index position of the object in the list plus one. example Items in list myobject1 myobject2 myobject3 myobject2.indexValue would equal 1 any idea how I can …

Software Development
Member Avatar for Diamonddrake
0
162
Member Avatar for AngelicOne

I'm planning to use a tabcontrol instead of making different forms to separate the three datagridview. Will it affect the performance? What if each tab page, which is three, contains datagridview that queries 200 records each? Will the application handle all 600 records at once?

Software Development
Member Avatar for Momerath
0
231
Member Avatar for amir malik

what is the use of INADDR_ANY in socket programming?

Software Development c socket-programming
Member Avatar for amir malik
0
73
Member Avatar for rkmeena

Hi................. How can i convert the Label to TextBox in VB.Net at runtime...

Software Development vb.net
Member Avatar for bLuEmEzzy
0
127
Member Avatar for boshu

Hi all, Once again I would like to seek your help. I got one file (test.hrh) with a number of flags. Some falgs are defined (#define), some not (#undef). I got another file which a flag list which should be added to the file if not there, and if exists …

Software Development file-system perl
Member Avatar for k_manimuthu
0
1K
Member Avatar for altXerror

i'm trying to make a password system for my program. a user will input upto 20 chars, and if the password is correct, load the main program and if not, loop until the user gives up or enters the correct answer. here is the code [CODE] void Password(char pass); int …

Software Development c++
Member Avatar for pseudorandom21
0
190
Member Avatar for kangkan_14

How to read only integers from a file in java? Suppose the file has something like this: (14,2,3),(2,3,4) (2,6,78) Now I want to read only the integers not the brackets and commas.How do I do it?

Software Development java
Member Avatar for ztini
0
3K
Member Avatar for Darren76

[LIST=1] [*]import java.util.Scanner; [*]public class retailPrice { [*]public static void main (String[]args) { [*]Scanner input = new Scanner(System.in); [*]double wholesale, markup, retail=0; [*]System.out.println("Enter the wholesale price! "); [*]wholesale = input.nextDouble(); [*] [*]System.out.println("Enter the markup percentage! "); [*]markup = input.nextDouble(); [*] [*]calculateRetail(wholesale, markup, retail); [*]System.out.printf("The retail price of the item is …

Software Development java
Member Avatar for ztini
0
161
Member Avatar for bLuEmEzzy

i want to get the row(s) when the checkbox is check/uncheck in the listview.. thank u... [ICODE] For Each Item In CheckedItems If (Item.SubItems(4).Text) = "Cash" Then 'Code Here ElseIf (Item.SubItems(4).Text) = "Check" Then 'Code Here End If Next If (e.CurrentValue = CheckState.Checked) Then If LstvwBankDeposits.Items(0).SubItems(4).Text = "Cash" Then 'Code …

Software Development listview vb.net
Member Avatar for codeorder
0
3K
Member Avatar for robbio87

Hi, I've recently started learning java in college. Hoping someone can throw me a bone. I was give an assignment to make a method to reverse a sentence. I can only use loops, if statements and other methods(no arrays). For example "Hello there how are you" would be output as …

Software Development java
Member Avatar for ztini
0
219
Member Avatar for pseudorandom21

It may have only been Visual C++ 6.0 or something, but I think I remember needing to add curly braces after a switch's case label to declare variables, is this still true with VS2010 and C++? ex: [code] switch( 1 ) { case 1: { int a; //<-- ok } …

Software Development c++
Member Avatar for Saith
0
79
Member Avatar for TRCSR

I have a program for data acquisition and process control. I use TeeChart for real time plotting of data. I also have a legend window on top of the chart. I can print or save to disk the TeeChart, but would prefer to print/save the entire screen including the legend …

Software Development delphi pascal
Member Avatar for dlhale
0
233
Member Avatar for kxpatel29

Requirement 1) Modify the code to find and print sum of the same series from 1/2 through 1/n multiple times, where each n is read from data file. Requires nested loop with the inner loop summing up series and outer loop allow inner code to repeat once for each n …

Software Development java
Member Avatar for kxpatel29
0
181
Member Avatar for lochnessmonster

Im currently wanting to open a file on my Hard Drive, and be able to scan it's contents to see if it has any bytes that match a specific pattern of bytes which i have stored in a byte array. Im curious as to how i can do this? will …

Software Development api c++ hard-drive
Member Avatar for lochnessmonster
0
215
Member Avatar for agent7

hi guys, how can i insert image in a doc file ?? using java... is fileoutputstream can write image? thankz...

Software Development image java
Member Avatar for agent7
0
78
Member Avatar for rosstafarian

Hi guys - whenever i run this code i get " SYNTAX ERROR (MISSING OPERATOR) IN QUERY EXPRESSION" - ive checked everywhere and cant find a solution can anybody spot any errors here? [CODE] Try Dim updatecon As New OleDb.OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;data source=H:\FROM HOME\EXTENDED PROJECT !!!!!!\Databases\Login Details.accdb") updatecon.Open() Dim updatecmd As OleDb.OleDbCommand …

Software Development open-source vb.net
Member Avatar for kvprajapati
0
209
Member Avatar for mikecolistro

The question is as follows: Write a program to read in a word that is up to 10 characters long. See if any 3 consecutive characters in the word are found somewhere else within the word. If they are, echo those characters to the screen. For example, if the word …

Software Development c
Member Avatar for WaltP
0
133

The End.