43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for KingGold171

Hi, DaniWeb members, Recently i've been developing a progam that will read in a player database that is stored in plain text if the folling format name ,age,score,date played So far i have managed to read in the file and caculate the number of players in the database by Do …

Software Development vb.net
Member Avatar for KingGold171
0
185
Member Avatar for Clouded One

hi its me again, same program new problem... been working on this all day and i just cannot get it to work. #define INVENTORY_H #include <iostream> #include <iomanip> #include <string> #include <istream> #include <fstream> #include <vector> #include <ctime> using namespace std; class Inventory { private: static const char *Error[]; static …

Software Development c++ ios
Member Avatar for Clouded One
0
180
Member Avatar for chophouse

I'm writing a script to populate a list with the last 5 albums frm a list of what's about to play. My query works in terms of retrieving the values, but the list populates with a set of parens and an extra comma added to each returned value. Any ideas …

Software Development python queue
Member Avatar for chophouse
0
145
Member Avatar for thendrluca

**Hello folks!** i am using DEV C++ to code now i am working at a game in console and i have a problem with the *_setcursortype(_NOCURSOR);* function i set it but the cursor is still like *_NORMALCURSOR* in Turbo C works perfectly in DEV not ( i tried to set …

Software Development c
Member Avatar for thendrluca
0
2K
Member Avatar for Sendy Hipo

so i made this code that asks the user about corporate's data(division's name, sales, etc) #include <iostream> #include <string> #include <fstream> using namespace std; const int SIZE = 4; struct Division { string name; string quarter[SIZE]; double sales[SIZE]; }; void getData(Division []); int main() { Division corp[SIZE]; for(int count = …

Software Development c++ ios
Member Avatar for Sendy Hipo
0
183
Member Avatar for hyung101

**How am I going to split a line of strings ang put it into an array if the strings are arranged into columns, just like the attached file then compare the first column with user's input..? **

Software Development java
Member Avatar for hyung101
0
421
Member Avatar for Valiantangel

1.Create class IntegerSet. Each IntegerSet object can hold integers in the range 0-100. The set is represented by an array of bools. Array element a[ i ] is true if integer i is in the set. Array element a[ j ] is false if integer j is not in the …

Software Development java
Member Avatar for JamesCherrill
0
855
Member Avatar for memomk

ok now lets say we have this code import hashlib,itertools,string m=hashlib.md5() s=string.printable it=itertools.product(s,repeat=1) for i in it: ij="".join(i) m.update(ij) print ij+" "+m.hexdigest() >> 0 cfcd208495d565ef66e7dff9f98764da 1 96a3be3cf272e017046d1b2674a52bd3 2 d2490f048dc3b77a457e3e450ab4eb38 3 eb62f6b9306db575c2d596b1279627a4 4 4100c4d44da9177247e44a5fc1546778 5 d6a9a933c8aafc51e55ac0662b6e4d4a 6 124bd1296bec0d9d93c7b52a71ad8d5b 7 2e9ec317e197819358fbc43afca7d837 8 22975d8a5ed1b91445f6c55ac121505b 9 781e5e245d69b566979b86e28d23f2c7 a 343817fa02440513ce03e9d1f1e44dc7 b b60c52bf4849067f0b57c8bd30985466 c 2d31d97199fb287d6fcb4f82ebd1b3f2 d …

Software Development python
Member Avatar for memomk
0
572
Member Avatar for memomk

hey all I've searched all over the web and i didn't get a solution! what should i do to take the text from the 'urlT' line edit? is there another way? Nameerror "global name 'self' is not defined" whats wrong with it? [CODE] from PyQt4 import QtCore, QtGui class Ui_MainWindow(object): …

Software Development python qt
Member Avatar for memomk
0
2K
Member Avatar for JoBe

Hello ladies and gents, Was wondering if any of you could help me out, how can I count the amount of numbers(digits) there are in one integer, for example: int integer = 123; integer has three digits. int secInteger = 10; secInteger has two digits. The reason for asking is, …

Software Development c++
Member Avatar for jimmyraynor
0
345
Member Avatar for daino

I'm just wondering if the below is true? I pulled this from another forum. Does this mean that a application using qt4 can be built and used in a bank without getting permission or paying fees for it's use? *The Framework is freely available for Windows, Linux, MacOS X, and …

Software Development c++ macos qt
Member Avatar for daino
0
117
Member Avatar for godzab

