132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for blueshiftdani

I want to deploy a database application in C#. I should write a script for creating a database and its tables. The script should work only at install time and setup the database automatically. Or tell me if there is another better way to do that. Actually I wanted to …

Software Development c#
Member Avatar for djjeavons
0
426
Member Avatar for Curious Gorge

I've been programming for a few years as a hobbyist but never actually created anything *useful* or complete. I've done the odd demonstration here and there. I want to get some ideas for software projects that I could work on to help me learn more. They don't even have to …

Software Development
Member Avatar for JamesCherrill
0
104
Member Avatar for Thomas_25

If i have an array of names char *names[100]; (stored as pointers to strings), how to find the name that appears the most times in the array and how many times it appears. (a) if only one “mode” (b) multiple “modes” I'm thinking of implementing something similar to selection sort …

Software Development c++
Member Avatar for tinstaafl
0
721
Member Avatar for Petcheco

Hello, guys. How would I deal with a variable that needs to be biggers than an unsigned long long integer? Thank you.

Software Development c++
Member Avatar for Petcheco
0
195
Member Avatar for idmanner

Hello, I've been working on this chat program which has a gui. Basically for now im just pressing start then connect to get a connection. Start is for the server window and if you press connect that will be the client window. I can send messages from the client to …

Software Development gui java
Member Avatar for idmanner
0
291
Member Avatar for Petcheco

Hello, guys. This challenge asks us to find the 10001-th prime. Here's my code: // A reasonable approximation is to say that the n-th prime is such that p(n) = n*(log n + log*(log n) - 1). // With that in mind, we can say that the 10001-th prime is …

Software Development c++
Member Avatar for Petcheco
0
258
Member Avatar for blueshiftdani

I am trying to store a value from a selected row from one table into another. My code is as follows. string CustomerID = textBox1.Text; SqlConnection con1 = new SqlConnection(ConfigurationManager.ConnectionStrings["ConString"].ConnectionString); con1.Open(); SqlCommand myCommand = new SqlCommand("Select CustomerID, Name from TableCustomer WHERE (CustomerID like '" + CustomerID+ "')", con1); SqlDataReader rdr …

Software Development c c# c++
Member Avatar for blueshiftdani
0
4K
Member Avatar for CattleOfRa

I've just started learning C++ on Linux. I have written a very small program which compiles but I get run time errors everytime I run it. The code is shown below: #include<iostream> int DoubleOf(int n); int main() { std::cout << "Double of 5 is " << DoubleOf(5); return 0; } …

Software Development c++ perl
Member Avatar for sepp2k
0
194
Member Avatar for bunkus

Is there anybody having a code snippet for using the Bresenham circle algo and modifiying it in a way so that it actually draws arcs with specified start and end angle instead of complete circles? A Bresenham algo for a complete circle in Python would be like this: [CODE]import PIL.Image, …

Software Development algorithm python
Member Avatar for vegaseat
0
8K
Member Avatar for gahhon

Based on my understanding, both are doing the same way which also kind of override the methods. Abstract method is, both childclasses are having the same methods, but different execution code. Interface is, whenever the class implement the interface class, the class must write the execution of all the methods …

Software Development java
Member Avatar for JamesCherrill
0
227
Member Avatar for gahhon

I have a Task class (superclass) which inherited PracticeTest class(childclass). I'd faced question regarding my pass year question. In fact, we are allowed to declared like this Task aTask = new PracticeTest(); But i wonder why we are doing this way? Thanks for advance explanation.

Software Development java oop
Member Avatar for JamesCherrill
0
208
Member Avatar for vegaseat

Just some interesting applications of the bitwise and (&), or (|) operators. You might find some other uses.

Software Development python
Member Avatar for vegaseat
0
282
Member Avatar for A. Gregory

how do you write a c++program using the do while and while do loop to list prime numbers between one and thirty

Software Development c++
Member Avatar for David W
0
181
Member Avatar for Bartosz

Hello there, I am having a problem with small application. I have used gdb and following error appeared: strlen() segmentation fault. Could anyone help me to find out solution? int main(int argc, char* argv[]){ char* name = malloc(strlen(argv[1])); name = strcpy(name, argv[1]); printf("%s \n", name); return EXIT_SUCCESS; }

