132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Labdabeta

Hello, I have a file which I need to read which contains some unusual characters (EG: '╠') and I need to be able to read it and convert those characters to numbers. As an example of what I am looking for would be code that reads a file and prints …

Software Development c++
Member Avatar for Labdabeta
0
439
Member Avatar for ashley.vanhoesen.7

I am trying to create a palindrome checker using a single stack and pass by reference method. I just have to write the evalPalindrome() method and then I input it into a web application which holds the main. For some reason, however, when the main is calling the pass by …

Software Development c c# c++
Member Avatar for David W
0
695
Member Avatar for cnsk90

#include<stdio.h> #include<math.h> int main() { int n,nstart,nstop,nstep,i,j,zNumber; ` printf("Please enter a value of a positive integer nstart: "); scanf("%d",&nstart); printf("Please enter a value of a positive integer nstop: "); scanf("%d",&nstop); printf("Please enter a value of a positive integer nstep: "); scanf("%d",&nstep); printf("Number\t\tzNumber\n"); printf("------\t\t-------\n"); n=nstart; zNumber= double pow(double_n,double_i); while(i<=nstop){ zNumber = …

Software Development c++ mathematics
Member Avatar for David W
0
780
Member Avatar for LiquidCloud

So i'm in ap computer science right now and ArrayList are confusing the **** out of me. We're working on a program in which we have to create a method that adds an "ap exam class" to an ArrayList heres what it looks like: private ArrayList<APExam> myExams; myExams = new …

Software Development java
Member Avatar for LiquidCloud
0
155
Member Avatar for tolatallest

i need parallel program that can sort 500,1000,1500,2000 numbes in bubble sort,selection sort,insertion sort and merge sort.

Software Development algorithm c++
Member Avatar for mike_2000_17
0
116
Member Avatar for OceanDesigns

Hi guys im a beginner at programming i started a book for beginners im only on lopps now but as uasuall i googled and wondered off into classes i keep getting this error, i initialized the float variables in the class by using the constructor. I'm not sure if this …

Software Development c++
Member Avatar for OceanDesigns
0
118
Member Avatar for nyepoypo

can anyone help me to put a countdown timer in a dialog box. i want to prompt the user when the time expires. tnx!

Software Development java
Member Avatar for Xabush
0
1K
Member Avatar for anisha.silva

Hi, I want to know how do i write the grammer for the program below in JavaCC. app(name : 'First App') { View(id: top) { Label(id: l1, text: 'Hello') Button(id: b1, text: 'Press') Button(id: b2, text: 'Exit') } } appreciate a reply thanks

Software Development ide java
Member Avatar for anisha.silva
0
316
Member Avatar for tadas.bareikis

Hello community. I'm 16 years old, a 10th grade student. My question is: How to learn programming? By that I don't mean that i want to learn a programming language. I am familiar with Python and C/C++(a bit) syntax. I want to know how to get experience, how to evolve, …

Software Development
Member Avatar for Schol-R-LEA
0
206
Member Avatar for glao

If I want to multiple 2d arrays as 1d how should I do it? I mean ,I have a 2d array and I map it as 1d: for(int i=0;i<rows*cols;i++) A[i]=... I know how to multiply 2 arrays as 2d ,but representing them as 1d?

Software Development c++
Member Avatar for glao
0
2K
Member Avatar for tomas.fillipus

How can i code a program in visual basic.net that when a control for color or font is clicked the appearance of the text in the text boxes is altered according to the following rules 1. If the check box text box 1 is checked the appearance of the text …

Software Development vb.net visual-basic
0
79
Member Avatar for Mohamed_31

A space shuttle measured the distance between earth and Mars as a very large integer number of centimeters. Write a C++ program that reads such distance as centimeters and displays the kilometers, meters and centimeters equivalent.

Software Development c c# c++
Member Avatar for Elixir42
0
147
Member Avatar for tharindu123

give me coding for search and edit a file in c++

Software Development c++
Member Avatar for Elixir42
0
523
Member Avatar for leonardo.hieu