Hello guys, I need help with the Robot class in Java. I am trying to excute a couple of keystrokes using an array so it will be less repetitive typing in the keyPress method. Here is the code: import java.awt.AWTException; import java.awt.Robot; import java.awt.event.KeyEvent; import java.io.IOException; public class RobotExp { …

Software Development java
Member Avatar for godzab
0
977
Member Avatar for perly

Hi, I would like to the code below to search the contents of file1 in file2 and then output results arranged according to file1 contents. At the moment the code outputs are according to the order of elemnts in file2. I need some help to get this code working as …

Software Development file-system perl
Member Avatar for perly
0
224
Member Avatar for VB 2012

Hi ive got a problem and im not sure how to do this one :( Im currently working on a dll and wondering on how something would work ? Public Sub CtsItemsTooltipText**(ByVal MyCustomItemsTooltipString As String)** ** MyCustomColumnsTooltipString = "This will display the Columns section for a Custom database" & vbNewLine …

Software Development vb.net
Member Avatar for VB 2012
0
112
Member Avatar for Sahil89

Hi, Recently I retrieved code of my project EXE file. And it was almost same with 100s of errors. So my question is Is career in .NET is safe? And is our code safe? Can this be done with other languages?

Software Development career vb.net
Member Avatar for Sahil89
0
160
Member Avatar for LieAfterLie

I was following [this tutorial](http://www.swiftless.com/tutorials/opengl4/1-opengl-window.html) for my first attempt at OpenGL. All I'm doing is initializing an empty window. His VS 2010 code is [here](http://www.swiftless.com/?download=1%20-%20OpenGL3%20-%20Window). Using Dev-C++ as my IDE on Windows 7, and MS SDK 7.1, I get this error: [Linker error] undefined reference to `_imp____wglewCreateContextAttribsARB' ld returned 1 …

Software Development c++ ide opengl
Member Avatar for DeanMSands3
0
1K
Member Avatar for Sendy Hipo

hi, i have this problem about reading the file's content from the back Write a program that asks the user for the name of a file. The program should display the last 10 lines of the file on the screen (the tail of the file). If the file has fewer …

Software Development c++ file-system ios
Member Avatar for Sendy Hipo
0
1K
Member Avatar for GilbertB

Currently I am working on a project regarding C# and SQL and I have a problem regarding the SELECT function and I cannot find any solutions on-line. The scenario is regard searching query from C# through SQL server and display the results in a Data Grid View at C#. I'm …

Software Development c c# c++ sql visual-studio
Member Avatar for Mitja Bonca
0
989
Member Avatar for IndianaRonaldo

I started with curl and now I'm able to post form data, obtain html pages and all that basic stuff. But I'm unable to analyse individual data in the obtained webpage. Like filtering all the images, videos and things like that. I can do that in Javascript, but that can …

Software Development c++ html-css image
Member Avatar for mustafaneguib
0
244
Member Avatar for OblibSystems

What i need to do is parse an integer to a "library" of co-ordinates. This integer allows for a random co-ordinate to be chosen. The "Library" i mentioned is shown below Public Function Hit(ByVal rnd As Integer) Select Case rnd case 0 return "(0,0)" case 1 return "(0,1)" End Select …

Software Development vb.net
Member Avatar for OblibSystems
0
206
Member Avatar for mgunia

I'd like to say "hello" to everyone as it is my first post. I looked for the solution to my problem on the internet for over 2 hours and I didn't find anything relevant. I hope you are able to help me. I have a bunch of invoices written in …

Software Development microsoft-office python
Member Avatar for mgunia
0
531
Member Avatar for SuperManofBC

public String getCurrentDay() { if(day.getValue() == 0) { return "Sunday"; } if(day.getValue() == 1) { return "Monday"; } if(day.getValue() == 2) { return "Tuesday"; } if(day.getValue() == 3) { return "Wednesday"; } if(day.getValue() == 4) { return "Thursday"; } if(day.getValue() == 5) { return "Friday"; } if(day.getValue() == 6) { …

Software Development java
Member Avatar for stultuske
0
216
Member Avatar for rasizzle

Here's my dilemma: I am creating a histogram through matplotlib and saving it in the same folder I'm running. There are a few image files that I can save it as, none of them being bitmap. So I'm trying to convert the image to bitmap. I've looked at WxImage and …

Software Development image python
Member Avatar for Gribouillis
0
28K
Member Avatar for Darek6

Hi everybody, I've got a code which returns to a given text an inverse index. From a list of tokens, the function produces a list sorted by the frequency. Example: inverted_index(['the', 'house', ',', 'the', 'beer']) [('the', [0, 3]), ('beer', [4]), ('house', [1]), (',', [2])] Code: def outp(txt): ind = {} …

Software Development python
Member Avatar for Gribouillis
0
235
Member Avatar for KushMishra

Hello all, I have an application in which I have put a datagrid with update and delete buttons. What I want is when I change the contents of the columns and click on update button, it should update that particular cell value into the database. My xaml code is as …

Software Development asp.net
Member Avatar for akhildwivedi
1
213
Member Avatar for major_lost

I am trying to determine the backcolor of a textbox and have an event happen. I've been using: "If txtbox.backcolor = System.Drawing.Color.Red Then End if" But this dont work. Can somone help me? ml

Software Development vb.net
Member Avatar for poojavb
0
77
Member Avatar for london-G

Hi, I have a complete ms access system build(tables, forms, reports, query). I am in the process of using vb to re-create the system. I managed to show every fields on my vb forms without any coding. However I have some wrong information in my combo boxes. For example I …

Software Development vb.net
Member Avatar for poojavb
0
127
Member Avatar for mcjiwe

my_funcs.c: int x = 0; FILE *stockIngredientes = fopen( "C:/Dropbox/Work/ISEC/P/ingredientes.txt", "r+" ); while( fgets( tmp, 100, stockIngredientes ) != NULL ){ ingredientes[x].nome = strtok( tmp, ":" ); ingredientes[x].identificadorNum = strtok( NULL, ":" ); ingredientes[x].quantStock = strtok( NULL, ":" ); ingredientes[x].limMin = strtok( NULL, ":" ); ingredientes[x].consumoMed = strtok( NULL, ":" …

Software Development c data-structure
Member Avatar for mcjiwe
0
141
Member Avatar for rhoit

This is the program to print all possible combination of the string. It was orginally written in C++. Now i'm trying to write it in C but stuck with this problem of strings and pointers + some warnings. INPUT is taken from argument, which is "const **char" . I tried …

Software Development c
Member Avatar for rhoit
0
370
Member Avatar for dwlamb

A script I am writing on works on the DVD present in the drive at time of script execution. I want to extract merely the label of whatever appears after '/media/'; ./script.sh /media/DVDRW-43/ An obvious solution would be to get the substring by `path='echo ${file:7:9}' #renders DVDRW-43` but I would …

Software Development regex shell-scripting
Member Avatar for cheochi
0
182
Member Avatar for rtellez700

Hello I am running into an error after creating the jar file. I get a message stating that the main class to my program could not be found when in fact there is a main class. If someone could give me a hand and lead me in the right direction …

Software Development java java-swing oracle
Member Avatar for NormR1
0
1K
Member Avatar for danrt

I'm trying to create a Desktop Recording Application. When I record the full screen, the program works as it is supposed to, but in some cases when I select a specific region from the desktop to record I get an error at: `int result = AVIStreamSetFormat(psCompress, 0, ref bi, (Int32)bi.biSize);` …

Software Development
Member Avatar for danrt
0
394
Member Avatar for pritaeas

I found that there is a difference with the drawing of a custom bitmap brush, when I subclass TGraphicControl versus TCustomControl. The expected behaviour occurs when using the TCustomControl descendant. Each paint starts with the brush in the same position, no matter the location of the control (top-left). When using …

Software Development delphi pascal
Member Avatar for pritaeas
0
239
Member Avatar for vijaycare

Hi All, I am using vs2005 with access database. Developing a new application. I am the new one to the application development. This is what my situation which takes my time towards searching a reference but no where it is found: ***There is 2 tables named tblbill(contains VendorID & TruckID) …

Software Development vb.net
Member Avatar for vijaycare
0
201
Member Avatar for mansi sharma

Suppose I have items in combobox1 1) On button click event ,I want to copy all the items to combobox2 ? What is the coding for this?

Software Development vb.net
Member Avatar for somu1205
0
622
Member Avatar for hanaac++

**how to build c++ compiler? please help me. **

Software Development c++
Member Avatar for hanaac++
0
99
Member Avatar for Parloverde

So I'm currently making program for my year 12 IPT assignment. It's a maths game for Year 4's and 5's. I need to carry a variable throughout the entire project (across forms) so I can easily specify what level the user is playing and how many questions they want to …

Software Development visual-basic
Member Avatar for Parloverde
0
2K
Member Avatar for sunfutbol

str(name)=input('Enter a name\n') is there a better way than using raw_input() ?

Software Development python
Member Avatar for sunfutbol
0
202
Member Avatar for MrEARTHSHAcKER

Hi, There is short explanation of queue at cplusplus.com site which tells that queue should contain front() and back() functions. As I have tested in VC++, if I use queue from <queue> and call any of these functions for an empty queue, program crashes. Could this problem be solved by …

Software Development c++ queue
Member Avatar for MrEARTHSHAcKER
0
2K
Member Avatar for G_Waddell

Hi, I'm probably missing something really simple or trying too much at once but it's 16:30 on a Friday afternoon and my head is wrecked!! Basically, I'm trying to build an application that takes out put from a database query as XML and uses XSL to transform it into HTML …

Software Development html-css vb.net web-browser xml
Member Avatar for G_Waddell
0
2K
Member Avatar for hassan980

Hello, Im trying to make a program which basically performs unit conversion. I have basically made two text boxes, one for the S.I. Units and the other for British Units. The general idea is that when i input any number in the S.I. Unit text box, it should display the …

Software Development vb.net
Member Avatar for G_Waddell
0
161
Member Avatar for _Brooksy

** Having trouble running this code as the compiler keeps having issues with the method 'public void mannipulate()', I'm new to java so forgive my ignorance, but I've been trying to rearrange everything in every which way to please this thing and its just not turning out right. I'm sure …

Software Development image java
Member Avatar for JamesCherrill
0
310
Member Avatar for Jaydenn

How exactly would I go about doing the following in C#? public class Test { public static void main(String[] args) { Test(new TestInterface() { @Override public void SomeMethod() { //create instance of the interface within parameters of a method. } }); } public static void Test(TestInterface _interface) { } } …

Software Development c# java
Member Avatar for Jaydenn
0
228
Member Avatar for Sendy Hipo

hello, im newbie in c++ and i have some newbie questions. erm here's the problem ive been thinking : #include <iostream> #include <fstream> using namespace std; struct Info { string name; int age; }; int main() { Info person1, person2; fstream writefile("output.txt", ios::out | ios::binary); person1.name = "sendy"; person1.age = …

Software Development c++ ios
Member Avatar for Sendy Hipo
0
199
Member Avatar for perly

I have two files: File1: M1U152S44906X14127_xu M1U7S112336U117688_xu File2 (tab delimited): T1X19S17508N179711_xu AAU_779 M1U152S44906X14127_xu xcup M1U7S112336U117688_xu mmna I want to search the content of File 2 using the content of File 1 and then display the output as follows: Date of search: The following matches were found in File 1: T1X19S17508N179711_xu …

Software Development file-system perl seo
Member Avatar for perly
0
206
Member Avatar for ausops

Lets say we have an 1d array called array. Now I know array.length gives me how many primitive types or objects are in a 1d array but what does it do for a 2d array with rows with different rows? {1, 2, 3, 4} array.length would be 4 but if …

Software Development java
Member Avatar for JamesCherrill
0
2K
Member Avatar for Anark10n

#include <stdio.h> #include <mysql.h> #include <string.h> int main(int argc, char **argv) { MYSQL *conn; MYSQL_RES *result; MYSQL_ROW row; int num_fields; int i; char user_query[100]; char word[10]; printf("Enter word: "); scanf("%s", word); sprintf(user_query, "select * from english where word = %s", word); printf("%s\n", user_query); conn = mysql_init(NULL); mysql_real_connect(conn, "localhost", "root", "123", …

Software Development c mysql ubuntu
Member Avatar for Anark10n
0
151
Member Avatar for sammoto

So it's my first time trying to do a loop and I've come across something that I'm not experienced enough to explain... My program compiles fine, but after I enter my third number (variable "a", see code below) it just skips a line and does nothing. It just lets me …

Software Development java
Member Avatar for sammoto
0
241
Member Avatar for iamthesgt

I am using Awk inside a bash shell script to search header files for c++ functions so I can add these functions to another file. All of the functions I need will have form: type getName() or type setName(type value) Right now I get all the functions listed in between …

Software Development c++ regex shell-scripting
Member Avatar for iamthesgt
0
454
Member Avatar for bibiki

I believe the title of my thread explains what I am trying to do... I have a .class file, I need to look at the code has generated the .class. is this possible, and if yes, can you tell me how?

Software Development java
Member Avatar for stultuske
0
231

The End.