132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for EEETQ

Hi guys, I'm writing a program to do several things involving getting information from the user about a book (title, author, publisher etc.) There is a Book class and then the client class BookClient. I got the program working for the user entering a single book but then I changed …

Software Development java
Member Avatar for EEETQ
0
140
Member Avatar for kimmi_baby

Hi, I have created a program in Python which creates a database called inb104 and loads the data from text files into the mySQL server. The code works perfectly fine. The data is inserted into the table without any issues. The problem is that I would like to place the …

Software Development mysql python
Member Avatar for Gribouillis
0
600
Member Avatar for lennyemp

Hi all buddies, I am the beginner for multithreading in C/C++. So, I copied some example from MSDN and tried to compile it as my first step. Currently I am using DEVC++ IDE. The error is like that: " [Linker error] undefined reference to `sprintf_s' ". Here is the program …

Software Development c c++ ide multithreading
Member Avatar for Ancient Dragon
0
465
Member Avatar for mashimaro

Hello, I need some help from you guys - thing is: I've got a text file with numbers, it looks like this: X, Y, Z. X and Y are float type, the Y is an integer. The file has many lines. How do I load that file, seperating X and …

Software Development c#
Member Avatar for Ketsuekiame
0
209
Member Avatar for oling

Hi, I am a programming newby and trying to write a Java code that does the following: - User inputs a string of choice (this part is ok) - Program reads every third character of the string and replaces with an X Any help would be appreciates. Thanks, oling

Software Development java
Member Avatar for javaAddict
0
90
Member Avatar for dchunt

I want to run the programs r1-r4 and n1-n4 simultaneously instead of waiting for each one to finish executing,I've been stuck on this for a long time, i went through multi threading for c++ in dev-cpp and the Win API code is quite complicated. Can somebody provide the code to …

Software Development api c++
Member Avatar for Ancient Dragon
0
188
Member Avatar for fire_

Hello guys. How can i make my program start minimized to system tray? I'm using MFC. I managed to make it start hidden, but i can add sys tray icon... Any ideas? Thank you

Software Development c++
Member Avatar for Ancient Dragon
0
86
Member Avatar for moustafa taha

Hello every one i need to help me in understanding this small program ...you can approximate by using the following series ∏=4(1-1/3+1/5-1/7+1/9-1/11+1/13-.....-1/(2i-1)+1/(2i+1)) write a program that displays the value for i=10000,20000,....,and 100000 I've developed this code to solve the problem [CODE]public static void main(String[] args) { int count=1; double sum=0; …

Software Development java
Member Avatar for masijade
0
286
Member Avatar for Don Brooklyn

Hi there, I would need some help with my code...its in python, and the thing I have to do is to make points of the matrix of the object be displayed in a way to make the first camera position as a start of the coordinate system! to clarify a …

Software Development python
Member Avatar for TrustyTony
0
112
Member Avatar for silversurfer515

Hey guys , I have been asked by my boss to write some c++ code to read from a web page, this is alien to me as I have an electronics background and know nothing about networking. I managed to find a c++ library called urlmon which has a method …

Software Development c++ socket-programming
Member Avatar for silversurfer515
0
149
Member Avatar for sahil1991

hi friends, check this program beneath....... \\program to fin integere part and fractional part of given real number... #include<iostream.h> #include<conio.h> void intfrac(int,float&,float&); void main() { float number,intpart,fracpart; cout<<"enter any real number:"; cin>>number; intfrac(number,intpart,fracpart); cout<<"integer part is:"<<intpart; cout<<"\nfraction part is:"<<fracpart; getch(); } void intfrac(float n,float& intp,float& fracp) { fracp=n%1; intp=n-fracp; } …

Software Development c++
Member Avatar for sahil1991
0
142
Member Avatar for getkiran1

Hi all... How to get the full path of a file which is currently running?? suppose from cmd or directly someone starts an application or any kind of file( text file, word file, mp3 etc) my C# application need to get the path of the opened file... For eg: if …

Software Development file-system
Member Avatar for Ionesta
0
2K
Member Avatar for christos312

Hello, I have a question about set and get, I tried to search the forum for answers but i didnt find what i wanted. Sry if this question exists:$ 1. How do i check that the StudentId to be at least 6 characters using the set? Can i do it …

