132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for zangetsuu

my function was working all fine and dandy but boring until my friend separated the function for me which we are suppose(required by teacher) to do and now my program stops after i enter the first and last name ( i was the one that added multiple return 0;) i …

Software Development c
Member Avatar for zangetsuu
0
1K
Member Avatar for linuxdude

Hello, I am beginning learning intel assembly. I am taking simple gcc programs and looking at the assembly. All gcc outputs have a line similar to: mov DWORD PTR [ebp-4] that I can't figure out. For example [code] int main(void) { int x = 5; return 0; }[/code] gives me …

Software Development assembly ubuntu
Member Avatar for NotNull
0
4K
Member Avatar for operator494d

Hi,I'm new to assembly but i cannot figure this out NEG BYTE [BX] ; Negates byte quantity at DS:BX NEG WORD [DI] ; Negates word quantity at DS:[U]BX[/U] first line I understand but how did he get BX register in second line?! thanks in advance

Software Development assembly
Member Avatar for NotNull
0
84
Member Avatar for SeanBlack0000

In this snippet of code, I am trying to check the customers request against the volume remaining in the tank. If the request is greater, I need to instruct the customer to move to the next tank. But I am having problems. The tank is set to store 100 gallons. …

Software Development c++
Member Avatar for WaltP
0
473
Member Avatar for terabithia

Hi, Could someone please let me know how to terminating char pointer array properly? The menu 0 can successfully generate a set with no garbage value But other function for ex: Union , Equality Got a weird character at the back of the array. ex = S = { A …

Software Development c++
Member Avatar for dusktreader
0
152
Member Avatar for ariel.goldstien

Hi I am trying to create an image with text hebrew in it using Image and ImageDraw moduls but I keep getting erros. this is the code import Image import ImageDraw a = u'\u05d0'#the unicode of the letter I want to display im=Image.new('RGB',(200,200),(100,100,100)) d=ImageDraw.Draw(im) d.text((0,0),a) this is the error I …

Software Development image python
Member Avatar for ariel.goldstien
0
366
Member Avatar for tylerc101

Hey guys, I'm having issues returning my array at the end of my code, when I do the array is not the same as it was before being returned (which can be seen by the printout). I also get a warning from my compiler: "warning: address of local variable 'garray' …

Software Development c++
Member Avatar for dusktreader
0
120
Member Avatar for makan007

I am exploring to add an element, ASCII letters to my random generated 1D array to form new array. How can I use <cstring> header to achieve my result. [CODE] #include <iostream> #include <ctime> #include <cstring> #include <cstdlib> using namespace std; const int MAX = 10; void constructSet1 (char*, int); …

Software Development c++
Member Avatar for dusktreader
0
227
Member Avatar for pysup

Hi, The code below will check if a particular exe is running in windows, return the Process ID and force kill the process. If anybody has an easier way to do it please feel free to comment :)

Software Development python
Member Avatar for Tech B
0
229
Member Avatar for rickywh

I'm using a socket server that is based off of java and it allows java extensions to be implemented that allow server side login to be performed. I want to create a signup/login system but I'm struggling with finding a way to validate/filter user input before manipulating with the database. …

Software Development java
Member Avatar for BestJewSinceJC
0
170
Member Avatar for problemkid

Hi good day to all, I am suppose to write a program using class that allows me to add or subtract numbers that are very long. Eg 100 digits. I have come out with a few ideas to go about doing it but need to clarify some points before i …

Software Development c++
Member Avatar for dusktreader
0
143
Member Avatar for doha786

hi, i have a TextField in myGUI where some data(results) are shown after calculation. I have a 'save' button to save this result into a particular txt file.. i almost done without error....but inside my txt file it shows this kind of things: [QUOTE]ava.awt.datatransfer.StringSelection@157f0dc [/QUOTE] Please anybody help me to …

Software Development file-system java
Member Avatar for BestJewSinceJC
0
200
Member Avatar for garyinspringhil

python def question def spinBox_Changed(self, a0, b0=785, c0=300): self.LCDNumber10.display((b0-c0)/a0) this works great if I manually have b0 and c0 values there but I need to get these variables from a slider value and spinbox valve respectively. The slider is self.slider5_2.value tried lots of combos like .value display Value etc. The …

Software Development python
Member Avatar for woooee
0
154
Member Avatar for vin1

hi all,im new here and im a beginner at c++, im making a simple tic tac toe program, and its not working properly, it cant determine the winner,could someone please help. heres the code [CODE] #include<iostream.h> #include<conio.h> #include<stdlib.h> #include<stdio.h> #include<graphics.h> #include<ctype.h> #include<time.h> void main() { /* request auto detection */ …

