132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for S2009

Hi all, I am creating a Library Management System. I have used the timestamp to calculate the Date Difference and with the help of date difference I am calculating the Fine also. Now this date difference includes all days in a week. But for a library application fine should be …

Software Development c#
Member Avatar for serkan sendur
0
305
Member Avatar for Samuelandjw

I often hear the saying that iostream is inefficient in terms of performance, and it is better to use printf family if type-safe is not concern. But as far as I know, the static type checking (is this thing people call the 'type-safe' do?) is done in the compilation, and …

Software Development c++
Member Avatar for MosaicFuneral
0
1K
Member Avatar for 9868

Here is a code [CODE] #include<stdio.h> int main(void) { int a; a=f(10,3.14); printf("%d",a); } int f(int aa,float bb) { return (aa+bb); } [/CODE] If I run the code it produces garbage value, but if I declare the prototype of the function before main it produces the correct output as 13. …

Software Development c
Member Avatar for jephthah
0
292
Member Avatar for Michael_Tanner

Hello, I happen to be a novice in the realm of C++, and I'm currently confused due to this error when trying to run my application: "Assertion Failed. Expression 'stream != NULL' ". I've looked it up, and nothing that comes up can answer why it gives me said error. …

Software Development c++ file-stream
Member Avatar for Michael_Tanner
0
2K
Member Avatar for Ancient Dragon

Has anyone tried to write [URL="http://support.microsoft.com/kb/307398"]this tutorial [/URL]using VC++ 2008 Express? The article claims to be written with VC++ 2005. But I thought 2005 and 2008 used compatible versions of CLR language. I'm getting all kinds of compiler errors -- for example [icode]String* str;[/icode] instead of using [icode]String^ str;[/icode] and …

Software Development asp.net c++ visual-basic
Member Avatar for Ancient Dragon
0
195
Member Avatar for NewToThis

I have been trying to build a Java program to prompt the user to enter the radius of a circle and the diameter, circumference, and area will be output through a "System.out.printf" statement. I can get the program to prompt for the radius and it will display the diameter, but …

Software Development java
Member Avatar for NewToThis
0
102
Member Avatar for seebharath

What is the lifetime of session variables in a asp.net application.. Also can someone give me any links to good articles on session variables in asp.net which give information on advantages and disadvantages of using the same.

Software Development asp.net session
Member Avatar for serkan sendur
0
89
Member Avatar for deedatm

Good morning I would like to learn C# and SQL for my project that I am doing for my Degree, I am a beginner, Any help wil be appreciated.

Software Development
Member Avatar for serkan sendur
0
108
Member Avatar for turbomen

Dear Sir, I have got a serious problem to understanding of the answer. The question is: Create the first half of a game of rock, paper, scissors. Ask the user for R,P or S. Get the computer to generate 0,1 or 2. Now convert the computer's number to R, P …

Software Development pascal
Member Avatar for FlamingClaw
0
92
Member Avatar for edenn1

irealy dont know how to sort my liked list . i should sort it by friends and by name . please try to help me...... i dont know even how to start. here is my structs : [code] typedef struct Person { int id; char* name; struct PersonList* friends; } …

Software Development c linked-list
Member Avatar for Tom Gunn
0
107
Member Avatar for sham
Member Avatar for vb5prgrmr
0
115
Member Avatar for Darkicon

I'm stumped right now, I cannot figure out how to code something to get information from another form. This is what I'm trying to do: [code=VB] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If TextBox1.Text = "01" Then 'TextBox1 is in form 2. PictureBox1.Image = …

Software Development vb.net
Member Avatar for winkler
0
140
Member Avatar for scotddn1

[CODE]$dgs = new IO::Socket::INET(LocalPort => $lisport, Proto => 'udp') or die "Socket: $!\n";[/CODE] I have a perl script that I want to run on tomato firmware router using the current shell scripting that it supports How would I do the above in shell? In perl you have to use IO:Socket.

Software Development perl shell-scripting
Member Avatar for Salem
0
164
Member Avatar for winkler

