132,726 Archived Topics
Remove Filter ![]() | |
ok it almosts works, the program stops when i enter the first at_BAT AND then hits and wont loop to get the neext persons at bat and hits. error: 36 no matching function for call to `toupper(std::string&)' ok here is ther part that isnt working... for (int i = 0; … Software Development c++ | |
I was wondering if there was a way to play music from within the program. For example. When they click the button, the music starts playing just as a background process without opening an other music program. Is this possible? Thanks Software Development | |
Q. Using recursion, write [B]a[/B] C++ function into [B]b[/B] to convert an arbitrary integer n>=0 into binary. Call this function in the main program with the argument n (That's an easy part I can do that). In example; input n=27, output 11011. If anyone can help me with this question, … | |
Hello everyone!!! Can someone help me with this: I need someone to tell me if the code is correct about this: It should create a table, insert something into the table (in this case random numbers), select from the table, and erase the table. [code] import java.sql.*; public class dbAccess … Software Development java microsoft-access | |
Hi, I want to change a variable in a definition everytime it is called. for example: when I click on button, it will print 1 when I click on button again, it will print 2 Is this possible? I have written this code but it doesnt work :) [CODE]k=0 def … | |
How you got any examples of programs which communicates by PS/2 ports to mouse etc ? Software Development c++ | |
Hi I need to insert some data from Text boxes in an aspx page into an Access DB but I keep getting a Data type mismatch in criteria expression error. The problem is the Double which I think I have converted correctly. All the other fields are OK as strings … Software Development microsoft-access open-source vb.net | |
[CODE] /*dynamically allocating memory in called funcion and freeing in caller*/ char** memall(int ns); #define Max 20 #include<stdio.h> int main() { char **s; int i,ns; printf("no of string you want to store"); scanf("%d",&ns); s=memall(ns); for(i=0;i<ns;i++) printf("addrs =%u and string=%s\n",(s+i),s[i]); for(i=0;i<ns;i++) free(s[i]); free(s); /* s=NULL; for(i=0;i<ns;i++) printf("%s\n",s[i]); *///dont try to access … Software Development c | |
hello I am writting a web browser with tabs I have a problem in Accessing Controls in the tab which created on runtime see this Code [code] private void button4_Click(object sender, EventArgs e) { TabPage t = new TabPage(); t.BackColor = System.Drawing.Color.AliceBlue; t.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; // webBrowser1 // string name … Software Development web-browser | |
this is the error i'm getting. g++ main.cpp g++ universityperson.cpp /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../crt1.o(.text+0x18): In function `_start': : undefined reference to `main' collect2: ld returned 1 exit status make: *** [universityperson.o] Error 1 I'm not going to post all the code i have but here is my makefile main file and universityperson files … | |
Hi, I've a multifile program in C and I need to use global variables. I've one header file that is called "global.h" where my global variable is defined. In the other files, there's an include directive to "global.h". At the moment, I'm using my variable in the C files without … Software Development c | |
Hey everyone, I'm using Flash AS3.0 and I am struggling to load an Image from an XML file to a movieclip in my flash project. I have the XML loaded fine, here is my XML content: [CODE]<GALLERY> <IMAGE TITLE="school" image="image1.jpg">pic 1</IMAGE> </GALLERY>[/CODE] It loads with this code: [CODE]var myXML:XML; var … | |
I'm making this snake game, and I've created a class to handle the snakes (players and AI snakes), this works out quite well, however, at the moment I'm declaring my main snake (player 1), as global, in terms of: [CODE] class Snake { //... Lots and lots of code. } … Software Development c++ | |
My program dynamically allocates memory to an array of objects : [CODE] class particle { public: int x[D],shifted,ID; particle() { shifted=0; ID=-1; } }; // Array of all the particles particle* particles; int main() { for(a=0;a<s_num;a++) { particles= new particle[num]; //some code ........ ........ for(i=num-1;i>=0;i--) { delete (particles+i); } } … Software Development c++ | |
Okay, so what I want to do, is to take the following code, and make it so that way it keeps continuning for all of the word. [CODE]keycode = raw_input() matrix = [0, 0, 0, 0] for x in range(0, len(keycode)): y = ord(keycode[x]) if x > 3 and x … Software Development python | |
Hello, I have written the same code in c# and i seem to have any problems? I use 'procexp.exe' to check the performance. In the case of 'c++' the VM (Virtual Memory) and PM (Physical Memory) becomes larger every minute. There is also an I/O block with a lot of … Software Development c++ | |
Hi My name is Lin Freeman,im 14 years old and live in Baltimore Maryland.I really want to learn about visual basic 6.0.Ive bought one book and read it and read it well.It taught it the basic and how to write code but i didnt understand the code part very much … Software Development visual-basic | |
I have two questions on python threading: 1: is there is any speed performance or difference between Thread module and Threading module? 2: Is there is any other major difference between Thread module and threading module? I used thread module for my download manager project. i think this thread module … Software Development python | |
Hi, How can I link dlls (integrate them) into my program? I would like to just have one single exe, and not having to distribute a zip or installer... Cheers! Software Development | |
Hello, I never programmed Delphi and I got a project that I need to compile and make some changes. The problem is that I have a lot of components missing and I cant find them or even theire name so I can google for them! Any help is appreciated! List … | |
Hi all, I have a following code below, where I generate a matrix and lots of data, and finally I print out that data into one .dat file. Now I would like to share these data into many files, e.g. 4 .dat files in a continual way. To see what … Software Development c++ | |
CODE [code=vb] Public Sub InstituteCreateButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles InstituteCreateButton.Click Dim InstituteName As String InstituteName = InstituteNameBox.Text Dim InstituteCountry As String InstituteCountry = InstituteCountryBox.Text Try Dim InstituteTableAdp As New InstituteBaseDataSetTableAdapters.InstituteTableTableAdapter InstituteTableAdp.Insert(InstituteName, InstituteCountry) MsgBox("Success") Catch ex As Exception MsgBox("Failed!") End Try InstituteCreateButton.Text = InstituteCountry End Sub [/code] … Software Development vb.net | |
HI Guys, I have written an app the prints out batches of documents for postings. Each batch is to be seperated by a red coversheet. I know that in our printing department, no matter what printer they use to print the batches on to they will always have the red … | |
Hello Let me describe the problem: I've got 1 base class item which is inherited by a few other subclasses. Everything goes well until I put an object from a subclass into an array of items I lose the specific data of the subclass. I think I need something of … Software Development c++ | |
:-/AnyWay,, Here is what it is supposed to happen.... [COLOR="Green"]The input is a char array initialized with line of Text,, the program should tokenizes the line with the "strtok" function and should output the line of text in reverse order.... [/COLOR] I need to set up a "strcpy"..... I'm almost … Software Development c | |
I have created a procedure, exitFailure() that is invoked if a file doesn't exist: [CODE] int exitFailure() {//start exitFailure() printf("Failure, hit any key to exit and press enter.\n"); scanf("%d", &counterx); return 1; }//end exitFailure() [/CODE] Below is the snippit of code that invokes exitFailure() [CODE] inFile.open(inputFilename, ios::in); if (!inFile) { … | |
Hi, I have little idea of padding. i read in one of the links that : all character variables gets stored in the memory location that is divided by 1. all short variables gets stored in the memory location that is divided by 2. all int variables gets stored in … Software Development c | |
Hello I'm making a dungeons and dragons and i need something to contain all inventoryitems like pieces of equipment, potions,... How can I put them all in one array or vector? Thanks, Jasper Software Development c++ | |
Assuming a one dimensional integer array a[] has been declared and created with 100 elements: for (int i = 0; i<=a.length; i++); a[i] = 5; Assuming int b [] [] = new int [3] [3]; b[1, 1] = 5; Strings students[] = {Pat, Tom, Mary, Anne}; Software Development java | |
I am so lost on how to get this code to work, and I am pretty sure what I have is all wrong. The problem is as follows: Each salesperson is assigned a 4 character ID, with the first character either an F (full-time) or a P (part-time). And the … Software Development vb.net | |
Hi! i creating java apps to edit windows registry .... it is fine in Xp but in Vista its need admin privileges.. how do get it programmatic-ally... in .net app.manifest is there..but in java anything is for admin privil.. Software Development java windows-vista | |
How would I fill a two-dimensional array up with numbers. map_height = 9 map_width = 8 I have this code: [code] for (i=0; i<map_height; i++) { for (p=0; p<map_width; p++) { room_numbers[i][p] = w; w++; } } [/code] But when I try to print it out it comes up with … Software Development c++ | |
Hi all is it possible to delete the last line of a text file each time a method is called. I have the following method: [CODE] Writer output = null; File file = new File("playerData.xml"); try { output = new BufferedWriter(new FileWriter(file, true)); output.write("\t" + "<player>" + "\n"); output.write("\t" + … Software Development file-system java xml | |
![]() | Hey I m new in programming and I've spend 3 month on c# and now want to participate in imagine Cup with my team. and Looking for topic and the first requirement of imagine cup is: Your entry must address a [B]social cause[/B] connected to the 2010 Theme: "Imagine a … Software Development |
I am not sure if the title of my thread indicates where the problem is, but that is what I think it is. [code] void convertFormat(vector<string>& files, map<string,int>& tickerMap, vector<int>& numRecords ) { string txt = ".txt"; string filePathNameString; for ( int k =0 ; k < (int)files.size(); k++) { … Software Development c++ | |
Hey, I created a custom datagridview column for a progressbar and included customizable color properties but I can't get them to work right. After compiling, the properties show up correctly in the Edit Columns popup editor, but changing the values has no effect. The designer generated code shows the original … Software Development vb.net | |
:) Hello experts, Im taking a C++ class and i was asked to Write a program that uses a structure named MovieData to store the following information about a movie: Title Director Year Released Running Time (in minutes) I've come down to making it compile, but, when it couts the … | |
Please help. i do not know how to do this as i am a java beginner. i only know to use a string and output. how do i do this with a loop? this shows to the side bit it should be in the middle.... like an upside down A … Software Development java | |
I am implementing a code to detect overlapping regions in a cell, as shown in the attachment. As you can see, the image is an overlapped version of two cells. My aim is to separate them. But I have got no clue whatsoever to do this. Can anyone help me Software Development | |
Hi, I am implementing a project where I have to use adaptive thresholding on an image. That is, the threshold value must not be global, but must adapt itself with the image. I have thought a lot, but am unable to get a logic. It would be really helpful if … Software Development | |
Hi, I have a code where I have to use the region class in drawing. When I type using System.Drawing., the region class doesnt appear in the drop down list. I know this is a kinda silly doubt, but I need to include it in my project. Thanks prashanth Software Development | |
Hi, I have this following code for RGB to HSL conversion, but I do not know how to use it to display my image. Can someone help out [CODE]var_R = ( R / 255 ) //RGB from 0 to 255 var_G = ( G / 255 ) var_B = ( … Software Development | |
Hi, I am trying to implement the K Means Clustering Algorithm for Image Segmentation. The logic behind K Means is : 1. Place K points into the space represented by the objects that are being clustered. These points represent initial group centroids. 2. Assign each object to the group that … Software Development algorithm | |
I am trying to write a funtion that will return the value of 1 if its string argument is a palindrome. I have started but am unsure if it is correct. Could someone please take a look and point me in the right direction? Thanks [CODE]#include <string.h> Int palindrome (const … Software Development c | |
i have written the following code and it is not executing due to the following [B]error[/B] [COLOR="Red"]dec.java:7:integer number is too large :10000000000[/COLOR] [U][B]code[/B] [/U][CODE] import java.util.*; class dec{ public static void main(String args[]){ long dig,store,use,temp,temp1,end; int count=0,count1=0,ch; use=1000000000; end=10000000000; while(use<end){ dig=use; for(int i=0;i<10;i++){ temp=dig%10; dig=dig/10; ch=(10-i)%10; store=use; for(int k=0;k<10;k++){ temp1=store%10; … Software Development java | |
I'm going to put the text information to "data.bin" file in binary mode. Then i'm goint to read that information from file. I did by using "FileOutputStream", then "ObjectOutputStream" class and his "writeObject();" method, but this one just puts serialized object data to file, and as I understand - that's … Software Development java | |
Hai Friends, What is Swingworker class? were we can use this class? what its advantage? can any one explain this.... Software Development java | |
Please Help me, We had a Software application Developed using VB6 with MSSQL SERVER2005 as Database(Remote) in [url]www.znetindia.com[/url] our web space provider , the application was working properly until they upgraded the Server configuration, Now we are not able to connect with the database using the normal OLEDB connection String … Software Development client-server microsoft-access mssql open-source sql visual-basic web-server | |
i everybody, I am required to find out if the following is a standard practice to create a subclass. Take for instance, I have to create a class library (ClLib) with 2 classes using Visual Studio: Class1.cs & Class2.cs. Next, I open up the .CSPROJ file of ClLib and modify … Software Development c c# c++ visual-studio |
The End.