132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mgirl

Hi I'm quite new to writing programs in C language. I've been working hard on a program and my output isn't coming out as it should. Problem is you're supposed to enter 7 numbers. The program should sort the numbers in 5 categories of ages. Then calculate the average. I …

Software Development c
Member Avatar for grumpier
0
281
Member Avatar for uma625010

[CODE] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim x As Int16, y As Int16 x = CInt(TextBox1.Text) y = CInt(TextBox2.Text) add(10, 20) End Sub Private Sub add(Of T)(ByVal x As T, ByVal y As T) Dim res As T res = x + y …

Software Development vb.net
Member Avatar for uma625010
0
130
Member Avatar for rodeostar04

I would appreciate if anyone could help me with my program that calculates a hand of black jack. I know the way I created this program is probably not the most effective way but the only thing I seem to have problems with is getting the program to add 10 …

Software Development c++
Member Avatar for Salem
0
128
Member Avatar for danizzil14

Ok, so from my last post, you might have figured that I'm making a coder/decoder package. Anyways, say I've got a string of letters that i want to decode, such as: AAAGGGCCC Which should produce: ACB Because a=aaa c=ggg and b=ccc Currently with my program, you have to input one …

Software Development first-post python
Member Avatar for Gribouillis
0
212
Member Avatar for mugun

i have written a vb.net coding for linkin my vb interface to my access database...its all the same....but some linking codes i wrote work,for other forms,but sum don work... this is 1...its a form to add staff in my system [code=vb] Imports System.Data Imports System.Data.OleDb Public Class Form1 Dim ds …

Member Avatar for mugun
0
136
Member Avatar for perltoday

hi, Is it possible to read 2 or more files and getting data out of them simultaneously? can I know the perl format for that

Software Development perl
Member Avatar for KevinADC
0
120
Member Avatar for Brodin

Hello, I don't know if this is the right place to ask this, its sort've a big collective question on how to go about building a database program =p. Yes, it is a project for school, I've got about a month to do it, I'm quite new to VB and …

Software Development display visual-basic
Member Avatar for voxviennasierra
0
170
Member Avatar for DeadJustice

I'm trying to read in the chars for a file in order to compare two text files. The problem is I can't seem to load space characters into my vectors. Any suggestions for me? [CODE] vector<char> cyphVector; char c; //fill vector with cypher file chars while( cyphFile.good() ){ cyphFile >> …

Software Development c++
Member Avatar for VernonDozier
0
121
Member Avatar for rhoit

I am trying to built the program for handling polynomial... using linklist.... and so far i tried to implement in the Class to add the 2 polynomial using the operator overloading i got messed up with the some objects.... i have commented the parts please help..... [CODE] #include<iostream> using namespace …

Software Development c++
Member Avatar for sarehu
0
144
Member Avatar for A no-name-moose

[TEX]Note[/TEX]: I've been doing this only for practice and [TEX]NOT[/TEX] for practical reasons, as you can see the output isn't realy HangMan-like and any combination of the right letters will be accepted so please do NOT comment about the funcunallity of the code! if it [TEX]DOES[/TEX]seem nice to you then …

Software Development python
Member Avatar for A no-name-moose
0
182
Member Avatar for STUDENT#101

Hi could anyone tell me how to compile a three tear program in VC++. I am using g++ in school and so for practice at home I am using VC++ but I just can't get it to compile. thanks in advance.

Software Development c++
Member Avatar for AceofSpades19
0
150
Member Avatar for PPP1

Hello, Please tell me the form of Perl.

Software Development perl
Member Avatar for perltoday
0
74
Member Avatar for DemonGal711

Ok, this is probably really stupid, but I'm lost and want someone else to say what they think. My teacher gave us an assignment and said that everything was in the file she sent us. So, I opened it and filled in all the coding as far as the comments …

Software Development c++
Member Avatar for DemonGal711
0
88
Member Avatar for l_03

hello guyz,,do you know best sites to recommend on : tutorials about reading a file ("text file") and writing it in "java file?? in short reading or writing files in bufferedreader.. thank you ahead guyzz..

Software Development java
Member Avatar for peter_budo
0
189
Member Avatar for rodeostar04

I would appreciate if anyone could help me with my program that calculates a hand of black jack. I know the way I created this program is probably not the most effective way but the only thing I seem to have problems with is getting the program to add 10 …

Software Development c++
0
167
Member Avatar for sinrtb

[code]return tree == NULL ? -1 : tree->height;[/code] I am trying to understand AVL trees but the one really nice example I found has a couple of methods defined like this. It is really pretty but I cannot read it? Can someone explain it to me? Or even just write …

Software Development c++
Member Avatar for Narue
0
155
Member Avatar for ninwa

If a text box control is in focus the default functionality of Key.Up and Key.Down are to move the cursor right and left respectively within the text box. I am interested in overriding this functionality. In my application a text box is used for inputs which I would like to …

Software Development
Member Avatar for LizR
0
94
Member Avatar for freelancelote

Hi, is it possible to find out the size of an array created on the free store? thanks

