43,549 Solved Topics
Remove Filter ![]() | |
hello i am a computer engineering student...i want to do my mior project in java...i was thinking to do a project in "image processing + viewer" ....do u think java is an appropriate language for making a "image processor" ??? please help if u have any reference projects ,books or … Software Development engineering java | |
Hi, I need to find the 'length' of union between 2 vectors. The code I have is[CODE] vector<int> v1,v2; vector<int> unionsetv; vector<int>::iterator it; v1.push_back(1);v1.push_back(2);v1.push_back(3); v2.push_back(3);v2.push_back(2);v2.push_back(4); it = set_union(v1.begin(),v1.end(),v2.begin(),v2.end(),back_inserter(unionsetv)); cout << unionsetv.size()<< " "; cout << int(it - unionsetv.begin())<< " " ; [/CODE] I could not get this to work and … | |
Can any body suggest me how can I free the dynamic memory in the given code [CODE]int fun(CString qry, CStringList *List,int n) { using namespace std; string sqlStmt = qry; int i; this->stmt = this->conn->createStatement (sqlStmt); ResultSet *rset = this->stmt->executeQuery (); string **oraRecordsStr=NULL; try { while (rset->next()) { if(oraRecordsStr == … Software Development c++ | |
What libraries do I require so that I can make an application for recording a sound through the microphone ? I there is something else please do let me know ..... 'cause there are code snippets available on the net .... but I wish to develop it myself ! Thanx … Software Development c# | |
Well, I'm not exactly an expert with C++, and I have been making a text RP for general use. I'm having some problems.[CODE]#include "Library.h" void main() { //welcome screen cout <<"####Welcome to Xe0n RP, part of the Xe0n project started by Adil\n"; cout <<"####Programmed in C++\n"; cout <<"####Currently in beta\n"; … Software Development c++ | |
![]() | [CODE]//plz run .an accrued .Processor fault error.plz help me /* Bank taransection Program.cpp : Defines the entry point for the console application. */ #include "stdafx.h" #include<iostream> #include<string.h> #include<string> #include<process.h> #include<conio.h> using namespace std; class details { public: char *name; int age; char branch[50]; char city[40]; void getdetails() { name=new char[20]; … Software Development c++ ![]() |
Can any one tell me how to read connection string from XML file ?? Thanks in advance for you help Software Development xml | |
i have a problem regarding timer in the listbox. it suppose the time and date have to appear once only but it appear a non stop in listbox when run. here is the code: [CODE] Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick ListBox1.Items.Add(TimeString) ListBox1.Items.Add(DateString) End … Software Development vb.net | |
So, I found a snipped of code that did what I was looking for but I tried adding upon it to fit my need a little more. What I am trying to do is input an integer and return an 8 bit binary string to a list. My first problem … Software Development python | |
I have prob. with my printer my printer is Mini Dot Impact Matrix Printer. model AB 300 Kc. how to setting paper for this printer? Software Development printer visual-basic | |
Hi i am developing a C# application which uses sdf database... the problem is in inserting data to the database.. i can retrieve data from it but can not insert value to it..... I tried many ways of inserting values to the database but not successful... can any one help … Software Development | |
[CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Data.Sql; using System.Data.SqlClient; using System.Configuration; using System.Linq; using System.Text; using System.Windows.Forms; namespace Eventmanagement { public partial class Registration : Form { SqlConnection aConnection; string firstname= string.Empty; string lastname= string.Empty; int aid; string date = DateTime.Now.ToShortDateString(); SqlDataAdapter da = new … | |
Hi All.. I want to get selected item on listview. Does any one know how to solve this??? I'm using vb.net 2003 | |
In my code i have got when player touches point,it registers collision and prints out score in the console, the problem is that for some reason instead of just printing one score-point per point (There is 10 points in the array) it continues to add score for as long as … Software Development c++ | |
Hello, I am trying to create a update section of a game but running into a problem of JFrames. What I want to do is have a single JFrame that will have the update script, then after the update it will start a jar file in the JFrame (With the … Software Development java | |
I am trying to delete a cookie by reseting it but it wont delete. What am i doing wrong [CODE]#!/usr/bin/python import cgi import Cookie import os def cookie_expiry_date(numdays): from datetime import date, timedelta new = date.today() + timedelta(days = numdays) return new.strftime("%a, %d-%b-%Y 23:59:59 GMT") print 'Set-Cookie: UserID=0; expires= '+cookie_expiry_date(-100); … Software Development python | |
I am looking for step by step details of how to deploy django websites in apache2 server with one example. I am using ubuntu operating system Please give some link or give the details. Software Development apache operating-system python ubuntu | |
Hey; I'm trying to change the mode of a file in Linux system. I know I must use chmod(const char* path, mode_t mode) but I don't really know how to handle the mode. How can I manipulate mode_t variable to apply my own mode? Software Development c++ | |
![]() | The code below is what I have done up so far. I'm currently trying to complete one of the 4 classes I have, so the codes are incomplete and made to work at it's current stage. Q1. I need to have 3 different sorting criteria: 1.Sort by X (asc/desc) 2.Sort … Software Development c++ |
I have been thinking of making a graphing calculator for practice. However, I do not know how to assign to a variable an expression. What I exactly mean is: let's say x is a variable, and y a function of x. I can just define the function inside the code, … | |
just wondering if there was any way to disable some values in the combobox or at least grey them out. i populate the combo box from the database: rs.MoveLast With Me.Combo1 .Clear Do .AddItem rs.Fields("CustomerFirstName") rs.MoveNext Loop Until rs.EOF End With once one value has been selected, is there a … Software Development visual-basic | |
Hi, Does anyone know on how to convert vb.net to excel. I am new in this company and they are using Microsoft SQL Server Management Studio for their database. FYI, they are using stored procedure as well. Thank you Software Development microsoft-office vb.net vbscript | |
![]() | Line2D Points is made up of Point2D x and y Line2D.h [code] #ifndef LINE2D__H #define LINE2D__H #include <iostream> #include <fstream> #include <string.h> #include <ostream> #include <sstream> #include <cstdio> #include <vector> #include <set> #include <cstdlib> #include <ctype.h> #include "Point2D.h" using namespace std; class Line2D { friend ostream& operator<<(ostream&, const Line2D&); private: … Software Development c++ ![]() |
Hy everyone...I would like to make a thing like the function "like" in php but in C#...It is something already implemented?I've searched on the internet and all i've founded was about regex... I'w waiting for answers..Thnx | |
I wrote this script for my classmates where we shoot at each other, but after it compiles it says that there was an error and exits out. heres my script, if there is anything in there that needs to be fixed please help me. [CODE]#include <allegro.h> #include <process.h> #include <stdio.h> … Software Development c++ | |
So I have this assignment to create a dynamic stack with template and I've got it nailed pretty much. My question, though, is: I tried to implement "stack2" originally with data type as string. It would not work. The compiler threw all kinds of errors. Could somebody tell me what's … Software Development c++ | |
I literally hate to ask this question but I am having trouble with Qt 4 basically all I am trying to do is clear the textEdit area with clear() but I am not sure of what to do. In C++ I would just [CODE]textEdit->clear();[/CODE] and it would do so. I … | |
how can i take only the letters that after the dot (.) in the word? if i have the word: "Yes.No" i want that my string a will be equal to "No", but that should work in every word, not just in Yes.No Software Development | |
Hi again, With silly question... I read about generating random numbers random(10); but it gives numbers from 0 to 10 and i need for example from 10 to 100. I tried random([10..100]); but i can't compile this :/ Could somebody help me? Software Development pascal | |
Hi guys! Can anyone provide an accurate code for me to do this please. I'm not having any luck finding particular codes on Google that work. Software Development java | |
Hello, I'm working on a snake based game in pascal. I'm using graph window. But here is the problem: Yesterday i was doing great my project compiled and everything, today i turned on my computer, open my project and it wouldn't compile... I checked the code the was nothing strange … Software Development pascal | |
I just bought and read Jim Waldo's "Java The Good Parts". (ISBN 978-0-596-80373-5) It is a very interesting book that gives you insight in what happens under the surface. This is not a book about learning how to program in Java. It is rather a book for those who have … Software Development java | |
I wasn't sure if this should go in games development or here but it's java so I put it here. This is homework so please don't write my code for me. My assignment is to create a game. It has to have moving parts, keyboard controls, buttons, the works. I … | |
Can someone please show me the best way to achieve this with the least amount of lines? Im a recovering PHP coder, I have one solution. I was wondering if there was a quicker more pythony way to do this: I have in "results" [ICODE][('Basp1', 'Aen2'), ('Basp1', 'Ahy18'), ('Basp1', 'Ahy26'), … Software Development python | |
Hey; I have an assignment. My assignment includes the following tasks to be implemented under Linux: – Display a list of all available files (with their types) in the working directory, – Display a list of only regular files in the working directory, – Display a list of only directories … Software Development c++ | |
This worked in VC++ 6 but in Visual Studio 2010 assign needs a second parameter, in the context of this function would it be a better idea to use resize or reserve and why? [CODE] bool CN3ShapeExtra::Load(HANDLE hFile) { bool bSuccess = CN3Shape::Load(hFile); int iPC = m_Parts.size(); m_Rotations.clear(); if(iPC <= … Software Development c++ visual-studio | |
How do I call a batch file in jython? thanks!! Software Development python | |
I am having a bit of a problem building my app. This is what I'm doing. Perhaps someone may be able to point out where I'm going wrong. When ready to build I click on solution explorer, properties and open, build tag. Output path is bin\release\. Yet when I do … Software Development | |
Hello, i m using vb.net with MS Access database & oledbconnection in my project. now i want to mail my crystal report in pdf format to respected email-id, how can i do this????? i spent lot of time for searching some helpful bt didn't get | |
Hi all, I'm busy writing a generic textfile reader class and I'm struggling to write the code to deal correctly with end-of-line (EOL) characters for Mac, Linux and Windows. I've done a fair bit of reading on the issue and I came up with the following function within my TextFileReader … Software Development c++ | |
timer i have two labels in C# windows Application and i want make it visilbe for once. on form load : label1.visible = true; label2.visible.false; and on timer tick event: label1.visible.false; label2.visivle = true; now after it perform one tick it display another form. how to do it. in my … Software Development c# | |
Hi, I'm a beginner with Java and I need help with an assignment: Write a program that will help the Toronto Blue Jay's scouts decide which players they should draft next year. For each player the scouts have been watching, a record has been prepared showing the player's name, age, … Software Development java | |
Hey everybody. All my Google searches for help led me here so I thought I'd post my actual problem directly. I'm in a 101 programming course and this is only our second Python assignment. What I need to do is use one-dimensional parallel arrays to allow input of four different … Software Development python | |
Hey guys, I'm working on a project to use Huffman trees to compress a text file into binary. For instance, based on the frequency of the characters in a string like "aardvark", a - 3 r - 2 d - 1 v - 1 k - 1, compression using a … Software Development api google-api java | |
Hi everyone. My code is used to calculate fractions and display them as "3/4 + 3/4 = 3/2" and such. I having some trouble with the the code segment [CODE] calculate.setadd(); calculate.setsub(); calculate.setmult(); calculate.setdiv();[/CODE] There's a red line under the close parenthesis saying "too few arguments in function to call". … Software Development c++ | |
I am working in sql server2005 and c# I have five database in my project and I want to display one table from each database in one datagridview. How can i do it. Software Development display | |
| |
I have made a very simple dice game, How can i output the results of the dice using this format. Thanks for your time. [CODE] ========== | 0 | | | | 0 | ========== ========== | 0 0 | | 0 0 | | 0 0 | ========== [/CODE] … Software Development python | |
Hey guys, I hate asking this but unfortunetly, Google does not know how to interpret "|" and probably assumes its an OR command or something :P . The line goes as follows (source found [URL="http://pysnippet.blogspot.com/2009/11/fuse-filesystem-in-userspace-part-1.html"]http://pysnippet.blogspot.com/2009/11/fuse-filesystem-in-userspace-part-1.html[/URL] here): [CODE]st.st_mode = stat.S_IFDIR | 0755[/CODE] I know it's doing something about the mode being … Software Development python | |
I get this python error: unindent does not match any outer indentation level, and a red bar appears where "RIGHT HERE RED" is.., keep in mind that this is just a fraction of the entire program but i dont know where the spacing error occurs... pleeeaaase i beg you and … Software Development python |
The End.