Software Development
Member Avatar for christos312
0
208
Member Avatar for Halomak

I am having problems while trying to communicate with the serial port. I have read many tutorials online and found all of them either to be not useful or just too complicated for the task which I must achieve. The task is simple. I want to: 1) Open a port …

Software Development c++
Member Avatar for Halomak
0
121
Member Avatar for spades0001

import java.io.*; public class Amortization { public static void main (String[] args)throws IOException { BufferedReader dataIn=new BufferedReader (new InputStreamReader (System.in)); double loanamount=0.0, interestrate=0.0, numberofyears=0.0,amortization=0.0, a=(1+interestrate),b=numberofyears ; String TextInput; System.out.print ("Input the loan amount: ") ; TextInput=dataIn.readLine () ; loanamount=Integer.parseInt (TextInput) ; TextInput=dataIn.readLine () ; System.out.print ("Input the interest rate: ") …

Software Development java
Member Avatar for dangari
0
236
Member Avatar for manosha

hi 2 all, I'd like to ask: how can we Concatenate elements of two dynamic arrays?? and if there is any example it'll really help. thanks in advance :)

Software Development java
Member Avatar for javaAddict
0
56
Member Avatar for Shaabangbang

Hello, i have a question about string manipulation, i am supposed to write a function that takes a character array and returns a void, so far so good, but its supposed to reverse the array as output, for example, if the input is "Hello" the output is "olleH", here is …

Software Development c
Member Avatar for rajnish.singh
0
238
Member Avatar for llocks

Hello everyone, I am currently taking java and Im trying to learn how to write methods. I want to know learn the best way that I can learn how to read/write methods in a code. Im currently writing a code using lastindexOf. I do understand that im using this to …

Software Development java
Member Avatar for javaAddict
0
97
Member Avatar for myk45

Hello. i wrote a program to do the following: [B]Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted. [/B] This is what i tried: [CODE] void trimString() { char s1[] = …

Software Development c
Member Avatar for myk45
0
179
Member Avatar for davidbrennan

I have 4 entities Product no Enumerable interface ProductFieldLookup has Enumerable interface Lookup no Enumerable interface LookupType has Enumerable interface var pfl = (from pflSet in p.ProductsFieldsLookups where pflSet.IsAvailable = true select pflSet).ToList(); I want to retrieve lookups data that is connected to the returned list and apply a filter …

Software Development asp.net data-structure
Member Avatar for davidbrennan
0
114
Member Avatar for lounestor

[CODE]=if(J39="incomplete",""if(j39="complete",Now(),J39)[/CODE] this updates to the current date but i want it to save the time do static once it reaches complete. I would much appreciate the help thanks Louise

Software Development visual-basic
Member Avatar for AndreRet
0
109
Member Avatar for exekiel101

[B][/B] uhm sir... the program must be like this... ([I]<<snip>>[/I]..awwwhelp me plsss the rows and columns must input numbers manually ...and the result will be like multiplication table... the outcome must be like this: number of rows?: 5 number of columns: 6 input rows: 2 3 5 1 0 input …

Software Development c++
Member Avatar for civirol02
0
286
Member Avatar for nagatron

Hello to all, I would like to ask if it is possible to transfer a text from a VB textbox to HTML textbox? If it is, how? Thank you in advance. Regards; nagatron

Software Development html-css visual-basic
Member Avatar for AndreRet
0
174
Member Avatar for gregarion

Hey guys , as from what i read up , the function srand() and rand() are able to give u random numbers if they are being run one time only. What i am trying to do is to produce a set of random and unique numbers from 1 - 10. …

Software Development c++
Member Avatar for ixmike88
0
116
Member Avatar for bufospro

Hi all, I am new in c++ programming and I am trying to make some examples But unfortunately I have some problems My code is : [CODE] #include <iostream> #include <string> using namespace std; int main() { string firstname, lastname, fullname; cout << "First name: "; cin >> firstname ; …

Software Development c++
Member Avatar for stevanity
0
103
Member Avatar for sg79

Hello, can someone help me write this C++ program: An array can be used to store large integers one digit at a time. For example, the integer 1234 could be stored in the array a by setting a[0] to 11, a[1] to 2, a[2] to 3, and a[3] to 4. …

Software Development c c# c++
Member Avatar for Intrade
0
277
Member Avatar for hanes84

Hi anyone can help me edit VB6 code to VB.NET code cause i have been working on it and still can't get any thing on it. there are some code which cannot be recognise by .net pls help.

Software Development asp.net vb.net visual-basic
Member Avatar for bagraoprasad
0
252
Member Avatar for swathys

hi, this is the code that i use to press enter. how do i make that enter to be pressed only once not more than that. PLEASE HELP!!! [CODE] Private Sub frmPasscode_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress blnPwdFromKeyboard = True If Char.IsNumber(e.KeyChar) Then Select Case Microsoft.VisualBasic.Val(e.KeyChar) …

Software Development vb.net
Member Avatar for swathys
0
141
Member Avatar for jamal.yaqub

I want to execute a command to query DHCP Server. For that purpose I have written some code in perl. Now when I execute that perl file in command prompt using c# I get following errer "The specified executable is not a valid Win32 application." I have pasted the code …

Software Development c# perl
Member Avatar for =OTS=G-Man
0
229
Member Avatar for sean_king

I am working on a class project that calls for a test score calculator that calculates and displays the score total, score count, and average score. If the user clicks the Display scores button, the application sorts the scores and displays them in a message box. There is also a …

Software Development vb.net
Member Avatar for lolafuertes
0
1K
Member Avatar for anthonyjpv

I am working with multiple forms in C#. My startup Form /or/ Parent Form /or/ Form1 is a login form. on my Form1, I have a textbox1 for username and textbox2 for password and a buttons for submit and cancel. on click event of submit button,if textbox1.text && textbox2.text are …

Software Development c c# c++
Member Avatar for sumran ali
0
204
Member Avatar for notuserfriendly

I am reading from a file. After i tokenize and assign each value to a string field i call the constructor and initialize the object. next i want to add them to an array. I have done this with a vector and all i do is [CODE=java]ObjectVec.add(obj1);[/CODE] Mind you this …

Software Development java oop
Member Avatar for masijade
0
175
Member Avatar for wowz

[CODE]public class Triangle { /*-the lengths of all sides -the perimeter -the angles at all corners -the area */ public Triangle(double xa, double ya, double xb, double yb, double xc, double yc) { x1 = xa; y1 = ya; x2 = xb; y2 = yb; x3 = xc; y3 = …

Software Development java
Member Avatar for masijade
0
162
Member Avatar for cretaros

Hey Lifesavers! How can i dispose the current frame holding the combobox on item selection to navigate to the next frame. The dispose(); method does not dispose the Main class, when i select supplier item onthe combo list. how can i reolve this; sample code from the sodes is below. …

Software Development java java-swing
Member Avatar for masijade
0
233
Member Avatar for gaurav_13191

I have written the following code for converting infix to prefix.. [CODE] //Infix to prefix conversion #include<stdio.h> #include<conio.h> #include<string.h> #include<ctype.h> #define MAX 25 void initstack(struct stack *); void push(struct stack *,char); char pop(struct stack *); char *convert(struct stack *,char *); void show(struct stack); int priority(char); struct stack { char arr[MAX]; …

Software Development c
Member Avatar for Schol-R-LEA
0
239
Member Avatar for ssubnel

How do I make my array legal? It doesn't seem to like my style here. [CODE]import java.util.Scanner; public class solveQuadratic { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Scanner input = new Scanner (System.in); double[] eqn = new double[2]; double[] roots …

Software Development java legal
Member Avatar for ssubnel
0
125
Member Avatar for mybluehair

I've been looking at some tutorials on an easy way to open a c++ thread, but all have different answers and solutions. does anyone have a nice tutorial?

Software Development c++
Member Avatar for DELmE
0
158
Member Avatar for stevanity

Guyz please help me Ive got a practical exam tomorrow can anyone give a simple coding for implementing prims algorithm. It accepts the vertices and cost and gives out minimum spanning tree. Please guyz. It must be very simple. It need not be perfect. It need not work for all …

Software Development algorithm c
Member Avatar for Adak
0
689
Member Avatar for DrueY

Hellur! Can somebody explain how exactly a fast fourier transform is performed on a wave file? What's happening behind the scenes? I need to get a basic idea of how it works. Thanks in advance drue

Software Development c
Member Avatar for Adak
0
120
Member Avatar for Unidennn

Hi, im trying to finish up my assignment on tic tac toe game.. and my program keeps crashing, here are two functions where i think it crashes, probably the first one: [CODE] void tic_tac_toe_init (char *ttt[3][3]) { char i,j; int k=' '; for (i=0;i<3;i++) { for (j=0; j<3; j++) { …

Software Development c
Member Avatar for abhimanipal
0
125
Member Avatar for Alerwiali

Hi everyone ! i am being asked to write a code of Block'd game that is implemented in Nokia phones ..i really dont know what to do as a beginning could any one help ?? Thanks alot .

Software Development c
Member Avatar for abhimanipal
0
81
Member Avatar for baltair

I am trying to break from an infinite for loop, if the user has entered a blank line, but I want to continue if the user has entered a word. here is code to show. [CODE]#include <iostream> using namespace std; int main( void ) { char szMessage[32]; for(;;) { cout …

Software Development c++
Member Avatar for baltair
0
116
Member Avatar for hq1

Hi, so I wrote this program to find the GCD of two numbers, the program runs just fine its that I also need it to display how many times it loops, I cant get it to do that. Can some one please tell me what I'm doing wrong, Thanks! [CODE] …

Software Development c++
Member Avatar for hq1
0
90
Member Avatar for Ilyana

[code] #include <cstdlib> #include <iostream> #include <iomanip> #include <fstream> using namespace std; int main() { const int SIZE=81; char input[SIZE]; fstream nameFile; nameFile.open("Bands.txt", ios::in); if (!nameFile) { cout << "Error: Cannot open file." << endl; return 0; } nameFile.getline(input, SIZE); while (!nameFile.eof()) { cout << input << endl; nameFile.getline(input, SIZE); …

Software Development c++ file-system ios
Member Avatar for Ilyana
0
102
Member Avatar for requimrar

Hi, I'm new to this forum and would like to ask a question relating to C#. I am trying to make my custom OS, and shutting it down, but I am encountering a problem. Here is what I have so far: [CODE]using System; using Cosmos.Compiler.Builder; namespace CosmosBoot1 { class Program …

Software Development c# operating-system
Member Avatar for JoshuaBowden
0
396
Member Avatar for JCal1108

My task was to write a function that dynamically allocates an array of integers. The function should accept an integer argument indicating the number of elements to allocate. The function should return a pointer to the array. Here is the code I wrote, my pointer returns the starting address of …

Software Development c++
Member Avatar for Unimportant
0
120
Member Avatar for Smithy566

Hi all, to simplify my problem, I'll use a quick example. Imagine I have a class of 'Cat' which has accessors for things like 'name', 'colour' and 'height'. I then put these cats in a list [CODE]List<Cat^>^ catList;[/CODE] I want to be able to search this list based on the …

Software Development asp.net c++ seo
Member Avatar for Ancient Dragon
0
1K
Member Avatar for noraz

Hi, I'm building a small information retrieval (IR) application using VB6. I'm stuck at calculating the tf.idf part. I've google for the solutions/codes, but didn't find anything in vb6, except other languages such as phyton etc (which I'm not familiar with). I'm also a beginner programmer in vb6. I've looked …

Software Development visual-basic
Member Avatar for noraz
0
553
Member Avatar for gerard4143

Hi, I have a question about constructors and the difference between passing by value and by reference. If you look at the two examples I attached. Example one has a constructor that passes by value and example two pass by reference. Now I want to know why example one will …

Software Development c++
Member Avatar for gerard4143
0
120
Member Avatar for Kratoswoo

Im trying to do this code to create a Parking ticket Simulator. This is the code. public class Parking_Ticket { private String make; private String model; private String color; private String licenseNumber; public int minutes; public class ParkedCar { private String make; private String model; private String color; private String …

Software Development java
Member Avatar for Kratoswoo
0
245

The End.