132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for qariella

This is what Im gonna do: In a class called UsefulMethods : a) Write a method public static int maxOfTwo( int tal1, int tal2) {} . As you can see this method will accept two integers as parameters and returns the larger of this two. [B]This one I rly need …

Software Development java
Member Avatar for qariella
0
111
Member Avatar for sujithy15

java is robust and secure what is meant by robust and why is java robust? why is java called secure? can any one please help me with these?

Software Development java
Member Avatar for musthafa.aj
0
122
Member Avatar for truthuntold

I am running into problem on getting this program done. Its suppose to quiz you on your 2 powers ie(2^2 = 4, 2^22 = 2m, 2^46 = 32t) I've programmed in python for a couple years but a lot of the tricks python lets us have C++ doesn't or I …

Software Development c c# c++
Member Avatar for WaltP
0
100
Member Avatar for sindhujavenkat

How can I split a widget and add some contents on it in PyQt4? Dear Python experts!!! Could you refer me some books for PyQt in which the documentation would be clear(other than Dive into python and Rapid GUI development in python)?

Software Development gui python
Member Avatar for sindhujavenkat
0
180
Member Avatar for Nick Evan

[B]Background[/B] I was looking for a simple control in wxWidgets which I could use to plot out [i]some value[/i] against time, but I found that apparently I was the only one that needed that kind of graph. (so I don't know why I'm posting it... but anyway). I decided to …

Software Development c++
Member Avatar for callmegood
0
919
Member Avatar for Cyberhacker

Hello my name is roman I have this project to do that involves the following: I need to take a text document full of numbers and output the lowest of those numbers and the highest of those numbers but they first have to be put into an array then outputted... …

Software Development c++
Member Avatar for WaltP
0
125
Member Avatar for harry010

Hi, I'm using WebSphere WebFacing tool to convert an old 5250 application and I am getting this error when I try to convert a particular application. I've tried increasing the java heap but this does not make any difference. Would anyone know how to allocate more memory within websphere? Thanks. …

Software Development apache java
Member Avatar for harry010
0
205
Member Avatar for suncica2222

why do people define main() as int [B]and not void[/B]? and then write return 0; or return 1; or return -1; or return EXIT_SUCCESS; what is the point of this?

Software Development c++
Member Avatar for Narue
0
85
Member Avatar for Vhalor

Hey guys, been to the forum a couple times but never posted. Thought I'd give it a try. So my problem is basically this. I'm to create a program which reads a line in this form "-6 1 2 3 6" "-10 1 2 5 10" -6 being a perfect …

Software Development c
Member Avatar for Narue
0
124
Member Avatar for wwsoft

I'm making a framework for what will eventually be a game. All objects in game are derived from game_object. I store everything in vectors; The _objects_ vector contains pointers to objects. The problem is when I call update the default update() function from game object is ran instead of the …

Software Development c++
Member Avatar for dusktreader
0
102
Member Avatar for Soulcito

Hi! First of all, sorry for my english. I have a function that edit some data from every record in a table. I'm using a for to make it work. The problem is that in every loop it asks me to set the table in edit mode ([CODE]table1.edit[/CODE]). That makes …

Software Development pascal
Member Avatar for cepukom
0
545
Member Avatar for gepo