Hey guy. I'm a new beginner in C++. I'm have some problem with my new code I have just written. I try to draw a triangles with from the characters "*". But it isn't work like I want. Here is it. `#include <iostream> using namespace /* Draw a triangles */ …

Software Development c++
Member Avatar for David W
0
144
Member Avatar for chan6212

How to retrieve all tables from database dynamically using servlets and jsp...please help me

Software Development java
Member Avatar for stultuske
0
2K
Member Avatar for sukanya.seluka

i have a serial id, and i should fix that only 100 entries are allowed.How can i do this by code? and also how can i automatically generate consecutive numbers i.e from 1 to 100.Please help me frnds.I have to complete my project soon.

Software Development visual-basic
Member Avatar for sukanya.seluka
0
168
Member Avatar for Gupta_1

hi friend i would like to make a programe in c++(code block) . which include the fallling candy, and the candy is collected by a baby below. so could you help me to make that game in c++

Software Development c++ gaming
Member Avatar for Ancient Dragon
0
133
Member Avatar for prajwaludupa

well i tried to execute the following code.. #include<process.h> #include<conio.h> #include<dos.h> #include<stdlib.h> #include<stdio.h> void main() { system("dir"); getch(); } but it did not execute the system command... what went wrong?? plz mail me at [email]prajwaludupardx_369@yahoo.co.in[/email]

Software Development c++
Member Avatar for sri.voma
0
681
Member Avatar for hvebsr

