132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sss93

Hey so for a couple of months now Ive been facinated with c++ and have been going through various tutorials and examples of creating console based applications dealing with arrays,pointers, classes, etc.So I really want to get into the GUI side of it. But from word of mouth I hear …

Software Development api c++ gui windows-api
Member Avatar for mike_2000_17
0
386
Member Avatar for bobejoe

can anyone give me a cool c++ program using alloc and free you can use c also

Software Development c++
Member Avatar for bobejoe
0
109
Member Avatar for ANKUR1806

i want to display hindi text in label but there is no option of hindi font in the font property of label ?

Software Development c# display
Member Avatar for nmaillet
0
436
Member Avatar for ringo_tech

Hi I just completed my database hospital application and now i'm ready to export it into a JAR file. I palced the DB in the classes subfolder and played with ClassLoader but got nothing! I used the following code String driver = "sun.jdbc.odbc.JdbcOdbcDriver"; String url="jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=f:hospitalDb.mdb;}"; any idea …

Software Development java microsoft-access
Member Avatar for ringo_tech
0
298
Member Avatar for ctclements

int wordpercent = ((count/totalwords)*100); JOptionPane.showMessageDialog(null, "Count: " + count); JOptionPane.showMessageDialog(null, "Words: " + totalwords); JOptionPane.showMessageDialog(null, "Character Count: " + length); JOptionPane.showMessageDialog(null, previousletter); JOptionPane.showMessageDialog(null, nextletter ); JOptionPane.showMessageDialog(null, "Your word makes up " + wordpercent + "% of the document"); This is the final part of my program code. The program lets …

Software Development java
Member Avatar for ctclements
0
207
Member Avatar for complete

Why is 'BusyIndicator' not found? I am using Silverlight 5 toolkit and I am references that version of Silverlight.Windows.Controls.Toolkit in my silverlight demo. But I get this error and I do not know what to do Error 16 The tag 'BusyIndicator' does not exist in XML namespace 'clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit'. C:\Users\Bobbi\Documents\Visual Studio …

Software Development assembly visual-studio
Member Avatar for nmaillet
0
287
Member Avatar for complete

How To Modify An Element in the Dictionary Class? ======================================= C# has this cool Dictionary class that you can use like a Hash Table. Is there a way of changing the value of an indexed element without resorting to removing it like this? int value = runningcount[city]; runningcount.Remove(city); runningcount.Add(city, ++value);

Software Development
Member Avatar for complete
0
104
Member Avatar for rajat.sethi93

#include<stdio.h> #include<conio.h> void main() { float a[5][5],x[3];float t,s; int i,j,k; printf("enter a matrix of order 3*4"); for(i=0;i<3;i++) { for(j=0;j<4;j++) { scanf("%f",&a[i][j]); } } for(i=0;i<3;i++) { for(j=0;j<4;j++) printf("%f ",a[i][j]); printf("\n"); } for(i=0;i<=1;i++) { for(j=i+1;j<=2;j++) { t=a[j][i]/a[i][i]; for(k=i;k<=3;k++) a[j][k]=a[j][k]-t*a[i][k]; } } printf("The upper triangular matrix is as\n"); for(i=0;i<3;i++) { for(j=0;j<4;j++) printf(" %f",a[i][j]); …

Software Development c++
Member Avatar for rajat.sethi93
0
208
Member Avatar for dadon1991

Hello everyone first time posting here, I have spent hours trying to figure out how to write this program that our instructor has given to us as an assignment. http://en.m.wikipedia.org/wiki/Bogosort#section_3Instructions are bellow Frequently, the temperatures on the news are given in Centigrade rather than Fahrenheit. The formula for conversion is …

Software Development c++
Member Avatar for dadon1991
0
245
Member Avatar for jeets1892

I am currently working on a dice game. Where The user rolls a pair of dice first, so lets say he rolled and Dice 1 = 2 and Dice 2 = 3. So the total is 5 now. Now, he needs to get 5 (total) again in order to win, …

Software Development c++
Member Avatar for WaltP
0
456
Member Avatar for Dendei

using System.Text; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { Cassandra myObject = new Cassandra(); string a ="söt"; myObject.hejsan(a); System.Console.WriteLine(a); Console.ReadLine(); } } class Cassandra { public string hejsan(string value) { value +="Cassnadra"; return value; } } } how come this wont work? all i get is …

Software Development
Member Avatar for Dendei
0
172
Member Avatar for Dendei