[CODE]class monomial { public: monomial(){}; monomial(string vars); // Assignment operator [COLOR="Red"]void operator= (monomial & p);[/COLOR] monomial operator* ( monomial &p); monomial operator/ (monomial &p); bool operator== ( monomial &p) ; bool operator> ( monomial &p) ; bool operator< ( monomial &p) ; void print(); public: list<unsigned int> var;//variables separated by …

Software Development c++ visual-studio
Member Avatar for gepo
0
108
Member Avatar for totalwar235

i am having a few errors compiling a code in visual C++ with my jumble word code, can anyone help? [CODE]//word jumble #include <iostream> #include <string.h> #include <cstdlib> #include <ctime> using namspace std; int main() { enum fields{WORD, HINT, NUM_FIELDS}; const int NUM_WORDS = 5; const string WORDS[NUM_WORDS][NUM_FIELDS] = { …

Software Development c++
Member Avatar for totalwar235
0
321
Member Avatar for xcarbonx

hello, i just had a very simple question about float, so i am not going to post the full coding, only what matters in this instance. my output of program shows the computed number as 4, instead of 4.00, even though it is declared as float Here is the example: …

Software Development c++
Member Avatar for xcarbonx
0
96
Member Avatar for bd338

Hello everyone! If I try to Assemble the following with MASM, I get this error: Code: [CODE] .model small .stack .data message db "Hello world!", "$" .code main proc mov ax,seg message mov ds,ax mov ah,09 lea dx,message int 21h mov ax,4c00h int 21h main endp end main [/CODE] And …

Software Development assembly
Member Avatar for bd338
0
775
Member Avatar for flipjoebanana

Is there a way to hide assembly code when my C code references a library function that deals with memory? (Not showing 'asm' code)?

Software Development assembly c
Member Avatar for gerard4143
0
133
Member Avatar for jdpjtp910

I have a program that is menu driven by functions. The program gathers inventory data from the user and then the user can add, change, display (by record #), or display all records. The code works great, BUT when I add records and go to edit them, it changes the …

Software Development c++ data-structure ios
Member Avatar for mitrmkar
0
125
Member Avatar for uniquereason

I am trying to create a program that compares two files that contain letters from A to E. Both files have 20 of them. Now im just stuck i feel that i could use if statements but i don't know how to go along with it. Any help will be …

Software Development c++ file-stream file-system
Member Avatar for Nick Evan
0
182
Member Avatar for explorepython

hi all, In the example below [CODE]from PyQt4 import QtCore, QtGui class Ui_Dialog(QtGui.QDialog): def __init__(self,parent=None): QtGui.QDialog.__init__(self,parent) self.setObjectName("Dialog") self.resize(600, 500) self.model = QtGui.QDirModel() self.tree = QtGui.QTreeView() self.tree.setModel(self.model) print(self.model.flags(self.model.index("c:\Program Files"))) self.model.setFilter(QtCore.QDir.Dirs|QtCore.QDir.NoDotAndDotDot) self.tree.setSortingEnabled(True) self.tree.setRootIndex(self.model.index("c:\Program Files")) #self.tree.hideColumn(1) #self.tree.hideColumn(2) #self.tree.hideColumn(3) self.tree.setWindowTitle("Dir View") self.tree.resize(400, 480) self.tree.setColumnWidth(0,200) self.tree.show() QtCore.QObject.connect(self.tree, QtCore.SIGNAL("clicked(QModelIndex)"), self.test) QtCore.QMetaObject.connectSlotsByName(self) self.setWindowTitle(QtGui.QApplication.translate("Dialog", "Dialog", None, QtGui.QApplication.UnicodeUTF8)) def …

Software Development python
0
215
Member Avatar for AlmaREY

[I]<<split>>[/I] so you did get your program to work then??? i am running into the same problem. i get this error \prob 3.cpp(15) : error C2447: '{' : missing function header (old-style formal list?) but my programs heading looks just like all i have seen and i cant find anything …

Software Development c++
Member Avatar for Ancient Dragon
0
275
Member Avatar for ben_

This function will take a string and convert it into a folder/file friendly name. I use it in conjunction with url rewriting, deriving the filename from the title of an article.

Software Development
Member Avatar for Ravenheart
0
136
Member Avatar for hsp700

What is the keycode of "Escape" while using curses.h???? is it KEY_EXIT?? I hv used this bellow but when i press escape, it prints "^[" instead of stopping the loop! and when i press "g", it does what i want the code to do when "escape" is pressed!!...Help! I am …

Software Development c
Member Avatar for IsharaComix
0
12K
Member Avatar for skorm909

here is my script: [CODE]#include <iostream> #include <cmath> int main() { using namespace std; int who; cout << "how are you today? good, bad, or eh?" << endl; cin >> who; if (who == "good") { cout << "ahh thats pretty cool i guess..." << endl; } if (who == …

Software Development c c# c++
Member Avatar for skorm909
0
362
Member Avatar for Kruptein

Are their people willing to help testing/contributing to a python project? (if this is not a 'legal' subject, feel free to delete it; I wasn't sure)

Software Development legal python
Member Avatar for Kruptein
0
79
Member Avatar for sniperx99

I would like to specify a file for manipulation from the command line. I am new to python so I'm not really sure how to begin this. I am guessing that I need some options?

Software Development python
Member Avatar for d5e5
0
477
Member Avatar for nasir.ud

Hi everyone, In my database table I created a column whose data type is Image. I have successfully inserted a image from PictureBox control in binary format in that table field. Now I would like to retrieve that image stored in binary format and would like to show this in …

Software Development dataset image
Member Avatar for ddanbe
0
2K
Member Avatar for rwbarrette

I have a script which looks at multiple values within a large database, and draws coordinates on a floatcanvas. I also have some thresehold variables attached to a slider widget. As the slider changes the thresehold value, the canvas is redrawn...well...sort of. It draws the new objects over the old, …

Software Development python
Member Avatar for vegaseat
0
444
Member Avatar for hag++

Ok, having some serious trouble here. My proffesor told us to write a progrm (what it does really doesnt matter here) however he wants a FULL color menu in the console. He showed us an example of what he wants, it was very cool, it had a red backround, then …

Software Development assembly c++
Member Avatar for hag++
0
572
Member Avatar for suncica2222

I dont understand this...I see this inside () is struct and BOOL is typedef for int actually ???? ,but what is (WINAPI *_CreateProcess) ????? its loks like typedef <type><type><list of types> ????? Can some one explain this? [CODE]typedef BOOL (WINAPI *_CreateProcess)( //BOOL is int??? LPCTSTR lpApplicationName, LPTSTR lpCommandLine, LPSECURITY_ATTRIBUTES lpProcessAttributes, …

Software Development c++
Member Avatar for suncica2222
0
133
Member Avatar for foren

[CODE]import os f = open(r'c:\Fummy_Tasks\Fummy_Forensic\19012010\IMAGES.txt') mkdir_name = 'mkdir c:\\Fummy_Tasks\\Fummy_Forensic\\19012010\\test2_Strings' print mkdir_name os.system(mkdir_name) mkdir_name = 'mkdir c:\\Fummy_Tasks\\Fummy_Forensic\\19012010\\test2_Memdmp' print mkdir_name os.system(mkdir_name) f = open(r'c:\\process_list_test2.img.txt','r') process_id = f.readline() while True: process_info = f.readline() if not process_info: break process_PID = process_info.split() openfilename = 'c:\\python26\\python.exe c:\\volatility-1.3_Beta\\volatility memdmp -f c:\\Fummy_Tasks\\Fummy_Forensic\\19012010\\test2.img -p %s' % (process_PID[1]) print openfilename …

Software Development python
Member Avatar for Gribouillis
0
231
Member Avatar for wmsigler

I am experiencing a problem with this CheckBoxJList class (I found it posted somewhere, it is not mine), in which when there are no boxes checked, and then you check a box, you cannot click to uncheck it--you must first check another box. This is an annoying bug and I'm …

Software Development java java-swing
Member Avatar for BestJewSinceJC
0
112
Member Avatar for GinoScientist

Hi all, I am new to this forum, I am hope somebody can point me to the right direction if I am asking in the wrong place... I have a lot of code written for the ASM286 compiler, which I am trying to run somewhere. Because it is a complex …

Software Development assembly
Member Avatar for GinoScientist
0
134
Member Avatar for vivek4020

Hi I am new to Java GUI development I installed the NetBeans IDE I have not used anything other than Visual Studio in my life I have studied Java in school and college and am familiar with it So i was able to create a basic application but don't know …

Software Development ide java java-netbeans
Member Avatar for vivek4020
0
150
Member Avatar for smbee

I am writing the game of life code. Now this is running for smaller size of matrices, but I need this to run for big matrices. So I need to deallocate the memory somehow. I tried it with the //deallocate part at the end of calculate(). But now its showing …

Software Development c storage
Member Avatar for Ancient Dragon
0
146
Member Avatar for devster123456

I am currently trying to generate a program using a double nested for loop to get the following output: >Please enter the maximum integer value you wish to find divisors: 10 >List of divisors of the integer between 1 and 10: >divisors of 1: 1 >divisors of 2: 1, 2 …

Software Development c c# c++
Member Avatar for Agni
0
452
Member Avatar for BigGar

Hey, I have a strange problem. I added an image as the background image for a form in VB.net. When I run the program, after approx. 5-6 seconds, the image partially overlays itself, as in an offset overlay of the underlying image. I never had this problem in VB6, but …

Software Development html-css image vb.net
Member Avatar for BigGar
0
117
Member Avatar for rlindsey

Hi all, I'm having a similar problem with a code of mine. [I]<<note: split from [URL="http://www.daniweb.com/forums/post831781.html#post831781"]here[/URL]>>[/I] In my code I have a class in which I am trying to implement a dynamic array of structs. My compiler does not seem to like my deconstructor, and complains that my dynamic array …

Software Development c++
Member Avatar for rlindsey
0
190
Member Avatar for robinotje

Hello everybody, I was trying to make a telephone directory, when I ran in to several problems with the compiling. When I fixed these, I saw that the programm wasn't working as I want it to work :) Can anyone tell me what I did wrong, and try to help …

Software Development c file-system
Member Avatar for WaltP
0
454
Member Avatar for cwarn23

Hi - it's me again. I have the following code but don't exactly know what it means or how to make the opposite code. The code I currently have is [CODE]#define rotateleft(x,n) ((x<<n) | (x>>(32-n))) #define rotateright(x,n) ((x>>n) | (x<<(32-n))) [/CODE] Then can be used like the following [CODE]a = …

Software Development c++
Member Avatar for dusktreader
0
382
Member Avatar for LostnC

Hello. I am beginner using C++. I have been searching through previous posts, but I haven't found anything to apply to my problem... I have a program that I initialize data into an array. I am using a Structure. After initializing the data, I use a Switch statement to allow …

Software Development c++ data-structure
Member Avatar for dusktreader
0
1K
Member Avatar for cgib

I created a .net (c++) dll which I'm using with a com application. In order to use the dll with com, I ran the sn,gacutil, and regasm/tlb utilities. Now, I added a dll from Microsoft Enterprise Library to my dll. When running the app, I get an error that the …

Software Development asp.net c++ microsoft
Member Avatar for Fbody
0
73
Member Avatar for mikabark

Thanks you guys.. I have one more question. I'm programming recursive directory traverse function. It will be called from main program with absolute directory name. I could printout in a simple 2~3 depth directory. But I could not in complex structure. (/lib/modules has two directory, and inside there, files and …

Software Development c++
Member Avatar for Ancient Dragon
0
181
Member Avatar for Totte94l

[I]Hello! In my application, i want to make the user write the code by himself. Like, he have a textbox, there he is going to put the code like, msgbox("Hello") then when he press the button, the msgbox will open. So, anyone out there got any ideas? Thank you! -Prims0[/I]

Software Development vb.net
Member Avatar for apegram
0
119
Member Avatar for gregarion

[CODE] string NewMovie = "ww"; string queryText ; queryText = "INSERT INTO movie_info (movie_title ) VALUES('" + NewMovie + "')" ; MYSQL *conn; conn=mysql_init(NULL); mysql_real_connect(conn,host,username,password,database,0,NULL,0); mysql_query(conn,queryText.c_str()); mysql_close(conn); return 0; [/CODE] What i would like to know is how am i able to do a check to see if such a …

Software Development c++
Member Avatar for Fbody
0
144
Member Avatar for zrjamcrz

well im thinking of making a program that can impress my instructors,, can you suggest what program should i make?? and please assist me..

Software Development java
Member Avatar for verruckt24
0
165
Member Avatar for jpslayug

Hi All, Good day to everyone! I'm new to Python (and relatively new to scripting, at that), and really benefited from looking at examples on this site, you guys are great! I'm trying to do the following, and need help please: 1. Read an input file, each line formatted as …

Software Development python
Member Avatar for jpslayug
0
224
Member Avatar for Sarada Adiraju

hello This is Sarada Adiraju. I have signed up for this community today. i got an error in a java program Its REACHED END OF FILE WHILE PARSING ERROR. Can anyone help me to solve this and I wanna know about why am I getting this error. Thanks.

Software Development java
Member Avatar for musthafa.aj
0
56
Member Avatar for sujithy15

what is eclipse? well i am a beginner in java n i am learning the basics will u plzz explain about eclipse in a clear way

Software Development java
Member Avatar for musthafa.aj
0
92
Member Avatar for maddav

Hi, I'm very much a beginner to C++, but I've been assigned a project outside of my programming class that is starting to get tricky. I'm modelling a layered optical system and I need to create N two-dimensional arrays (2x2 matrices to be used in matrix multiplication), where N is …

Software Development c++ matrix-multiplication
Member Avatar for maddav
0
189
Member Avatar for iamfabian

Totally new to C++, so please forgive me... I'm trying to have a user input a filename and then check the file for all string literals. The output should return the string literal (not the whole line, which is what I am getting). Also, I have to ensure it ignores …

Software Development c++ file-system
Member Avatar for tetron
0
405

The End.