132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Nasas

Can u help me guys. I have problem of calling function from class and overloading. When I'm trying to print short int type number, the program brakes down. No errors are shown which tell me whats wrong. [CODE]#include <cstdlib> #include <iostream> using namespace std; int i=0, j=0, zero_fill, l=0; class …

Software Development c++
Member Avatar for Nasas
0
117
Member Avatar for Aghtar

Hey guys, now I have an assignment to create code that will ask for a number and then calculate the factorial of it with a for loop in a separate function and return the value to main.. Here is my code, I think it looks pretty good, but when I …

Software Development c++
Member Avatar for StuXYZ
0
167
Member Avatar for KunioUnio

[CODE]package lottery; import java.util.*; import java.util.ArrayList; public class Lottery { public static final int REGULAR_NUMBERS = 7; public static final int EXTRA_NUMBERS = 3; public static final int MAX_NUMBER = 39; public static final int TOTAL_PRIZE = 50; public static double winning; public static double cost; public static int round; …

Software Development java
Member Avatar for stultuske
0
274
Member Avatar for moparman426

alright so i have a problem iam working on i have to enter a 7 digit phonenumber then generate a word so example 639-2277 word mean the word newcars or any number would come up as a word well i cant get words to generate only random letters annd right …

Software Development vb.net
Member Avatar for Reverend Jim
0
173
Member Avatar for RoqueyB

I am supposed to have a while loop that asks for a number until the number is a negative. Then I am supposed to get a total of all of the numbers EXCEPT the negative number. As of right now my program adds up the absolute value of all the …

Software Development programming-construct python
Member Avatar for TrustyTony
0
159
Member Avatar for TigerTeck

Grade2 Class.... [CODE]public class Grade2 { public Grade2(double input) { Grade = input; } public String getLetterGrade() { if(Grade==(4.0)) message="A+"; else if(Grade>=(3.85)&&Grade<=(3.99)) message="A"; else if(Grade>=(3.7)&&Grade<=(3.8499999)) message="A-"; else if(Grade>=(3.01)&&Grade<=(3.3)) message="B+"; else if(Grade>=(2.85)&&Grade<=(3.00)) message="B"; else if(Grade>=(2.7)&&Grade<=(2.8499)) message="B-"; else if(Grade>=(2.01)&&Grade<=(2.3)) message="C+"; else if(Grade>=(1.85)&&Grade<=(2.00)) message="C"; else if(Grade>=(1.7)&&Grade<=(1.849999)) message="C-"; else if(Grade>=(1.01)&&Grade<=(1.3)) message="D+"; else if(Grade>=(0.85)&&Grade<=(1.00)) message="D"; …

Software Development java java-swing
Member Avatar for TigerTeck
0
145
Member Avatar for mehnihma

I have a problem with case sensitive input my options are s and b and how to make a program when I input capital B or S to continue? [CODE] // options for selling and buying stocks System.out.println("\n"); System.out.println("Options as single upper or lower case character : "); System.out.println("\tB to …

Software Development java
Member Avatar for mehnihma
0
153
Member Avatar for danthevan

Well I was an old vb.net programmer,but not very professional and so with Java. I know the basics stuff how to think and how/why to write variables, methods, functions, threads, networking using streams or packets, and even I can write a database program which retreive records and insert records in …

Software Development android java java-netbeans
Member Avatar for JamesCherrill
0
207
Member Avatar for gsting_88

How to verify email address whether exist or not in asp c#? I have search google about it, but there are no one clear's solution.. I need all help!!! Thank You.

Software Development asp asp.net c# email
Member Avatar for Mitja Bonca
0
302
Member Avatar for TrustyTony

Here is class that can be fed directly from split stream like one number per line file (or [URL="http://www.daniweb.com/software-development/python/code/321725"]generator producing 'words'[/URL] from multiple numbers per line).

Software Development file-stream mathematics python
Member Avatar for Gribouillis
0
610
Member Avatar for daniwaber

Can I stop updating the user display of a control (rich text box) temporarily? I want it to process what I tell but not change how it looks for just a small piece of code. Please help :)

Software Development display vb.net
Member Avatar for Reverend Jim
0
171
Member Avatar for thendrluca

This is my first post on daniweb :) and i am a beginner in C programming and i don't know so good english :) sorry! This is my program My problem consist of I run the program and i can't get to the [B]scanf("%c",&q);[/B] [I]/* Row 21 after printf. */[/I], …

Software Development c pascal
Member Avatar for thendrluca
0
339
Member Avatar for haka007

Hello Members, Would anyone please take a look at my attached excel files which is a commodity exchange's end of the day data file. This is a free copy which anyone can download from their websites. Those are ([url]www.mcxindia.com[/url]) & ([url]www.ncdex.com[/url]). Now my query is in those two files there …

Software Development microsoft-office visual-basic
Member Avatar for haka007
0
290
Member Avatar for sk8ergirl

how can I find mode in java using arrays, if statement or for loop I have another question I want to ask the user to input number and then draw triangle like this [url]http://www.thebestdata.com/FileArchieve/2434_File1_1.PNG[/url] how can I do this

Software Development java
Member Avatar for sk8ergirl
0
347
Member Avatar for musikluver4

I have been doing java for almost 3 years now, am just starting to learn Objective-C as of this past June. Been writing a few programs on my own and writing programs for the exercises in 2 very cool Cocoa/objective-c books. My question is how do I, coming from Java, …

Software Development java objective-c
Member Avatar for anilkumar-m
0
268
Member Avatar for siddiqui_1985

hi everyone, as title said all, i need actually to find a vowel(a,e,i,o,u) in a string. it counts how many vowels are in the string that's fine but i need to find a vowel too.. any idea how to achieve this ? [code]import java.io.*; import java.lang.*; public class VowelsExample { …

Software Development java
Member Avatar for stultuske
0
717
Member Avatar for Zssffssz

Ok this comes as two questions: what is the best variable for storing bianary data and how would I send That through a XOR gate? When I searched it didn't really do anything because XOR is a binary operator. I remember how to open o file in binary form from …

Software Development c++
Member Avatar for mzimmers
0
121
Member Avatar for red711

Hello, I need help to combine a c-program using curl(to retrieve txt files from internet) and another c-program using popen. currently the popen is using the command ls -l (to list the current folder in terminal). I have 2 files, the first one is curl program, which have to retrieve …

Software Development c file-stream
Member Avatar for L7Sqr
0
852
Member Avatar for mike2828

my program works fine but i dont know why when i debug the program the shapes are coming out without me pressing the buttons [CODE]import java.applet.*; import java.awt.*; import java.awt.event.*; public class AnAppletWithButtons extends Applet implements ActionListener { Button button1, button2; int r, g , b; Color color; boolean drawLine …

Software Development gui java
Member Avatar for mKorbel
0
146
Member Avatar for ckwolfe

Hello I have a simple issue that is not a compilation or runtime issue, but an aesthetic problem that I can't find a function for. Basically I've created a GUI window that visually represents a game board for my Reversi gameboard. I've implemented the GUI and the Reversi gameplay and …

Software Development gui java
Member Avatar for mKorbel
0
7K
Member Avatar for greatcornholio

Hi all, Im new to java, and im working with j lists importing data from sql server. Thing is that i can import the data from the sql tables, but for some reason it does not refresh properly. Thing is that when the frame is opened the list is filled …

Software Development java java-netbeans java-swing
Member Avatar for mKorbel
0
242
Member Avatar for pfm200586

Hello everyone, I have to create pig latin game which I did and it is working. The problem is I coded it so it can translate one word. I need to know how can I make it translate a sentence that I don't know how many words in it. Here …

Software Development vb.net
Member Avatar for codeorder
0
147
Member Avatar for StephNicolaou

Hey guys, I've drawn a grid, and I have a label contatining a picture. Whenever I change the location of this label, the grid dissapears until I resize/move the frame. Any suggestions on best method to buffer these grid lines? They aren't going to be moving graphics or anything like …

Software Development image java
Member Avatar for StephNicolaou
0
154
Member Avatar for kpeckly

below is my code, i want to get a record base on a specif invoice number,please help me out cos this thing has giving me sleepless nite.thanks in advance. Imports System.Data.Sql Imports System.Data.SqlClient Public Class Invoice Private Sub Invoice_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Call connectDatabase() …

Software Development display vb.net
Member Avatar for lolafuertes
0
201
Member Avatar for Lendaanx

Need help getting my add, save, search, modify, delete buttons to work I can get them to show up in the GUI but pressing them does nothing. I need the save button to save file to index.dat in folder c:\\data\ folder and create that folder if it doesn't exist [CODE]import …

Software Development gui java java-swing
Member Avatar for JamesCherrill
0
158
Member Avatar for techyworld

I've already write a program which allow you to enter name, address and write in the file name,length of name, address ,length of address. File is called "input.dat" Now i need to write another program that reads the file "input.dat" (the one above), displays the name, the size of the …

Software Development c
Member Avatar for thines01
0
112
Member Avatar for Mike Askew

Hi all, The project I am currently working on is an Address Book which works off a csv (specification takes the mick as a database would be so much easier), the method to write the lines of information into the CSV is in the class DataLayer and takes a String: …

Software Development file-system
Member Avatar for Mike Askew
0
166
Member Avatar for amture101

hey guys, I'm making a small app that make a Jable and saves the table model then loads the table model and set it to the table interface and both saving and loading is in seperate frames. [CODE] // Saving the info String ufname = Fname.getText(); String ulname = Lname.getText(); …

Software Development gui java
Member Avatar for amture101
0
130
Member Avatar for C++newbie chick

Hello guys, I'm trying to make it so that the user can opt to change student's course code or credit points (they can choose to change neither, either or both) in case 5 of my main switch statement. The problem is, the loop doesn't end after you choose to do …

Software Development c++ ios programming-construct
Member Avatar for Ancient Dragon
0
318
Member Avatar for subone

Hi I have this problem where I tell the user to prompt 10 integers separated with spaces. And then I have to output the same numbers the user entered and then output max and min numbers. So How can I get the maximum value of these multiple integers? This is …

Software Development java
Member Avatar for JeffGrigg
0
262
Member Avatar for ram619

can anyone please tell me whats actually happening in this code. Seems to be as if incremented pointer is pointing to the next bit of same int. Answer is 2,0 Thanks in advance [code=c] #include<stdio.h> #include<conio.h> void main() { int arr[3]={2,3,4}; char *p; p=arr; p(char*)((int *)(p)); printf("%d",*p); p=(int*)(p+1); printf("%d",*p); getch(); …

Software Development c
Member Avatar for Narue
0
358
Member Avatar for BugMaster

Hi, I'm stucked with a problem, hope somebody can help me. The problem is that i have a string with webpage source and i need to retrieve all the text instances between <pre> and </pre> tags, i already know how to retrive the first ocurrence using: [CODE] dim start as …

Software Development html-amp html-css vb.net
Member Avatar for lolafuertes
0
135
Member Avatar for kelvin924

The user input four integer numbers in same line,for example,4857 After the input, I would like to place the four numbers into array The result ,array[i] = j i is the position , j is number of input. how to do it? must require to use substring? any other solutions?

Software Development java
Member Avatar for hiddepolen
0
97
Member Avatar for overrated

I need help with incrementing my score. I tried ++wins..., wins++..., wins += 1..., wins = wins + 1... and so far nothing works. I just keep getting 0. My main class: import java.util.Scanner; public class Test { public static void main (String [] args) { Rock game = new …

Software Development java
Member Avatar for JamesCherrill
0
120
Member Avatar for pikalife

What should I write within a while loop that allows me to keep on divding a number by 2 until it meets certain conditions. for example while(condition) { //what should i write here to have a double that divides by 2 until it meets the condition. }

Software Development java
Member Avatar for JamesCherrill
0
162
Member Avatar for StephNicolaou

Hey guys, I've constructed the main class to refer to a variable in it and I receive a stack overflow error. Any suggestions on the causes of this error, I've used this method previously and have not got this before. [code] In other class: MainClass class = new MainClass(); errors: …

Software Development java
Member Avatar for JamesCherrill
0
207
Member Avatar for ishaan3731

i am doing a project on student information system using file handling...i made my own project but it didnt work....i read many books but actually the main problem is that i lack logic.....i have found from the net this project but the output on the notepad file is giving unusual …

Software Development c++ file-system ios
Member Avatar for ishaan3731
0
361
Member Avatar for daniwaber

I want to make my own file type with my own extension via vb.net. I mean that when we go into "My Computer" and select Folder options from the menu, there is a file types tab and I can add it there. Can I add it through vb.net 2005? Please …

Software Development vb.net
Member Avatar for daniwaber
0
123
Member Avatar for Interista

Hi friends im trying to get my menu working but i just cant seem to get it working ... these are my 3 errors 9 " In file included from main.cpp" 47 " no matching function for call to `Menu::Menu(const char[7])' " 49 "std::string' has no member named 'add' " …

Software Development c++
Member Avatar for Interista
0
129
Member Avatar for linhj

Hi All, I wanna to search a pattern in a txt file called A which is a 2D matrix from another file called B. The requirment is that I need to output the number of matched pattern in file B. But I encounted difficulty of counting the number. Basically I …

Software Development c file-stream file-system
Member Avatar for Adak
0
2K
Member Avatar for glut

What is cout? It's a variable, yet it can print stuff on the screen. Also, << (Left Shift Operator) isn't like the one for the variable cout. How does cout work? cout isn't even a macro / #define.

Software Development c++
Member Avatar for vidit_X
0
148
Member Avatar for Noob_in_progs

Private Sub frmRegistration_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load cn.Open() cmd.Connection = cn cmd.CommandText = "Select * from Registration" adp = New OleDb.OleDbDataAdapter(cmd) adp.Fill(ds, "mytable") 'Binding Statements Follow bs = New BindingSource(ds, "mytable") 'Bind the name field to first textbox, type of data as text Me.txtCustID.DataBindings.Add("text", bs, …

Software Development vb.net
Member Avatar for Noob_in_progs
0
415
Member Avatar for cecsFTL

In this project I'm suppose to use a old project and create a menu for it. Basically "Create a menu system so that the user may choose between the various Roach functions (create roach colonies, breed and spray roaches and get the current number of roaches). Make sure you display …

Software Development java
Member Avatar for cecsFTL
0
391
Member Avatar for renzlo

Hi Guys, How's your day? I would like to ask, since I'm a beginner in vb .net, I can't figure this out. Here's the scenario: I have a folder with lots of folders inside and inside those folders are .tif files. I want to create a program that will rename …

Software Development vb.net
Member Avatar for codeorder
0
530
Member Avatar for Zssffssz

Ok pretty simple: How to make internal speaker beep on Linux. For personal use does not need to be portable. I know I have an internal speaker... BIOS loves that thing...

Software Development c++
Member Avatar for Zssffssz
0
168
Member Avatar for VengefulToast

Hey forum, our professor assigned us a program we have to write in assembly language and I would love to have help on it. [QUOTE]Write an upper-to-lower case and lower-to-upper case conversion program. When the user inputs a letter, your program should convert it to upper case if it is …

Software Development assembly c++
Member Avatar for D33wakar
0
581
Member Avatar for plasticfood

my program includes pictures and audio, do i have add that to my project and then create a jar file? or i just have to include the source file and that's it?

Software Development audio java
Member Avatar for plasticfood
0
177
Member Avatar for Joey7

Hello All, I'm working on my first Python plot in my programming class this week. My assignment is to write a program to plot data contained in a csv format. Here is the data: "Bowl number", "Date", "Bowl location", "Winner", "Number wings eaten" "I", "1/29/1993", "Wyndham Franklin Plaza Hotel", "Carmen …

Software Development pdf python
0
165
Member Avatar for ttamilvanan81

Hai i have using the checkbox in for loop. I need the urgent help from anyone, for example in the loop there is having 5 checkbox if i checked 3 of the ckeckboxes and 2 of the checkboxes are unchecked. I need to get the values for checked checkboxes and …

Software Development java
Member Avatar for stultuske
0
540
Member Avatar for yurigagarin

Hi all, I have this code here and I like to save all the messages into 1 text file name contimer.txt. I've tried to do [CODE]FILE *output fopen_s(output,"comtimer.txt", "ww");[/CODE] right before the function Timer 1 and change every "printf" function into fprint_s(f, "Message", variables) but it does not help. Could …

Software Development c++ data-structure
Member Avatar for yurigagarin
0
330

The End.