I want to put the path and name of a spreadsheet, the page and number of pages and the date and time into the footer(s) and display it in Times New Roman 6 pts. I made the following macro: Range("A1").Select ActiveWindow.View = xlPageLayoutView` Application.PrintCommunication = False With ActiveSheet.PageSetup .LeftFooter = …

Software Development perl visual-basic
Member Avatar for hvebsr
0
296
Member Avatar for RevathiSRS

Hai can u pls let me know how to creae chart report in windows aplication C# by taking values from database.??

Software Development c#
Member Avatar for humorousone
0
262
Member Avatar for humorousone

In the application i'm working on, information will be saved to a database file which is located in the same directory as the executable application. In order for this file to be accessable for the executable while in a visual studio project, i would usually place it in the debug …

Software Development visual-studio
Member Avatar for humorousone
0
233
Member Avatar for Christoffer_S

Hi, First of all, I'm a newbeginner in C++. Ok, basically I'm tring to make a calculator with functions. Every function calculates either addition, subtraction, division or multiplication, pretty simple. Though I can't get it to call these functions! Here, take a look at my code: #include <iostream> using namespace …

Software Development c++
Member Avatar for Schol-R-LEA
0
646
Member Avatar for Grazel

"DELETE FROM tbl_status where id "= & selecteditem Hi .. i have a problem here.. the query i have for delete button is wrong.. i raelly don't know what is wrong with this code.. someone help please.. this what i've gone so far..

Software Development vb.net
Member Avatar for Reverend Jim
0
113
Member Avatar for محمد_44

How i can make a Matrix by using 2 dimension arrays and function ? please i need answer thanks.

Software Development c++
Member Avatar for David W
0
133
Member Avatar for asif49

What's a good software development methodology to follow for a project where you initially know nothing. So an experimental project where you will need to seek out APIs and so on as you carry out research and figure out what needs to be created. I'm required to follow a design …

Software Development java
Member Avatar for JamesCherrill
0
142
Member Avatar for happygeek

The average DaniWeb member if not already au fait with Pastebin.com is almost certainly aware of something like it. A pastebin has become, for many programmers, a default tool in the coding box and for very good reason: it makes sharing large quantities of code very easy indeed. Of course, …

Software Development abuse cybersecurity
Member Avatar for happygeek
0
1K
Member Avatar for phunsukh.wangdu.3511

could you please help me on where i'll get the definition of all the built in function of c#. and the buit in functions that used to create windows application form. Please this is really urgent.....

Software Development c# microsoft
Member Avatar for KushMishra
0
386
Member Avatar for overwraith

So, I recently wrote a program for a class that involved writing an aggregate class to a file. This particular program had an order object, and each order could have 10 ice cream cones, so a ToString() of the class would look like this: Order Number: 1 Customer #1: Harrington, …

Software Development file-stream
Member Avatar for cgeier
0
206
Member Avatar for aabbccbryanmark_1

Public Function analyzeTotalFilesSize(Path) As Integer Dim lookInDirectory As New DirectoryInfo(Path) For Each Directory As DirectoryInfo In lookInDirectory.GetDirectories analyzeTotalFilesSize(Directory.FullName) Next For Each File As FileInfo In lookInDirectory.GetFiles If _ListOfFiles.Exists(Function(x) x.ToString = File.Extension.ToLower) Then _SizeOfFilesToCopy += File.Length / 1024 End If Next If _SizeOfFilesToCopy < 1024 Then errorhere -------->> Return _SizeOfFilesToCopy.ToString("#,##0.00") & …

Software Development vb.net
Member Avatar for GeekByChoiCe
0
183
Member Avatar for jalferez1

i asked this on the C++ forum but someone told me to try it here on C. here's my first program there are some error with this program, i can't debug it. what's the problem? #include <stdio.h> #include <conio.h> #include <ctype.h> #include <string.h> int main(void) { int strlen, a, b,c; …

Software Development c
Member Avatar for jalferez1
0
219
Member Avatar for MistaGeorge

So what I'm trying to do is pass the values of one class to the other. So with the code i have i believe what is happening is im not passing the values. But im passing the referenced location. import java.util.Arrays; public class numbers { int[][] x = {{6,10,14,31,32},{12,23,12,11,22}}; public …

Software Development java
Member Avatar for MistaGeorge
0
429
Member Avatar for anestistsoukalis

My main idea is to find an algorithm ( Java ) that takes the random letters which someone has typed in a JoptionPane for instance and then instantly by pressing "Find words" i would like the program to derive all those words that match my letters from a dictionary stored …

Software Development algorithm java
Member Avatar for iamthwee
0
221
Member Avatar for blazemadej

My program is almost done, but when i try to convert a number into cents, it does not calculate the cents properly. So if i enter 325, it says i have 3 dollars and 325 cents and my running total is not working. Each time NormalizeMoney is called it should …

Software Development c++
Member Avatar for David W
0
4K
Member Avatar for Gen_2

i can't find the error converting data type varchar to numeric pls help.. i already wasted a lot of hours to identify this error. conn = New SqlConnection("Server=GEN-PC;Data Source=GEN-PC\SQLEXPRESS;Initial Catalog=Brgy;Integrated Security=True;") If ResidentialComboBox.Text = "" Or LNameTextBox.Text = "" Or FNameTextBox.Text = "" Or MNameTextBox.Text = "" Or GenderComboBox.Text = …

Software Development open-source vb.net
Member Avatar for Gen_2
0
437
Member Avatar for trade19

Hi I am having a problem with the "nextz" part "Click Here to see the new winning number." I want to kill this button after it shows the winning number. but it prints another number every time I click the button. how can i click once show once. Thanks for …

Software Development python tkinter
Member Avatar for trade19
0
175
Member Avatar for johnnyboy123

Hi everyone, I am quite new to vb.net. Recently, I've been learning about Oledb commands and it's ability to save records in a form to a database. So, I started a project and now I am stuck. Here's the scenario: The form comprises of several comboboxes, a listview box and …

Software Development listview microsoft-access vb.net
Member Avatar for Reverend Jim
0
471
Member Avatar for Subhashini.V

using vb.net and sql query i need to join multiple tables to view in one datagridview control .In each table i need to take only one field and want to dislpay all in the datagridview control...can anyone provide me the apat code for this

Software Development sql vb.net
Member Avatar for Begginnerdev
0
314
Member Avatar for b.boudj

here a piece of vb code where i have a problem: If G_ObjConnectionTemp.State = ConnectionState.Closed Then G_ObjConnectionTemp.Open() End If ' at this stage the connection is verified to be open Dim Obj_CommandF As New OleDbCommand("delete from ficheclient", G_ObjConnectionTemp) Using G_ObjConnectionTemp Obj_CommandF.ExecuteNonQuery() End Using Dim xx = G_ObjConnectionTemp.State.ToString ' at this …

Software Development vb.net
Member Avatar for Begginnerdev
0
127
Member Avatar for Wilfred_2

A blue passenger train moves southwards at a speed of 120km/hr. Unfortunately as it enters a junction it collides with a brown goods train moving northwards. The collision happened 50 minutes after the goods train takes off. Using a Java program illustrate the answer.

Software Development java
Member Avatar for JamesCherrill
0
124
Member Avatar for boris90

Hi! I've had this problem for a couple of days now, and I don't know what it is. My Visual Studio 2012 project worked perfectly before, but now it just hangs at the "Generating code..." part. It *litteraly* takes forever. I once left it for more than 30 minutes, and …

Software Development c c# c++ visual-studio
Member Avatar for dreslough
0
2K
Member Avatar for john.kane.100483

Hi really need help. I'm new to programming and my teacher just gave a problem program "Conversion from any base to base 10" . So search in google and find this source code. I just combined the source code. This will run if it not combines. But I want this …

Software Development c++
Member Avatar for David W
0
250
Member Avatar for Elixir42

Hi Kind-DaniWebbers, How do you initialise a boost::archive:binary_oarchive in a different place to where you declare it? So: class CBase { std::ofstream m_ofs; boost::archive:binary_oarchive m_binOA(); // <== default constructor virtual void Open(std::string& s) = delete; }; class CDerived : CBase { void Open(std::string& s) override { CBase::m_ofs("filename.bin", std::ios::binary); CBase::m_binOA(CBase::m_ofs, /*flags*/); …

Software Development c++ ios
Member Avatar for Elixir42
0
426
Member Avatar for vegaseat

Here is an example on how to put at least lines and circles onto your windows console display. Yes, you have to jump through a hoop to do it. Dev-C++ can do this thanks to some BCX generated code. You have to set up your project as a Console Application …

Software Development c++
Member Avatar for petersvp
0
10K
Member Avatar for Mohamed_30

how to run a jar file by a java code (within ur IDE)?

Software Development ide java
Member Avatar for JamesCherrill
0
235
Member Avatar for balamurugan.rajendran.14

Hi, Could someone please help me to optimize the attached code file. as i'm new to c# world. Thanks in advance cheers

Software Development asp.net seo
Member Avatar for JorgeM
0
227
Member Avatar for kumar89hitesh

how does xml work in web development? Please give me suitable example.

Software Development xml
Member Avatar for jwenting
0
121
Member Avatar for ashwinshenoy

Hi All, I have just completed my project in VB 2008 express edition. Now I want the project to be converted to .EXE so that I can deploy it on other computer / laptop. Could any one please help.... Regards, Ashwin

Software Development vb.net visual-basic
Member Avatar for joshl_1995
0
2K
Member Avatar for Dostoyevsky

Hi All, I've just joined your community hoping to get help with Visual C++ and Visual Studio 2008. I'm not much of a developer and different people were putting this together for me so the code is a bit messy as well. Right now I have everything in place but …

Software Development c++ visual-studio
Member Avatar for Dostoyevsky
0
256
Member Avatar for johnef_sh

I am working on a Google Map api3, I am adding points on the map and save it to my database this part is working fine now in the end of adding the map and click on save and close I need to redirect to another page which will tell …

Software Development google java javascript
Member Avatar for johnef_sh
0
252
Member Avatar for hvebsr

When I format the date so that a field gets the value as year-month-day-hour-minute-second, I omly see the date-portion, the rest is filled with zeros. I use: strDT = Format(Date, "yyyymmddhhmmss") I get '20140226000000' What goes wrong, or how can I get the desired result?

Software Development visual-basic
Member Avatar for hvebsr
0
97

The End.