Software Development c c# c++
Member Avatar for Bartosz
0
3K
Member Avatar for Shiladittya

I want to get all the vertices from an ARC. I have all the data (for ex : start point, end point, start angle, end angle, radius) which will used to draw an arc but my need is I have to generate all the vertices from the arc data. I …

Software Development algorithm java
Member Avatar for stultuske
0
213
Member Avatar for Wendy_3

I am having trouble with my code. The conversion for both Fahrenheit and Celsius will not display, and when I select "Celsius to Fahrenheit", it gives me the conversion for Fahrenheit to Celsius. I'm not sure what I'm doing wrong. I've already searched for help and have gotten nowhere. So …

Software Development perl
Member Avatar for rch1231
0
345
Member Avatar for Robert_34

I keep getting this error message when I try to run ----jGRASP exec: java DomParserExample Exception in thread "main" java.lang.NumberFormatException: null at java.lang.Integer.parseInt(Integer.java:615) at DomParserExample.getIntValue(DomParserExample.java:152) at DomParserExample.getAlbum(DomParserExample.java:111) at DomParserExample.parseDocument(DomParserExample.java:89) at DomParserExample.runExample(DomParserExample.java:35) at DomParserExample.main(DomParserExample.java:177) ----jGRASP wedge2: exit code for process is 1. ----jGRASP: operation complete. Here is my code that I …

Software Development java
Member Avatar for JamesCherrill
0
828
Member Avatar for Papa_Don

Group, I'm converting a text file into a .pdf file using ItextSharp. The code below works perfectly to do this. Unfortunately the default font size is to large. I need to make it smaller. Here's my code: Private Sub ConvertToPDF() ' Converting the Restran text file to a PDF file …

Software Development pdf vb.net visual-basic visual-studio
Member Avatar for tinstaafl
0
4K
Member Avatar for Ma Nicole Ydralyn

Hi guys I am really having trouble on what to do with my program. We are asked to make a cashier's program and I don't know how to do the the Receipt... I don't know what to do in the order part... how about if the customer will order 3 …

Software Development c++
Member Avatar for David W
0
6K
Member Avatar for Yuki_1