Software Development c c# c++
Member Avatar for mrnutty
0
142
Member Avatar for nomemory

Hello, regarding OOP I have Java background, and I usually think in java when I code OOP in python (which sometimes is actually a bad thing). [CODE=python]#!/usr/bin/python class Card(): SUIT = { 'C':'Clubs', 'D':'Diamonds', 'H':'Hearts', 'S':'Spades' } VALUES = { '2':2, '3':3, '4':4, '5':5, '6':6, '7':7, '8':8, '9':9, \ '10':10, …

Software Development python
Member Avatar for nomemory
0
400
Member Avatar for mmasny

Hello everybody, I'm new here. I'm new to C++ as well and have many problems that you might find silly. One of them is this code, not willing to compile: [code=C++] #include<iostream> class Okno; class ListaOkienEl; class ListaOkien{ ListaOkienEl* pocz; public: ListaOkien(); ~ListaOkien(); void DodajPocz(ListaOkienEl&); void UsunPocz(); ListaOkienEl* WezPocz(); }; …

Software Development c++
Member Avatar for mitrmkar
0
102
Member Avatar for cutie0407

im trying to add a new records to database access but when i click the button submit it say's Syntax error in INSERT INTO statement, OledbException was unhandled da.Update(ds, "MSHS") = syntax error INSERT INTO here's my code [CODE]Public Class StudentRegistrationForm Dim inc As Integer Dim con As New OleDb.OleDbConnection …

Member Avatar for apegram
0
687
Member Avatar for axa121

[code] from string import * def removePunctuation(sentence): sentence = lower(sentence) new_sentence = "" for char in sentence: if char not in punctuation: new_sentence = new_sentence + char return new_sentence def wordFrequences(sentence): wordCounts = {} split_sentence = new_sentence.split() print split_sentence for entry in split_sentence: for word in entry: wordCounts[entry] = wordCounts.get …

Software Development python
Member Avatar for woooee
0
3K
Member Avatar for tinek

i have an assignment to make a program that forecast the date given by the number of days by the user including leap years. example: Input date: November 20, 2008 Input number of days to forecast: 100 Forecast date: March 01, 2009 pls. help thank you ;)

Software Development c
Member Avatar for Dave Sinkula
0
100
Member Avatar for atticusr5

Hello everyone, I am a college student in his second year of learning C++. Last semester we would use Visual Studio to write and compile our code in. This year we use linux, more specifically the Vi editor. We use linux in two ways, either we use Putty in Windows …

Software Development c c# c++ ubuntu visual-studio
Member Avatar for Salem
0
141
Member Avatar for Mallos31

Alright, I have a file opened, read into a buffer, and closed. I need to search the file for this string of bytes: FDXXXXXX06YYYYYY The FD is an assembly code to load something, but that's not important here. The XXXXXX and YYYYYY are values that are unknown and YYYYYY will …

Software Development assembly c++
Member Avatar for Mallos31
0
195
Member Avatar for Ap0ca1ypse

Hello everybody, This must be so simple but I cannot find it anywhere. I want to split a form into two section by a line. Example TopData ______________________________________________ BottomData I cannot find the functionality anywhere and it is really bugging me. Any help will be much appreciated Thanks

Software Development vb.net
Member Avatar for Ap0ca1ypse
0
72
Member Avatar for wwsoft

hello can I keep track of objects in a list and being able to sort them by there z var ? do I use pointers ? how would I do this ? [code] #include <vector> vector<sometype> _objects_; create_object(object_type) { new object_type myobject; _objects_.push_back(myobject); return _objects_.at(list_end); } remove_object(int pos) { delete …

Software Development c++
Member Avatar for wwsoft
0
107
Member Avatar for macman101

Hey, I need some help inserting into a function and sorting the 10 user input numbers, I'm close, but I get zeros every time. Here is my code: [CODE]#include <iostream.h> void InsertIntoArray (int[], int, int, int); int whichSlot (int[], int, int); int main() { int num; int times; const int …

Software Development c++
Member Avatar for ChaseVoid
0
180
Member Avatar for sswati.sri

hi, I got exception"NoClassDefFoundException" at the runtime of this java code.My DSN connection is correct,sql server is also properly work,when my project excuted on tomcat.but my beans are not executed properly inly becoz of this connection error.plz give the solution to overcome this problem. [B]In my project i create connection …

Software Development java
Member Avatar for sswati.sri
0
245
Member Avatar for itsbrad212