hey i want to return my whole string array but the program wants me to specify one public string CreateCards( string[] Cards) { Cards = new string[52]; for (int a = 0; a <= 51; a++) { if (a <= 12) { Cards[a] = " Hjärter " + (a+1).ToString(); } …

Software Development
Member Avatar for Dendei
0
319
Member Avatar for gelmi

Hi, can someone help me about this problem or suggest some pseudocode? if i input this numbers 12 ,24, 100 output should be YES, YES, YES i'm confused in writing the solution in code.

Software Development java
Member Avatar for NormR1
0
141
Member Avatar for bcd16

Hello, i need your help. Does anybody knows the code for automatically records who logged in and the other users cannot edit what they have inputed, only the datas they input can be edited? i have the log in form already, and the database as well. the only problem is …

Software Development vb.net
Member Avatar for bcd16
0
281
Member Avatar for Alexkid

Hi There, I need to re-write any mention of .tellg() in my code as the function is not supported on the desired hardware. I have the following lines of code: getline(file,line); { std::istringstream stream(line); stream >> first >> second >> third >> forth; UINT32 file_pos = stream.tellg(); file_pos++; fifth = …

Software Development c++ file-stream
Member Avatar for vijayan121
0
756
Member Avatar for triumphost

I'm learning several languages. 5 at once but I took a liking to one specific feature of java. The This keyword. From their tutorial: /*Within an instance method or a constructor, this is a reference to the current object — the object whose method or constructor is being called. You …

Software Development c c# c++
Member Avatar for mike_2000_17
0
493
Member Avatar for equation

Hi everyone! I have a problem with a program - game of craps. The game plays with 2 dice. On the first roll the player wins if the sum of the dice is 7 or 11. The player loses if the sum is 2.3 or 12. Any other roll called …

Software Development c c# c++
Member Avatar for WaltP
0
2K
Member Avatar for lewashby

File "/usr/local/lib/python3.2/distutils/archive_util.py", line 52, in make_tarball tar = tarfile.open(archive_name, 'w|%s' % tar_compression[compress]) File "/usr/local/lib/python3.2/tarfile.py", line 1769, in open stream = _Stream(name, filemode, comptype, fileobj, bufsize) File "/usr/local/lib/python3.2/tarfile.py", line 421, in __init__ raise CompressionError("zlib module is not available") tarfile.CompressionError: zlib module is not available garrett@toshiba-laptop ~/Desktop/nester $ I'M getting the above …

Software Development file-stream printer python
Member Avatar for lewashby
0
170
Member Avatar for poojavb

Hello, I want to implement Change Listener in the Action Listener of a Button I have a color graph chooser and 2 buttons...Apply and Cancel to select the color of the color chooser i have implemented the Change Listener but I want the change listener to act on the Apply …

Software Development java
Member Avatar for poojavb
0
570
Member Avatar for ragnacrap

I got a problem in a program I'm working on here: String[ ][ ] applicant = new String[appno][2]; for (i = 0; i < applicant.length; i++){ System.out.println("Input applicant's name: "); appname = keyboard.nextLine(); applicant[i][0] = appname; System.out.println("Input applicant's position: "); apppos = keyboard.nextLine(); applicant[i][1] = apppos; } The input works, …

Software Development java
Member Avatar for NormR1
0
146
Member Avatar for Gus_19

New to .net and programming in general. With help from a friend, I just finished my first program, but with one somewhat small issue. Currently, I have a Winform for the user to enter data into. The form is divided up into 4 tabs. When the user finishes entering data, …

Software Development vb.net
Member Avatar for Reverend Jim
0
151
Member Avatar for sss93

Ive been handed a project for my studies asking me to make a ordering system for a theoritical restaurant. The system itself will run on a stand alone machine (platform not specified). The system requirement itself isnt too tedious, listing them down: * When an order is created, its status …

Software Development visual-basic
Member Avatar for deceptikon
0
184
Member Avatar for nada_fateha

Hi , I try to build mobile application , this application will know the book name you want and tell you price and Customer Reviews evaluation from amzon.com but the problem I can not read web page to get price and Customer Reviews evaluation from it by c++ code , …

Software Development c++
Member Avatar for Stefano Mtangoo
0
1K
Member Avatar for cjquines

Hello, new to python a bit. I get an indentation error at line 10, "m -= 1". Sorry if this is a repeated post, I've tried searching but found no solution. # calculates sum of squares of natural numbers print "Enter number of terms." n = raw.input("Terms? ") first_term = …

Software Development python
Member Avatar for want_learn
0
108
Member Avatar for dhada18

1. Design and develop a simple Student Registration Program to record the data related to the students. The user will enter the name, surname and age information of the student to the textboxes provided. The gender of the student will be initialized by using option buttons, since there are only …

Software Development visual-basic
Member Avatar for AndreRet
0
164
Member Avatar for alleybye

Hi, I have a problem on getting data from XML file. I am honestly have 0 knowledge on this. Here is the XML data content, i opened the XML file using notepad then pasted here. <?xml version="1.0" encoding="utf-8"?> <?mso-infoPathSolution name="urn:schemas-microsoft-com:office:infopath:Test-Form:-myXSD-2012-09-02T13-13-23" solutionVersion="1.0.0.55" productVersion="14.0.0.0" PIVersion="1.0.0.0" href="http://share.test.com/it/Test%20Form/Forms/template.xsn"?> <?mso-application progid="InfoPath.Document" versionProgid="InfoPath.Document.3"?> <my:myFields xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:pc="http://schemas.microsoft.com/office/infopath/2007/PartnerControls" …

Software Development microsoft-office sql xml
0
142
Member Avatar for habenero

This is what I want to do; I would like to generate some files (csv) with VB. For example for my fantasy sports teams I keep track of the teams stats, lineups and standings. All 3 for 24 weeks. So if I could generate (CSV) files such as filename-homers_lineup_wk_1 (CSV). …

Software Development gui visual-basic
Member Avatar for AndreRet
0
282
Member Avatar for rahul.ch

int [] ia1 = {1,2,3}; int [][] ia2; Object o = ia1; ia2 = new int [3][3]; ia2[0] = (int[])o; ia2[0][0] = (int[])o; Answer is "Compilation fails in last line" Explanation: Arrays are objects, and that each array dimension is a separate type. So, for instance, ia2 is of type …

Software Development java oop
Member Avatar for stultuske
0
212
Member Avatar for HibaPro

"SqlDbType.Time overflow. Value '3.00:00:00' is out of range. Must be between 00:00:00.0000000 and 23:59:59.9999999." Does anyone know what is the problem.

Software Development vb.net
Member Avatar for G_Waddell
0
190
Member Avatar for czxzxcXZ

Hi sorry to bother you. I have another problem with XSL file. I have to sort out the codes in numerical order the codes have four characters and four numerals for example, COMP2100 COMP2400 COMP3410 LAWS2202 LAWS2250 when I just do <xsl:sort select="code" order="ascending" /> it displays above result. However, …

Software Development xml
Member Avatar for Mike Askew
0
125
Member Avatar for kipslem

Hi All, I have intermediate knowledge in VB.Net coding. I have searched the web to find help with my issue but to no avail. I mean I can't find one that is helpful though there are some in Web based applications. I have an urgent issue where I want to …

Software Development mssql sql vb.net
Member Avatar for G_Waddell
0
685
Member Avatar for soujanya.bhat.184

Hi.I have written this code which capitalizes 1st character of each word in the string.All other letters of the word has to be in small letter.But i am not getting desired output.Plz tell me where i am going wrong.. #include<stdio.h> int main(void) { char string[]="hI i aM sOujanYa"; char string2[20]=""; …

Software Development c
Member Avatar for soujanya.bhat.184
0
171
Member Avatar for Dendei

hey i have a question how do i get my funktion to work in the design.cs? namespace Visma_projekt { public class BlackJack { public string[] Cards = new string[51]; public void SkapaKort() { System.Console.WriteLine("Ehhhh"); } } } i want to call the funktion from this code visma.cs into the form1 …

Software Development oop web-design
Member Avatar for Dendei
0
100
Member Avatar for daino

I'm trying to understand something. Best explained through an example. My understanding is that a Class Adapter (lets say written in C++) is for a class written in PHP (hypothetical). C++ - Class A - Adapter PHP - Class B - Adabtee. If I'm trying to access Class B through …

Software Development c++
Member Avatar for daino
0
210
Member Avatar for lscamaro

Okay, I want to start off saying that yes this is a homework assignment but no I don't just want the answer for it. I actually want to learn how to work this. Having said that, I was assigned to determine whether a number is a perfect number and print …

Software Development c++
Member Avatar for np complete
0
274
Member Avatar for vimalya

ihave a file containing data in the form of table with 5 columns and 10 rows the columns are separated by spaces . i have a to read the file line by line without reading the first line which is the header line.Please suggest me the code using python technology

Software Development python
Member Avatar for vimalya
0
164
Member Avatar for drogba123

Hi guys, I tried to get each line of the text file and convert it to SHA-1 formart then to binary but i could not get the output when i tried to do system.out.println the code: package hash; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.util.Formatter; import java.io.*; import java.security.DigestInputStream; import java.util.logging.Level; …

Software Development algorithm file-stream java
Member Avatar for drogba123
0
471
Member Avatar for navya.shalini

How to compare a value which is taken from JTextField with the database value???

Software Development java
Member Avatar for navyashalini
0
74
Member Avatar for newcoder310

Hi, My database is showing null value when I try to insert the file path I upload. protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); String name=request.getParameter("fileUpload"); String destPath = ""; String relativeDestPath=getServletContext().getRealPath(destPath); System.out.println("Relativepath is"+relativeDestPath); PrintWriter out = response.getWriter(); String fileName=name.substring(name.lastIndexOf("\\")); String pathName=name.substring(0,name.lastIndexOf("\\")); String destName = relativeDestPath+fileName; …

Software Development java
Member Avatar for newcoder310
0
117
Member Avatar for JohnKelly

Hi all I need to be able to drag and drop multiple files from Outlook into my vb.net application. Using e.data.GetData("FileGroupDescriptor") I can read using an IO.Stream the FileGroupDescriptor and detect the names of the files being dropped. If I then use e.data.GetData("FileContents") using a IO.MemoryStream I can detecty the …

Software Development file-stream vb.net
Member Avatar for JohnKelly
0
1K
Member Avatar for Jbvo

I am tring to call the same subroutine several times. The first time it runs it works correctly. Everytime after the first time it doesn't run the subroutine in order. I was wondering if anyone knows how to do this. Here is my current script. @echo off set description=Disabled %date:~4,2%-%date:~7,2%-%date:~10,4% …

Software Development shell-scripting
Member Avatar for Jbvo
0
172
Member Avatar for RobRTaylor

I hate to ask, but I need some help with code. I don't have any because I don't know where to begin. Here's what I'm after. I have a Sql CE database attached to the app, and a table called DUI_Cite_Numbers. There is two columns, DUI_Cite_Start and DUI_Cite_End. I need …

Software Development sql vb.net
Member Avatar for RobRTaylor
0
188
Member Avatar for labq5

How to show field/row serial number on detail data report without use data environment? simply view like this |Number|WO Number|WO DATE|ERROR DESCRIPTION|LOCATION|EXECUTOR NAME| ___________________________________________________________________ | [COLOR="Red"]1[/COLOR] |N0.000001|10-01-1| | [COLOR="Red"]2[/COLOR] |N0.000002|10-01-2| | [COLOR="Red"]3[/COLOR] |N0.000003|10-01-3| | [COLOR="Red"]4[/COLOR] |N0.000004|10-01-4| | [COLOR="Red"]5[/COLOR] |N0.000005|10-01-5| ___________________________________________________________________

Software Development visual-basic
Member Avatar for nihar1989
0
1K
Member Avatar for triumphost

Is there a way to do the following better? Current I write a set of pixels to a file called "PngFile.bmp". Then I read that file back in as a PNG encoded buffer.. Then I save that buffer back to the harddisk and delete "PngFile.bmp" /*std::fstream PngFile(TempPath, std::fstream::out | std::fstream::app …

Software Development c++
Member Avatar for triumphost
0
2K
Member Avatar for minimee120

I'm trying to learn how to write code in order to find the average of numbers I enter in my program, as well as every time I enter a number it records how many I have typed in, and finally the sum of all the numbers I have entered each …

Software Development java
Member Avatar for NormR1
0
248
Member Avatar for yehernpoh

Hi! I am using concert tech to link Cplex with C++ Coding. There is an error that pop up when I tried to run: error C2676: binary '+=' : 'IloNumVar' does not define this operator or a conversion to a type acceptable to the predefined operator Below is a portion …

Software Development c++
Member Avatar for WaltP
0
176
Member Avatar for minimee120

Hi guys, I'm a real beginner at using Java, it's taking me almost all day to get what I've put together so far, but I'm having a real hard time getting it to print out the average, total, and count when I run my code and input my numbers, Here's …

Software Development java
Member Avatar for minimee120
0
167
Member Avatar for Denden17

Hello . need help about sql statements im using this in my VB.net project about sorting Varchar2 datatype like a Number for example //I want this to be outputed. 1 2 3 4 4A 4B 5 6 But when i use this SELECT PUROK FROM TBLPUROK ORDER BY ldap(PUROK,10) ASC …

Software Development vb.net
Member Avatar for Reverend Jim
0
216
Member Avatar for beholdafrica

Please am a final year student in a university studying Bsc Information technology. am about to start my final year project and i need some titles, please feel free to suggest any title, weather it a project you have done before or not, please i need your support to select …

Software Development java
Member Avatar for stultuske
0
171
Member Avatar for llandis3

I have the set of code writen in vb 2010 to reformat a text file of ip address and give me ipsec command to block the ipaddress to my server. It takes a long time when I'm doing 1000+ Ip Address to block a country. This might not be able …

Software Development vb.net
Member Avatar for llandis3
0
144

The End.