Hi all, it's my first time in this forum, I hope you can help. I've searched the web for a long time, couldn't find help, yet. I have a listview that displays a list of PDF files. When the user clicks on a row (in the "selectedIndexChanged" event), I display …

Software Development listview pdf vb.net
Member Avatar for winkler
0
772
Member Avatar for derekn

I'm having a dumb moment here... I am trying to search out strings and match user input with what's stored in database. I'm using [code]if($data =~ $user_input){then do something;}[/code] It's important to note that all the "$data" strings are all numbers. So for example, user puts in "1" and it …

Software Development perl
Member Avatar for onaclov2000
0
138
Member Avatar for JChakra

Dear mates, I am am frustrated and bored to learn how to get or calculate coordinates data for Java Graphic API. for ex the GeneralPath 's function curveTo() takes 6 parameters namely x1,y2,x2,y2,x3,y3.I put some random coordinates data into these function and got a crap drawing. :( I want to …

Software Development api java
Member Avatar for JChakra
0
201
Member Avatar for nagatron

I am having a problem on how to count numbers inside text area. . . example: In my text area I have 10 numbers. 12, 06, 31, 22, 53, 28, 96, 71, 10, 47 the the program should count how many 0,1,2,3,4....9 excluding the comma. I don't know how to …

Software Development visual-basic
Member Avatar for nagatron
0
115
Member Avatar for anshusharma

hello, i am new to web services.I may be asking this question wrongly.so forgive me. In my project i have to consume a webservice using java.Could u plz say me how to Create a client api in axis2 in java to consume the webservice that has been created in vb.net. …

Software Development api java vb.net
Member Avatar for peter_budo
0
99
Member Avatar for GECKA

Please need some help on what servers in windows/linux can c++ applications be deployed? Is the .exe file deployed or a library is created out of the application for deployment? thank you

Software Development c c# c++
Member Avatar for GECKA
0
81
Member Avatar for lagspike

I'm using this code to colour individual items in a listbox, but the problem i am having is it colours all previous items with the new colour. How can i colour each induvidual item without this happening? Here is the code I'm using: (_colour is a global int) [code=c#]private void …

Software Development
Member Avatar for serkan sendur
0
140
Member Avatar for onaclov2000

Hey, I'm looking to gather a list of all selected files in a windows explorer window. I.E. Say I have the My Documents Folder open, and select 5 files out of say 20 in the folder, I would like to replace whatever is in the clipboard with those five entries. …

Software Development perl
Member Avatar for onaclov2000
0
269
Member Avatar for Pavan_

[CODE] #include<stdio.h> int main() { int i=10,j=30; printf("%d %d",i,j); // this line printing value of i and j...works fine printf("%d %d"); // this line again printing value of i and j printf("%d"); // this line printing value of i return 0; } [/CODE] On gcc compiler, 2nd and third printf() …

Software Development c
Member Avatar for Tom Gunn
0
149
Member Avatar for spidyshiva

i want an algorithem for image compression and audio compression pleaseeeeeeeeeeee help me

Software Development audio c
Member Avatar for tux4life
0
96
Member Avatar for schimusi

Hie guys.How do you write a vb function that returns the frequency of each word that appears in a given text file.e.g.if the word "the" appears twice,it would return "The word 'the' appears 2 times".This has to be done until the end of the file without searching for a particular …

Software Development vb.net
Member Avatar for Piya27
0
478
Member Avatar for Pavan_

here is the code.... [CODE] #include<stdio.h> int main() { int *k; *k=10; printf("%d %d",k,*k); return 0; } [/CODE] it compile perfectly. but on executing it is giving segmentation fault. where is the problem?

Software Development c
Member Avatar for tux4life
0
245
Member Avatar for whotookmyname

I have to open a file whose name i am constructing by concatenating various inputs from the user. If I write: [code] string s = "filename.csv"; ofstream fout; fout.open(s,ios::app); [/code] it gives error for using s in fout.open(). It says it is a wrong form. I need to use a …

Software Development c++ ios
Member Avatar for sureronald
0
88
Member Avatar for narendra_dani

how to add shockwave flash as prereuest in c# vs 2008

Software Development flash
Member Avatar for narendra_dani
0
90
Member Avatar for chindaara

i created a c# application with a .mdf database.now i want to create a setup with my application.when i deploy the project it works fine.but when i create a setup wizard & install it the database is not working. that means when i insert data into my database and try …

Software Development
Member Avatar for sknake
0
133
Member Avatar for TarekSliem

The problem that i couldn't know if the mistake from the code or from the compiler? i have been setup cygwin.........as starting to learn Linux and into it as a start to learn c++ i want to compile a (hello world) code ================== [code] #include<iostream.h> void main() { cout<<"helloworld"; } …

Software Development c++
Member Avatar for ankitloud
0
252
Member Avatar for Piya27

Hi All, I want to know how to bind data to DataGridView Control. I have seen examples on google nd other sites. but all examples use DataBind() while in my program, it shows DataBindings() in intellisense. I cant find out how to do this. I have to bind data from …

Software Development vb.net
Member Avatar for kvprajapati
0
155
Member Avatar for sebcbien

Hello, I'm currently working on a little soft to plot some data from CSV files. I've got two problems. The first one is on CSV opening in procFile method. When I try to open a file with a path which own "é" characters for example, it raises an error. I've …

Software Development app-store os-x python
Member Avatar for sebcbien
0
157
Member Avatar for PatrixCR

Hi. I'm new to java programming. I have some questions: 1) Does every java source code's [B]class name[/B] (the name after the [I]class[/I] keyword, e.g. [I]class[/I] [B][I]Hello[/I][/B]) has to be started with an uppercase character? 2) Does the java source code's [B]file name[/B] (e.g. [I][B]Hello[/B][/I].java) has to be [U]exactly[/U] the …

