132,726 Archived Topics
Remove Filter ![]() | |
I really need help in some parts of my minesweeper code using Tkinter. I don´t have much experience in python and I am facing two major problems that I just can´t solve. The first one is that, as I generate buttons dynamically, they all have the same name and receive … | |
[CODE]#include <stdio.h> int main(void) { int a,b,c; printf("Enter the sides of the triangle"); scanf("%d%d%d",&a,&b,&c); if(a+b<c || b+c<a || c+a<b) printf("cant form a triangle"); else if(a==b==c) printf("eq triangle"); else if(a!=b && b!=c && c!=a) printf("sca triangle"); else if(a==b&&b!=c || a!=b&&b==c) printf("Iso triangle"); } [/CODE] am starting to code.. i have coded … Software Development c | |
I am in the process of updating and modifying source code for an existing application that runs on Linux systems. As part of my modifications, I will be needing to use the library function unlink() from unistd.h However, the class that I need to modify, has an existing public member … Software Development c++ | |
hi, i work on a windows application and i use crystal report. i use this code to generate report from database: [CODE] private void imprimerB3button_Click(object sender, EventArgs e) { SqlCeConnection con = new SqlCeConnection(); con.ConnectionString = @" Data source= |Datadirectory|\Database1.sdf"; Database1DataSet ds = new Database1DataSet(); SqlCeParameter paramNom = new SqlCeParameter("@nom", … Software Development open-source | |
Hey, I need help with setting up an authentication code. I am currently working on a project to build a blog server in python for an intro level python course. We are using the PESTO and POSTGRESQL wsgi and sql clients respectively. I am trying to authenticate against a user … Software Development postgresql python session sql | |
Here is my assignment rules, i am stuck and cannot find what it is i am doing wrong. If some one could help me i would appreciate it * The main routine must be a 'manager' routine, which means o The function can declare variables o The function can call … Software Development c | |
Hello everyone my task is to write a [COLOR="Green"]program that reads quizzes from a file 'q.txt', randomly selects a number of questions, and presents them to the user one-by-one, collecting user answers. After user has answered all questions, program gives user the score. [/COLOR] please can someone give me the … Software Development c | |
Hello i have an assessment to make a car park in GUI and i have tried some stuff but didnt work I need to make in two classes one with the main method and a JFrame container and the other with the buttons for park controls and others Any help … | |
I am trying to download an excel file that is avalible on this site: [url]https://www.arcavision.com/Arcavision/index.jsp[/url] Once you are logged a frame opens where you fill out a form and then click submit. On pressing submit the result of the query shows and gives you the option to download the data. … Software Development file-system http-protocol java | |
[url]http://msdn.microsoft.com/en-us/library/ms632653(VS.85).aspx[/url] I want to get the size of a window being resized (I will show a tooltip by the mouse). I have the code below: [CODE] protected override void WndProc(ref Message m) { base.WndProc(ref m); if (m.Msg == WM_WINDOWPOSCHANGING) { WindowPos mwp; mwp = (WindowPos)Marshal.PtrToStructure(m.LParam, typeof(WindowPos)); //mwp.flags = mwp.flags | … Software Development | |
I have downloaded the trial package and am trying to update an old project developed on VC++ 2002. The old environment will not develop an executable to run on W7. The VC++ 2010 generated an upgrade, compiled, linked and lists just a single error MSB3061 which is labeled "unable to … Software Development c++ | |
Okay, so I'm having problems with my code. I've browsed Daniweb and couldn't find any solutions on here that work. I'm extracting 2 sets of texts from a .xml file. The first part is a directory name(eg. "C:\work\") and the second part is the name of a file in that … | |
![]() | What is the most efficient way to: [LIST=1] [*]Check if a list has duplicate items (return a boolean) [*]Get duplicate items in a list (return a list) [/LIST] I'm looking for something quick and concise, as my solutions are rather cumbersome: [CODE]def list_has_duplicate_items( L ): for item in L: if … Software Development python |
hi i need a urgent help for a program that i cant make and this is : Write a program that implements a game, to teach arithmetic to little children. The program tests addition and subtraction. In level 1 it tests only addition of numbers less than 10 whose sum … Software Development c++ | |
Hi Everyone, I Need a simple project which is developed in Microsoft Visual Studio 2005 in VB.net the project features are 1. I have to send multiple SMS from a mobile device connected through a USB. 2. I have to receive SMS from a mobile device and parse it and … Software Development ide vb.net visual-studio | |
Hello Everyone, I have designing a desktop application using VB.NET 2008 & SQL Server 2005. In my Application i have a frmUserRegistration to add a user & frmLogin to login to my application. i can add the user details in the database but my password seems to be in characters. … Software Development vb.net | |
I am trying to include this piece of code in my Java Class. But the compiler tells me that it can't find Class Calendar. I can't create a class within a class though, can I? Any advice on how I can link this in to the rest of my code? … Software Development java | |
Hello Good people,am not so sure if this should go here,i am student who is interested in developing a search engine that indexes pages from my country.I have been doing my research on Algorithm to use for sometime now and i have found HITS and PageRank as the best out … | |
I need to calculate percentage relative to a particular bar within the series in a barchart Could any one help me out Software Development java | |
I want to develop a JAVA application which can send and receive SMS. I have a mobile phone connected to PC through USB cable. This JAVA program in PC should be able to send and receive SMS. AT commands are used to instruct mobile phone to send/receive SMS. But how … Software Development java | |
hi guys.im new here at the community. im marco a computer science student. guys/sir/madam is it ok for you if ill ask a help from your expertise. right now im doing a project a bout a home security system its a simple anti burglar system, its kinda weird but it … Software Development cybersecurity vb.net video | |
I have a combobox on a panel that changes tables on the panel. How would I get it to repaint if this panel was on a JTabbedPane in a InnerFrame in a JDesktopPane? It repaints but after I switch for one tabs and then back to the said tab. thanks. Software Development java | |
Hello, pls.can anybody help me? I try to solve a exercise where I need to involve random module. Here is a text: Exercise 2 In this example, ties are broken by comparing words, so words with the same length appear in alphabetical order. For other applications you might want to … Software Development python | |
I am trying to convert a piece of code into Delphi but fall down when it comes to this example : [CODE] void __stdcall GetBuffers( short **xBuffers, unsigned long nValues) { ....... memcpy(TargetA, xBuffers[0], nValues * sizeof(short)); memcpy(TargetB, xBuffers[1], nValues * sizeof(short)); memcpy(TargetC, xBuffers[3], nValues * sizeof(short)); memcpy(Targetd, xBuffers[4], nValues … | |
i made a web service that returns the name of the images in a file and returns the array of string with the file name with its folder name attached to it i.e. "pictures/image1.jpg". the client takes the url and adds it to the string i.e "http://localhost:3323/pictures/image1.jpg". The images is … Software Development web-browser | |
Hi guys, Here's my project finally. It's name is C.L.O.S.E - The Command Line Open Source Editor Please review and comment. Mention errors if any, Also, for this code to work. Please download open.cpp, find.cpp, new.cpp, append.cpp, compile them and place all of them including the main source in a … Software Development c c# c++ open-source | |
hey i used findfirst and findnext function but they can access only a path which is given by us. i want to access all folders and file of a drive like a antivirus do, when it scans the drive.... do u know how can we do it using c language? Software Development c | |
Hi there, is it valid to have a java class name and file as [CODE]public class DVD extends Items{[/CODE] and [CODE]public class CD extends Items{[/CODE] where its all in capitals? -thanks, sorry for the short question. Software Development java | |
hi, (on a linux system) i wrote the following code snippet to 1. write to a serial port 2. read the data that i have just written to the serial port. the write is functioning, but the read is not. if i use just the read (without "write", but by … | |
[code]// Dumps raw memory in hex byte and printable split format void dump(const unsigned char *data_buffer, const unsigned int length) { unsigned char byte; unsigned int i, j; for(i=0; i < length; i++) { byte = data_buffer[i]; printf("%02x ", data_buffer[i]); // Display byte in hex. if(((i%16)==15) || (i==length-1)) { for(j=0; … Software Development c | |
I am trying to use the playsound function i have the code [CODE] PlaySound(L"C:\Documents and Settings\Louisa\My Documents\Visual Studio 2010\Projects\Ninja_Wars\Ninja_Wars\music.wav",NULL,SND_FILENAME|SND_ASYNC | SND_LOOP); Sint32 delta;[/CODE] But when i play the game all i hear is a beeping sound- the one windows has when there is an error or something. Can anyone help … Software Development c++ visual-studio | |
Hi, I've to send a string using serial communication. I've tried to use WriteFile function but maybe I wrong something, because I cannot send my data. I hope someone can help me! Tnx everybody Bye Alex Software Development c++ | |
Write a program that simulate a die roller. The user should type in the number of the throws. Let the program count how many ones, twos, threes... are in the series. In the end the program should write down how many ones ... that was and also figure out the … Software Development java java-swing | |
![]() | [CODE] StringTokenizer st = new StringTokenizer(line); while (st.hasMoreTokens()) { String wordIn = st.nextToken(); if (wordIn.endsWith(".")) wordIn = wordIn.replace('.', ' ').trim(); if (wordIn.endsWith("?")) wordIn = wordIn.replace('?', ' ').trim(); if (wordIn.endsWith(",")) wordIn = wordIn.replace(',', ' ').trim(); String result = bd.searchBase(bd.getWords(), wordIn, 0, bd.getWords().length -1); if (result != null) System.out.println("Word found \n"); else … Software Development java |
Okay, like my other thread says, I'm working on a game engine. A couple if minutes ago, I compiled, and it ran perfectly. Now, when I compile it, I don't even see a DOS prompt or anything. I'm really confused, can someone help me and tell me what I did … Software Development c++ | |
Hello, I'm pretty new to C# and .NET. I have been working with the arrays within comboBoxes I have created a method to add multiple comboBoxes, each with defined items to select from (1,2,3,4,5,6,7,8,9,10) When I run the program, comboboxes get created automatically. When I select the value from a … Software Development | |
Hey guys, I've recently started learning WinAPI and I want to make a Tic Tac Toe game with it but I have a problem I have a main window ("field") and 9 child windows ("tiles") and I want to make the tiles clickable so that a click calls the Beep() … Software Development c++ windows-api | |
can any one suggest me solution please [CODE]//CAtlString str=(_T(buffer)); //buffer wil have{{ ( ab != cd } == true }} as my input CString str=(_T(buffer)); CString symb[10]={ "{{","}}","==","<=",">=","!=" , "true", "flase", '(', ')' }; (LPCTSTR)str.trim(_T(symb));[/CODE] if i am trying to execute this code iam getting some errors like 1>d:\c++_test_code\simple\simple\simpledlg.cpp(197) : … Software Development c++ | |
Is there a way to append the current date to an output file. My output statement looks like, [CODE]result=open('Results.csv','wb')[/CODE] If I run it today, I would like the file name to be something like Results20100528 (for May 28, 2010). If I run it tomorrow, I would like it to be … Software Development python | |
can any1 kindly help me how can i wirte in database using JDBC, i had alredy made connection with me database,,, so plz tell me how to write in database access file? Software Development java | |
I have a problem in getting data in a textbox from a query, actually its like getting Item_code from Inventory table and the corresponding Unit_Price from related table Inventory_Price If i write a constant value of Item_Price in the query, the textbox shows the corresponding Unit_Price... Code: [code] sql = … Software Development vb.net | |
I am using savesetting and getsetting in vb6, W2k. I am still in the testing stage. The savesetting and get setting are working correctly. I would now like to use the deletesetting function to remove the registry entry but I have found no examples to initiate this function. I want … Software Development visual-basic | |
Hi folks, Can someone tell me what is the meaning of this line? and how to use this command properly? [CODE] Lock::~Lock() { DEBUG('t', "Deleting lock \"%s\"\n", name); [/CODE] Thanks Software Development c++ | |
[CODE] private DataViewManager dsview; private DataTable dtgen; MySqlConnection myconn = new MySqlConnection("server=localhost;database=octupus_db;userid=root;password=sys"); MySqlDataAdapter sqlgender = new MySqlDataAdapter("Select * from gender", myconn); MySqlCommandBuilder comgen = new MySqlCommandBuilder(sqlgender); sqlgender.TableMappings.Add("gendermapping","gender"); DataTable dtgen = new DataTable("gender"); sqlgender.Fill(dtgen); cbxgender.Items.Add(dtgen.Rows()"sex".ToString); [/CODE] My problem looks simple, but i cannot crack it. I have connected to my DB, … Software Development mysql | |
Okay, I have absolutely no idea what is wrong with this code. When I comment out the parameters of the functions, everything works fine. Just like last time, it may be something obvious, I don't see it, though. [CODE] #include <SDL/SDL.h> #include <iostream> class tnt_Player { private: SDL_Surface *Sprite; int … Software Development c++ | |
How do I call a pointer to a member function? doing it like this gives the error 'term does not evaluate to a function taking 1 argument' ent->GetInputs()[i]->function(i); where function is of the type void (__thiscall CBaseEntity::* inputfunc_t)(inputdata_t *data) and ent is of type `CBaseEntity*` Software Development c++ | |
I have written my code for my class and i keep getting a couple of errors. Could someone take a look for me and point me in the right direction. Here is my code: // DateProject.cpp : Defines the entry point for the console application. // /*specification: Create a date … | |
I am trying to compile code that will perform an http POST using the GNU c++ compiler, and I get the following error: http_post2.cpp:93: error: ‘strlen’ was not declared in this scope The line that it points to is simply: [CODE]SEND_RQ("POST ");[/CODE] I went up to see where SEND_RQ is … Software Development c++ | |
Hello everyone, I'm attempting to write a program for an assignment dealing with a class in C++. As you may have guessed, classes are new to me. And it seems as though that is what is giving me these errors: [QUOTE]1>c:...main.cpp(90) : error C2228: left of '.number' must have class/struct/union … Software Development c++ | |
I use python for various personal projects and hobby stuff. I do mostly command line stuff, just cuz I don't need the gui for a lot of it. I would like to start moving on to GUIs, but I have run into a problem. I started with Python v3. All … |
The End.