I am making a twitter client in python and wxpython. As of now, my static text is not printing. How can I change this code so it will print out what I want it to? [CODE]import wx import twitter class main(wx.Frame): def __init__(self,parent,id): wx.Frame.__init__(self,parent,id, "Twitter Client", size=(700,400)) panel=wx.Panel(self) menubar = …

Software Development api client-server python social-media
Member Avatar for Stefano Mtangoo
0
147
Member Avatar for wilsonz91

Hi, My friend have a problem with running c++. She's using windows vista home basic. She's able to install C++ and run it but when she tries to launch any program she wrote, it pops out saying that it has a compatibility issue with this version of windows. Any ideas …

Software Development c++ windows-vista
Member Avatar for Ancient Dragon
0
168
Member Avatar for Stefano Mtangoo

I was sitting Idle and I decided to write simple image viewer to try myself on DC/Canvas but I didn't find any tutorial to guide me as I have never done that before. Here there are some restriction and I cannot view showme do. So anyone to help me with …

Software Development python
Member Avatar for Stefano Mtangoo
0
136
Member Avatar for rookanga

I am very new at this and I tried to look it up on google and that didn't help so I was wondering (and I know that you have to use shapes, to use a flow chart) how do you make a flow chart. to be more spefic the shapes …

Software Development c++
Member Avatar for wilsonz91
0
152
Member Avatar for blue3hree

hi.another post by me.ehehe pls check this code.i wonder how this would work: this program asks for the last and first name of the user.and at the same time it must separate the first names of the user.for example, the name of the user is juan miguel bautista. it will …

Software Development c
Member Avatar for Ancient Dragon
0
192
Member Avatar for samuel_1991

Hi, I found myself a difficulty on creating a image uploader to my database. This is because in .NET CF, I cant find File Upload control. Is there any other options and how should I do it? I know there is a OpenFileControl but there is a problem on saving …

Software Development asp.net vb.net
Member Avatar for samuel_1991
0
187
Member Avatar for Emerald09

Hello! I have written the code for a function that takes an object DailySale and compares its values with an array of objects fromInventory. If the id of the DailySale object matches with the id of an object in the array, it takes the price from there and calculates the …

Software Development c++
Member Avatar for jonsca
0
122
Member Avatar for gayatridevi

hi, I V.Gayatri Devi I am writing the c code in linux for distance calculation using haversine formula I included in my program as #include <math.h> but the sine functions and squareroot functions are not working in my program. instead of using math.h i also used cmath.h but there is …

Software Development c++
Member Avatar for jBat
0
73
Member Avatar for ELBUF

Greetings everyone, So I posted earlier a similar problem which I wrote in python, but now after accomplishing that, I think ill try to write it up in C++. The link to the original question is [URL="http://www.daniweb.com/forums/thread254474.html"]here[/URL]. If there are any other questions or if you need any more information …

Software Development algorithm c++
Member Avatar for fadrior
0
658
Member Avatar for swolll

Until now, I've coded in Notepad++ and compiled/tested in my university Unix account. This is getting tedious and inefficient, though. So, what can I do about it? Notepad++ doesn't have a compiler or debugger. I was thinking about using Eclipse. Would that be a good, free option? Does it have …

Software Development c++ unix
Member Avatar for Salem
0
313
Member Avatar for moods125

[code]#include <iostream> using namespace std; //function protoytypes int roman2integer(); bool isValidRoman(string & r); int findIt(char ch); int main() { int choice; do{ switch(choice) { case 1: roman2integer(); break; case 2: //integer2roman(); break; case 3: //quit=true; break; default: return 0; }; }while( ); return 0; } /////////////////////////////////////////////////////////////////////////////// int roman2integer() { string …

Software Development c++
Member Avatar for Salem
0
781
Member Avatar for muthu1802

how to write a code for sql parser to parse select statements in c#.

Software Development c# sql
Member Avatar for kvprajapati
0
159
Member Avatar for jemz

hello please help me where i am going to download the installer vb6...so that i can practice more at my house..hoping for your positive responds...thanks in advance

Software Development visual-basic
Member Avatar for vb5prgrmr
0
148
Member Avatar for dr.e

Hello. Somehow i managed that my program works with access databse located on my computer: con.ConnectionString = "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source = C:\Documents and Settings\company.mdb" Now i would like that program will open the database company.mdb from my web page exp. [url]www.page.com/company.mdb[/url] Can you suggest how? THX

Member Avatar for vb5prgrmr
0
91
Member Avatar for mhina