Software Development java
Member Avatar for sincerelibran
0
320
Member Avatar for justmonkey23

I am trying to write a program that will help me with Gold Rush...This is a game on moola.com. Gold Rush is the most popular game available for players to wager their winnings on. It involves a series of six blind bids on gold nuggets with various point values. The …

Software Development python
Member Avatar for jem777
0
207
Member Avatar for Democles

Hello, I am trying to compile a set of files. I got fustrated to the point of taking the actually instructor files from the book and compiled them. I am using AndLinux and the g++ compile to run my programs. If anyone is familiar with the book "Accelerated C++" I …

Software Development c++
Member Avatar for TimeFractal
0
157
Member Avatar for babbu

Dim oledbcom As New OleDb.OleDbCommand oledbcom.CommandText = "Select ID from Customer where Company = ?" oledbcom.Connection = oledbcon Dim oledbparam As OleDb.OleDbParameter = _ oledbcom.Parameters.Add("@Company", OleDb.OleDbType.VarChar, 50) oledbparam.Value = frmNewCompany.txtCompName.Text.Trim Dim oledbreader As OleDb.OleDbDataReader = oledbcom.ExecuteReader Dim id As Integer While oledbreader.Read id = oledbreader.GetInt32(0) End While 'end of fetch …

Software Development vb.net
Member Avatar for kvprajapati
0
523
Member Avatar for _dragonwolf_

Here is my final product: [code] #include <iostream> #include <fstream> #include <iomanip> #include <string> using namespace std; void printGrade(int oneScore, float average); void printTable(int scores[], int id[], int count); float computeAverage(int scores[], int count); const int MAX_SIZE = 21; void readStudentData(ifstream &rss, int scores[], int id[], int &count, bool &tooMany) …

Software Development c++ ios
Member Avatar for _dragonwolf_
0
136
Member Avatar for doublebond

Hi Guys, Please help me in doing this. I am trying to read a file using fstream, but my prof wants me to do the same using hash table, which i have know idea. Please tell me hw can i do the same. The file contains huge data like the …

Software Development algorithm c++
Member Avatar for csurfer
0
1K
Member Avatar for Cloneminds

Hello again, My assignment is to calculate a 10% bonus based on sales figures. I have to use a main() function, obviously, and 3 void functions, getSales(), calcBonus(), and displayBonus(). I'm pretty sure I have the functions coded correctly, I'm just having some issues getting them to actually run correctly …