Software Development c++
Member Avatar for freelancelote
0
126
Member Avatar for atularora66

I'm new to java and we have to create a program telling the user how much of their income will be taxed based on rates given out by the government of Canada. I am getting 2 errors, one saying that "variable federal might not have been initialized" and the other …

Software Development algorithm java
Member Avatar for atularora66
0
105
Member Avatar for rtrader

I have a generic static inner class inside a generic non-static class. It gives me errors because E cannot be accessed from a static context: [CODE] public class List<E>{ public static class InnerClass<E>{ } [/CODE] How do I fix this? Thanks!

Software Development java
Member Avatar for Ezzaral
0
114
Member Avatar for bobrien314

I am writing a code to read in a mips file to look for data dependencys, but when i read the file in i get all kinds of goofy stuff coming in as well, thanks in advance for any help. [code=java] import java.io.*; import java.util.*; public class hw { static …

Software Development file-system java
Member Avatar for Ezzaral
0
101
Member Avatar for san_sarangkar

Hi every body , I got one problem that how can we generate 1 to n numbers without using any loop and without using recursion function ?

Software Development c
Member Avatar for Aia
0
151
Member Avatar for patricksquare

//challenge,, fix this! [code=cplusplus] #include<stdio.h> #include<conio.h> void main() { struct job{ int at; int bt; }; struct job J[80], cpy[80], temp, cpy2[80]; int q, oh, jbn, x, y, z, t, ref=0, tt[80]; again: clrscr(); textcolor(YELLOW); gotoxy(20,5); cprintf("*** ROUND ROBIN WITH OVERHEAD ALGORITHM ***"); textcolor(10); gotoxy(5,7); cprintf("How many jobs do you …

Software Development algorithm c++
Member Avatar for bhoot_jb
0
188
Member Avatar for san_sarangkar

Hi, Please help me doing Program for "Game of life". Here is the link for that: [url]http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life[/url]

Software Development c++
Member Avatar for Freaky_Chris
0
195
Member Avatar for ChroNoS

I am develping a program to create an rtf file.The rtf file will be having images in it that will form a border around the page. Here is the code so far: [ICODE] #include "rtflib.h" #include "globals.h" #include "errors.h" void main() { // Set RTF document font and color table …

Software Development c c# c++
Member Avatar for Salem
0
173
Member Avatar for DanDaMan

Now, we all know that // makes a comment. But I have a question about the compiling of the program? Say you were to make a comment with a whole bunch of underscores to signify a different section of code. Does the amount of comments written in the source code …

Software Development c c# c++
Member Avatar for Denniz
0
366
Member Avatar for Asen

I'm a beginer in OpenGl. I downloaded glut 3.7.6 package but I didn't find glu.h, glaux.h, opengl.h, opengl32.h and gl.h in there. Where can I get it ? And if I've found it, how to set it so it can work well. I'm using VC++ 2008 Express. Please tell me …

Software Development c++ opengl visual-studio
Member Avatar for Denniz
0
345
Member Avatar for lomo

Write a complete function: DNA represented as a list of the alphabet letters A, C, G and T. How many times the sequence ACG occurs in a specific DNA string. (An example: If the list is CACGTTGCGTACGAA, then the number of occurrences of ACG will be 2.) Write function nrACGOccur. …

Software Development c++
Member Avatar for lomo
0
253
Member Avatar for ChroNoS

I am trying to embed an image into an rtf file using VB. Well, I tried using the clipboard method but it doesn't wield any good results, I have to embed it and align it and copy it so that the images form a border. Ideas anyone?

Software Development visual-basic
Member Avatar for ChroNoS
0
87
Member Avatar for B_Acs

I am at the end of my first term in my C++ classes. I have managed well so far, but this program is completely frustrating me! Please help me figure what to do. Okay my assignment is kind of complicated for me.....here is what I am supposed to do, followed …

Software Development c++
Member Avatar for STUDENT#101
0
216
Member Avatar for DogfoodEnforcer

Hi there Daniweb, right now im in an engineering program and we are being put through a crash course in C. Ive never dont any type of programming before so it is quite an adventure (to say the least). Currently we are doing an assignment in which we have to …

Software Development algorithm c engineering
Member Avatar for Freaky_Chris
0
180
Member Avatar for Poab9200

Hello all, I have a few questions and some problems. I've been doing some searching on the web and cannot find a source that can aid me with these issues. Anyways, I have several text box's that need to have the following properties: Numbers-Only Commas Ex. 1,000 instead of 1000 …

Software Development regex
Member Avatar for LizR
0
117
Member Avatar for Mackjan

What dose it means at Dice.rollDice(Dice.java:30) java.lang.IllegalArgumentException: n must be positive at java.util.Random.nextInt(Random.java:250) at Dice.rollDice(Dice.java:30) my code is : [code=jva] import java.util.Random; public class Dice { // instance variables. private Random mRandom; private int mSides; /** * Constructor for objects of class Dice */ public Dice(int sides) { sides = …

Software Development java
Member Avatar for Mackjan
0
103
Member Avatar for patricksquare

//can someone debug this program,,, thanks,,, [code=cplusplus] #include<stdio.h> #include<conio.h> #include<dos.h> #include<graphics.h> #include<stdlib.h> #define N 100 struct processors //PROCESS ATTRIBUTES// { float burst; float arrival; int priority; int num; }p[20],temp; struct ssss { int no; int xx; float arr; float burst; float ww; int pri; float wait; }process[N]; void main() { …

Software Development c++
Member Avatar for stilllearning
0
160
Member Avatar for Asad 01

hi!!! everyone i am the student of O'levels and i am making my project of com. and in great need of a complete version of vb6.0 plzzz.. send me a link or share with me... plzzzzzzzzzzzz

Software Development visual-basic
Member Avatar for Asad 01
0
88
Member Avatar for EBaller55

I am using Visual C++ 2005 with SP1 why does the following code generate a compiler error (error C2062: type 'int' unexpected)? [code] for(int i=0,int j=0;i<5;i++,j++){} [/code] Note the following two variations generate no compile error [code] int i,j; for(i=0,j=0;i<5;i++,j++){} [/code] [code] int j; for(int i=0,j=0;i<5;i++,j++){} [/code] Is this just …

Software Development c++
Member Avatar for ArkM
0
253
Member Avatar for navyfalcon

<Quote> EriCartman13 Could you add a TI BASIC under you programming section? cscgal Administrator We have an "Other Languages" section (which includes a BASIC subforum) for less common languages. If we see a large number of threads related to a particular language within this forum, a new subforum will be …

Software Development
Member Avatar for sarehu
0
501
Member Avatar for Hockeyfreak889

How would you make it so that you check if the user has pressed the keys up, down, w or s every half a second

Software Development java
Member Avatar for masijade
0
72
Member Avatar for Linking_90

Hi, I was hoping that someone could give me some direction with how to solve this probem. The only info in this problem is word has N digits[only digits] and the numbers (output) should be in increasing order example 1469 or 468 The output should give all combinations in the …

Software Development c++
Member Avatar for Linking_90
0
113
Member Avatar for MylesDBaker

Hello everyone, I am having a really difficult time getting this program off of the ground. I need to use a while loop to read data from a file and then read tonnage numbers corresponding to names read in from that file. The assignment looks something like this: [I]After watching …

Software Development c++ file-stream file-system
Member Avatar for MylesDBaker
0
179
Member Avatar for DGULLIVER

Hi I have a combo box with a list of Months however the Months are preceded with a single character code i.e F (January) G (February) H (March) J (April) K (May) M (June) N (July) Q (August) U (September) V (October) X (November) Z (December) H (March) As I …

Software Development visual-basic
Member Avatar for DGULLIVER
0
122
Member Avatar for abu taher

I use datagrid to show data and use adodc control. but when connect between them a msg show "No compatible data source was found for this control. please add an intrinsic data control or a remote data control to the form." Is there any proses to connect between them?

Software Development visual-basic
Member Avatar for abu taher
0
109
Member Avatar for maurya_alld

Hi, Can any body know about the disable the print screen function key of key board. My requirement is this that on pressing "Print Scrn" of key board does not copy the contents of current window. Thanks in advance

Software Development
Member Avatar for selvaganapathy
0
294
Member Avatar for janustt

I'm not sure where I'm going wrong in this program. I needed to create two different classes, one being the driver class the other the utility class. The purpose is to ask the user for the circle's radius, creating a Circle object, and then reporting the circle's area, diameter, and …

Software Development java
Member Avatar for janustt
0
122
Member Avatar for justinlake888

what is a global variable? is that when the variables are located outside of int ()??

Software Development c++
Member Avatar for dmanw100
0
128
Member Avatar for PkTidus

Hello, I need to know how to "extract" information out of list box. [code] Dim intLoop As Integer Dim blnStartG As Boolean Dim intCounter As Integer Dim strMedal As String Dim intcheck As Integer For intLoop = 0 To (lstResults.Items.Count = -1) blnStartG = False strMedal = lstResults.[COLOR="Red"]?????????[/COLOR] blnStartG = …

Software Development vb.net
Member Avatar for rapture
0
119
Member Avatar for anuj_sharma

hey Guys, I have completed the basic concepts of C and C++. I want to know whether should i go for file handling and database connectivity or should i go for java. Please help me on this.

Software Development c
Member Avatar for Narue
0
99
Member Avatar for blaze5488

What is suppose to happen is that I am suppose to take a string like "Micheal Jordan" and reverse it and return it with a comma after the last name. like "Jordan, Micheal" but that is not what i am getting can you help please. I have also included the …

Software Development c++
Member Avatar for blaze5488
0
98
Member Avatar for silentone190

Hello. I am new at this and I'm having trouble getting a total from multiple data. What i need is a total for a final summary. How do i calculate this? i have searched and read many text on this subject, but have had no luck... some how i get …

Software Development java
Member Avatar for silentone190
0
175
Member Avatar for PPP1

Hello, I am little bit confuse for c and c++. All loops are same in both the languages so why they are different for each other?

Software Development c++
Member Avatar for Narue
0
158

The End.