[code] import javax.swing.*; import java.io.*; import java.io.InputStreamReader; public class Weight2 { public static void main(String[] args)throws IOException { double cost; double tax; cost=Double.parseDouble(JOptionPane.showInputDialog("Enter purchase amount")); double payment; payment=Double.parseDouble(JOptionPane.showInputDialog("Enter amount tendered")); BufferedReader CHANGE=new BufferedReader(new InputStreamReader(System.in)); tax=Double.parseDouble(CHANGE.readLine()); displayTax(getTax(cost,tax)); setPayment(payment); setTax(tax); setCost(cost); displayCost(getCost(cost,tax)); System.exit(0); } public static double getTax(double y, double x) { …

Software Development java java-swing
Member Avatar for musthafa.aj
0
155
Member Avatar for tqmd1

I have followin codes [CODE]Dim dt As DataTable Dim str As New SqlClient.SqlCommand("select code,name from employees", con) da = New SqlClient.SqlDataAdapter(str) dt = New DataTable da.Fill(dt) dt.Columns.Add("city") Dim cmd As New SqlClient.SqlCommand("UPDATE dt SET city=(SELECT top 1 city FROM master WHERE master.code=dt.code)", con) cmd.ExecuteNonQuery() [/CODE] it says [COLOR="Red"]Invalid object name …

Software Development vb.net
Member Avatar for tqmd1
0
123
Member Avatar for vidit_X

Practise problem by ~s.o.s~ Q. Write a program which performs addition, subtraction, multiplication of matrices. The dimensions of both the matrices would be specified by the user (dynamic memory allocation required). Use of structure or a class to define the matrix would be a good idea. (Expert) [CODE]#include<iostream> using namespace …

Software Development c++ matrix-multiplication
Member Avatar for vidit_X
0
266
Member Avatar for Anarionist

ok i think ive got this right i but i tried compiling an it spit out [QUOTE]error: expected primary-expression before ‘.’ token|[/QUOTE] any idea what this "primary expression is? ive tried single quotes and double quotes to fix it as i have this problem every time i mess with strings …

Software Development c++
Member Avatar for Anarionist
0
266
Member Avatar for vivek4020

Hi i am new to this I created a masked text box but dont know how to define a mask For example i want the textbox to allow only numbers and maximum size of input must be 4 Another would be that the maximum size should be 2 and it …

Software Development
Member Avatar for jamesonh20
0
91
Member Avatar for cpu-guy

Hi guys, Do anyone knows how we can implement this code: Write an efficient recursive function called IndexEqual(A,i,j) that returns true if there exists an index x (i < x < j) such that A[x] = x, otherwise returns false. You may assume A is a sorted integer array in …

Software Development c++
Member Avatar for cpu-guy
0
143
Member Avatar for kiryoku

how can i remove an element in my array without using special commands like hashmap....i have made many parts of it...just the delete part... [CODE]import java.io.*; public class Super { public static void main(String args[])throws IOException { String temp; int num[]=new int[10], choice,index,value,i,search,found=0; BufferedReader in; in = new BufferedReader(new InputStreamReader(System.in)); …

Software Development java
Member Avatar for BestJewSinceJC
0
220
Member Avatar for NickRx

I'm new to C++. I want to know if there's any way to shorten this code. [code] #include <iostream> using namespace std; int a, b, result; int main () //Addition (main function of this program) { cout << "Lets add numers\nEnter you first number\n"; cin >> a; //First value cin.clear …

Software Development c++
Member Avatar for Narue
0
159
Member Avatar for NathanOliver

Hey all. I have written a quine and I was wondering if I have the jist of it right. I'm not sure if the code needs to be longer or this would be a suitable answer. Here is what I have. btw driver.cpp is the file name for my source …

Software Development c++
Member Avatar for NathanOliver
0
152
Member Avatar for jemz

hello please help me on how to put indicator on flexgrid is this possible?,...if i have new added data on my flexgrid then it point to the newly added data can you help how to do this...hoping for your positive responds..thanks in advance

Software Development visual-basic
Member Avatar for jemz
0
1K
Member Avatar for jemz

hello please help me how to connect my program to microsoft acces...please help me because i don't have any idea on how to connect ...hoping for your positive responds...here's my code.. Private Sub cmdAdd_Click() For i = 1 To Len(txtLname) If IsNumeric(Mid(txtLname.Text, i, 1)) = True Or (Mid(txtLname.Text, i, 1)) …

Software Development microsoft microsoft-access visual-basic
Member Avatar for jemz
0
145

The End.