Software Development c++
Member Avatar for wildgoose
0
226
Member Avatar for slomad1956

I've searched for days on how to find the correct way to convert a string to a float and then double the user entry. Any help would be appreciated. Thanks. #include <iostream> #include <cstdlib> using namespace std; bool FloatInput(char []); void main() { float floatValue; char buffer[100]; bool validInput; do …

Software Development c++
Member Avatar for slomad1956
0
128
Member Avatar for reyaanhelp

[code] #include <conio.h> #include <stdio.h> #include <iostream.h> #include <string.h> #include <graphics.h> #include <stdlib.h> #include <ctype.h> //#include <dos.h> typedef enum{false,true}boolean; static int p = 0; class a { char busn[5], driver[10], arrival[5], depart[5], from[10], to[10], seat[8][4][10]; public: void install(); void allotment(); void empty(); void show(); void avail(); void position(int i); } …

Software Development c++
Member Avatar for csurfer
0
457
Member Avatar for kehar

Hi, I would like to use textbox to accept date in VB 6 instead of using dtpicker. The text box should contain oblique sign like ( [B] / / [/B] ) to enter dd/MM/YYYY type date during form load. I tried to use Microsoft Mask Edit control also but it …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
256
Member Avatar for CandyV

Hi... I'm new member I have some problem to ask. I' will connect Crystal Report 11 with VB6.0 but I don't know How to connect I know the first time, you must add Component Crystal ActiveX Report Viewer Library 11.0 and Add reference Crystal Reports ActiveX Designer Run Time Library …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
781
Member Avatar for Ricky80

hi, i'm creating application using visual basic 2008 express. It's great acctually, but I'm having problem creating report with it. Can anyone suggest reporting tools that can be used with VB 2008 express? I tried microsoft report viewer 2008, and it seems that vb 2008 express doesn't support report design …

Software Development vb.net visual-basic
Member Avatar for mahr
0
327
Member Avatar for Pokenerd

Hi, I'm working on a program to convert Celsius to Fahrenheit, but I have a problem when I run a check to make sure that input is not a letter. My problem is that if the user inputs a 0 it catches it with the [code=C++] if(num == 0) { …

Software Development c++
Member Avatar for Pokenerd
0
105
Member Avatar for functionalCode

I have a combo box which is in set to be a drop down list. How do I change the label text based on which ID is selected in the combo box. How do I make the label text change to the corresponding row as the ID? Thanks

Software Development dataset
Member Avatar for functionalCode
0
186
Member Avatar for Poojasrivastava

hi.. well i have a gridview on a page and when the user selects the gridview row then that gridview row should be redirected to a new page. this new page has another gridview which i need to populate with the selected gridview from previous page. can somebody help me …

Software Development
Member Avatar for missbeginner
0
101
Member Avatar for XodoX

Hello, I had to creat the following code that displays a table depending on the number te user entered. [code] int main() { int n = 0; const int base = 4; std::cout << "Enter max: "; std::cin >> n; std::cout << " "; for(int i = 1; i<= n; …

Software Development c++
Member Avatar for NathanOliver
0
104
Member Avatar for Pokenerd

Hi, I'm looking for some help with this short program I am writing... I'm trying to make the sure that the user enters a number when it asks for the temperature in Celsius, and when the user enters a number it works. However if a letter is entered it all …

Software Development c++
Member Avatar for Pokenerd
0
180
Member Avatar for somyasinha

Hi, How do I use the generator in the file? I keep randomc.h as a header file in the Visual c++ project. My project has several header files and several .cpp files, many of which require to use the random no. generator. I have copied all the files in the …

Software Development c++ user-interface
Member Avatar for u8sand
0
140
Member Avatar for masterofpuppets

hii everybody, I have a weird problem with a program for solving sudoku puzzles. I am representing the puzzle as a list of lists of lists containing all the possibillities for a single square and my problem is that when I try to remove a single appearance of a number …

Software Development puzzle python
Member Avatar for masterofpuppets
0
120

The End.