Hey guy,I would like to do a number jumping just like the picture.In the textbox,it will show number "3".When the button is click,the textbox number "3" will change to "2" then click again it will change to "1".How to do it?! I had try this code but useless(i know that …

Software Development
Member Avatar for Yuki_1
0
151
Member Avatar for Papa_Don

Group, I'm using `System.IO.File.Move` to move an existing file into another folder. However it the program is stopping at this point with the error message "The process cannot access this file because is being used by another process". Unfortunately I can't find "the other process". For the record, I've also …

Software Development file-system microsoft-access vb.net
Member Avatar for Papa_Don
0
1K
Member Avatar for hadisur_rahman

Write a program to check the password is too strong or strong or weak & also check the password is validate or not.. you can use code of c/c++ and you want ....

Software Development c++
Member Avatar for Lutina
0
633
Member Avatar for basitji

Write a program that accepts three values from a user and print the two highest value and thier sum.

Software Development c++
Member Avatar for Lutina
0
122
Member Avatar for tgreiner

OK, so I've asked a question like this before and I thought I understood the answer (solved) but I am having problems again and I still do not understand why. I am compiling with MinGW. Here's the code: string filename="D:/__GNU analyze/test/bin/Debug/_ClusterFormat/Test2.6d .txt"; fstream file, file2; string cluster="frame"; string line; Matrix …

Software Development c++ ios
Member Avatar for tinstaafl
0
142
Member Avatar for Satyam_1

HI, I have a form1 with datagridview, and same datagridview in form2. both have databindingsource so when I update any data in form1 it should reflect the changes in form2, when both are open. Here is some what could i get, but its not refreshing the data. form 2 load …

Software Development vb.net
Member Avatar for altjen
0
356
Member Avatar for paul1145

In the code below, I'm trying (works) to insert a mail message before the signature line. With each new email within a run, the email new window flashes on the user's desktop. I'd like to minimize to outlook window to reduce the 'flashing'. The email is sent correctly but I …

Software Development vb.net
Member Avatar for paul1145
0
415
Member Avatar for danielg55

I have this in a code: ` int load_snapshot(char *fname, int files) { FILE *fd; char buf[200]; int i, j, k, dummy, ntot_withmasses; int t, n, off, pc, pc_new, pc_sph; #define SKIP fread(&dummy, sizeof(dummy), 1, fd); for(i = 0, pc = 1; i < files; i++, pc = pc_new) { …

Software Development c++
Member Avatar for rubberman
0
100
Member Avatar for Suzie999

I'm using the titled library from http://dotnetzip.codeplex.com/ I've zipped up a few folders and files `zip.AddDirectory(path);` where path is a fully qualified path to the folder I want to zip. When I extract `zip.ExtractAll(AppDomain.CurrentDomain.BaseDirectory + "Zipped");` I get the whole directory hierarchy in the "Zipped" folder. That is fine if …

Software Development file-system
Member Avatar for tinstaafl
0
237
Member Avatar for durgaBHAVANI

hai can you please give me in detail how to write a c program for a sensors

Software Development c c# c++
Member Avatar for vegaseat
0
2K
Member Avatar for Pompy

Hi im trying to do this project for class on functions. I am little confused on what i am doing wrong. Here is the assignment 1) Write a program to calculate the wind chill. The wind chill is calculated by using the ambient temperature and the wind speed. Wind chill …

Software Development vb.net
Member Avatar for Santanu.Das
0
240
Member Avatar for Ahmed_62

plz some one explain in details this code : we have array of 9 cells and 0 present empty locations we want solution of this array (no number will be repeated) also if there is any way to call this functions in main so as the program runs succesfully plz …

Software Development c++
Member Avatar for gusano79
0
206
Member Avatar for Habib_7

I wrote this program that get words from user and if it was entered already it will print you loose but when I the first code crashs but the second code works! why the first code is crashs? #include <stdio.h> #include <string.h> int getword(char *word); int find(char * words[], int …

Software Development c
Member Avatar for David W
0
334
Member Avatar for Syed Ammar

Hey guys im having a problem in structures.. i dont know how to initialize a an array of 10 contact instances.. plz help me out. this is my question statement.. "Declare a structure Contact that has a name, address, mobile number. Now create and (hardcoded) initialize an array of 10 …

Software Development c++
Member Avatar for Moschops
0
235
Member Avatar for Raman_4

In the below python code, scrollbar for the panel is not working. I have added checkboxes under panel in the 2D for loop. Please help here def GenerateTree(self,event): v1=int(val1) v2=int(val2) print v1,v2 x=v1+v2 print x panel = wx.lib.scrolledpanel.ScrolledPanel(self,-1, size=(1100,1500), style=wx.RAISED_BORDER,pos=(10,145)) panel.SetupScrolling() UEarr=('UE1','UE2','UE3','UE4','UE5','UE6','UE7','UE8','UE9','UE10','UE11','UE12') LCarr=('LC3','LC4','LC5','LC6','LC7','LC8','LC9','LC10') y=0 i=0 j=0 k=0 for i in …

Software Development python
Member Avatar for vegaseat
0
241
Member Avatar for ramkishor

how we can bind DataRows value into list<string>detail sir i am binding values from database then how we can use list<string> for example dr["field"].tostring();

Software Development
Member Avatar for ramkishor
0
122
Member Avatar for collin_ola

Hi! So yesterday when trying to run a program that previously ran perfectly, I received the error shown in the title and I've no idea why. Nothing that could have caused such error was changed, so I've absolutely no idea what the problem could be. Here's the code the error …

Software Development apache java xml
Member Avatar for stultuske
0
2K
Member Avatar for Rachy3091

Hi I'm new to this forum and to java, I have some work to do which requires that I have to write a program that reads in a list of whole numbers and that only even numbers in the range 1-100 are accepted and both 'N' and 'n' terminate the …

Software Development java
Member Avatar for stultuske
0
144
Member Avatar for ramkishor

sir, i have created a global variable on one button click within for loop this variable has many records i want each record to be inserted on another event can it be possible. as string str; button click() { foreach(datarow dr in dt.rows) { str=dr["field"].tostring(); } } submit button() { …

Software Development
Member Avatar for djjeavons
0
214
Member Avatar for Fayzan

Hi every one, i have been given an assignment, and i need your help in making the programme. The question is Write a program to simulate a lottery game where a set of the lottery numbers includes 6 different numbers from 1 to 49. A possible run may look e …

Software Development java
Member Avatar for JerrimePatient
0
221
Member Avatar for Clearner123

Hi, I have this doubt i have read that "We must declare c to be a type big enough to hold any value that getchar returns We can't use char since c must be big enough to hold EOF in addition to any possible char. Therefore we use int." it …

Software Development c
Member Avatar for Clearner123
0
134
Member Avatar for cannon_1

hi i have a unknown string in c++ containing "\n" "\t" etc. say; string unknown1="\n\t\n\t\n\n\n\n\n"; now I want to print "\n\t\n\t\n\n\n\n\n" to the screen explcitly other than a bunch of empty spaces.... how should I do that? remember that I don't know what is in unknown1...

Software Development c++
Member Avatar for tinstaafl
0
484
Member Avatar for ivylyn

guys help me what are the possibly software deveopment to be used if i create an online virtual home designing? c++,java or vb.net? please answer my question..please please

Software Development
Member Avatar for ivylyn
0
186
Member Avatar for kayecng

In my windows form, I have a combo box which is populated with (part code)values from my database and I'm finding it hard to set each equivalent (part name)value to a text box which is in the same table. I was able to populate combo box values using the code …

Software Development dataset vb.net
Member Avatar for kayecng
0
2K
Member Avatar for akuikhwan94

My tables in MS Access doesn't have any change which it did not update the record that I entered in Visual Studio.. This is my code. Private Sub btnSubmit_Click(sender As Object, e As EventArgs) Handles btnSubmit.Click On Error GoTo saveErr RequestSoftwareBindingSource.EndEdit() RequestSoftwareTableAdapter.Update(FYPDataSet.RequestSoftware) MessageBox.Show("Your request has been submitted.", "Thank you", MessageBoxButtons.OK, …

Software Development microsoft-access vb.net visual-studio
Member Avatar for djjeavons
0
498
Member Avatar for jeremywduncan

Exercise 11.1. Write a function that reads the words in words.txt and stores them as keys in a dictionary. It doesn’t matter what the values are. Then you can use the in operator as a fast way to check whether a string is in the dictionary. Trying to figure this …

Software Development python
Member Avatar for Mohammad_19
0
3K
Member Avatar for adnan_6

I have downloaded the program from here http://www.tightvnc.com version 2.7.10 and compiled successfully using visual studio 2013. One is the tvn server and other is the viewer. We connected successfully the server and viewer using my friend’s laptop pair with server and client interaction. When the application runs all the …

Software Development c++ visual-studio
Member Avatar for tinstaafl
0
2K
Member Avatar for judithSampathwa

hi does any one know the RGB values of the standard form in C#.net? how can i get it to be add to the colour pallatte in the C#.net color pallette?

Software Development asp.net
Member Avatar for Jill_3
0
420
Member Avatar for Bharti_1

I am trying to implement meeting scheduling algorithm. I want to randomly generate meetings and store it in a file. Then read this file in another code, create different agents who will try to schedule these meetings. My input meeting file is as follows: 1 20 25 [1 2 3 …

Software Development algorithm file-system java
Member Avatar for Bharti_1
0
384
Member Avatar for Ahmed_62

Hello Everybody , i have array of size 9x9 i want to write a function to Check each 3x3 box

Software Development c++
Member Avatar for Ahmed_62
0
304
Member Avatar for danijohn

when I exit a function i get 'general protection exception' -' processor fault'. Function writes to file and works ok except won't exit. What does this mean please, and where should I look ? Am using Turbo C 4.5 & Windows xp. Must be overwriting memory somehow I suppose but …

Software Development c++
Member Avatar for alifriend7
0
599

The End.