132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Egypt Pharaoh

I want the code of program that convert from "decimal to hexadecimal "and from "hexadecimal to decimal " in console applicathion

Software Development
Member Avatar for NightCrawler03X
0
411
Member Avatar for mertserimer

the inputs are these computer 21 sabanci 4 sabanci 6 university 6 university 12 computer 17 university 3 computer 9 computer 6 sabanci 2 university 9 problem occurs at third line when the input name1 is equal with the previous input name1. Really thx for helping. Sorry for mess. #include …

Software Development c++ linked-list
Member Avatar for mrnutty
0
178
Member Avatar for RobBobSmith

Hi everyone: I am a c++ newbie. I have created a matrix class based on dynamic arrays. My goal is to use it for creating 2D matrices that I can then use to solve heat/fluid transport problems. When instantiated, I need each matrix to be initialized with zeroes only. I …

Software Development c c# c++
Member Avatar for Lerner
0
152
Member Avatar for rees90

There was a post about this before: [url]http://www.daniweb.com/forums/thread88472.html[/url] but no code in it, this is the code I have written and it calculates the sine of x, but not exactly what I was asked to do, I have set counter to 15, and there should be no counter, it should …

Software Development c++
Member Avatar for VernonDozier
0
188
Member Avatar for Lylywhatever

can someone tell me what is wrong with my code?? i cannot make this face. thank you! using graphics.win [code] from graphics import * import time def moveAll(shapeList, dx, dy): for shape in shapeList: shape.move(dx, dy) def moveAllOnLine(shapeList, dx, dy, repetitions, delay): for i in range(repetitions): moveAll(shapeList, dx, dy) time.sleep(delay) …

Software Development python
Member Avatar for tbone2sk
0
2K
Member Avatar for Nerathas

Hello, I have writted a prog that generates the values & triangleOf Pascale. But the thing i cannot seem to find, is[B] how to get rid of the Console.Writlines in the middle of my code[/B] (where the values get calculated). I am using a 1 dimensional array for this insteed …

Software Development mathematics
Member Avatar for ddanbe
0
115
Member Avatar for mercury113

How will i add lesson to chapters?? that when i add a lesson it will relate to the chapter .. for example: Chapter 1 Lesson 1.1 Lesson 1.2 is it possible in vb.net? please help ..

Software Development microsoft microsoft-access vb.net
Member Avatar for mercury113
0
73
Member Avatar for PcCopat

Hello, I want to make a linked list program consisting of one main link, and each main links have sub link. [CODE]Main 1 -> Main 2 -> Main 3 -> ... -> Main N -> NULL | | | | Sub 1-1 Sub 2-1 ... ... | | Sub 1-2 …

Software Development c++ linked-list
Member Avatar for kbshibukumar
0
127
Member Avatar for churni

hi, i have a very simple problem with my program and just need a push in the right direction and will be much appreciative of your help. i have a bucket sort program which works fine. well i say fine, its fine when it is sorting the numbers initialised at …

Software Development c
Member Avatar for churni
0
178
Member Avatar for pearle

Hi, all. I'm trying to write a function that checks the status of a Tic Tac Toe game. If there's a winner, it'll return the character for the winner ('X' or 'O'). If there's a draw, it returns 'D'. I'm having trouble getting it to check whether the game is …

Software Development c++
Member Avatar for usainbolt
0
4K
Member Avatar for miYn2o0

I have a wireless camera with RGB (RCA) exit cable (PAL) and I was planning to control the video via C++ code The idea was to use something like EasyCap adapter (RCA to USB with a driver CD) to let the camera play video in my notebook but the question …

Software Development c++
Member Avatar for miYn2o0
0
261
Member Avatar for fatalblade

hi everyone, I've had a problem with my operating system project (it's just simple cmd line xD ) it's easy but i couldn't find it ;) how i can list folders and files in drive A? my assembler is -nasm and i'm using 16 bit real mode .(kernel) -cryptacker

Software Development assembly operating-system
Member Avatar for fatalblade
0
95
Member Avatar for jephthah

i don't recommend atoi() or atol(). this does not handle invalid strings (non-integer strings) very well at all. for instance, if you try [code]value = atoi("CowAndChicken");[/code]the result will be zero (value = 0) and if you try [code]value = atoi("0");[/code]the result will also be zero (value = 0) strtol() avoids …

Software Development c
Member Avatar for Dave Sinkula
0
157
Member Avatar for demian007cur

Hi to all, I am a beginner at programming and is trying to learn myself on the way. I was trying the print a data report i created from my DataEnvironment. My only problem is that i have i image in on my datareport. whatever i do it will not …

Software Development image visual-basic
Member Avatar for abhaypathak
0
880
Member Avatar for craigallansmith

Hi Ladies and Gents. I have written an application that reads data from a MS Access database. What I am trying to achieve is that on my data report connected to only 1 data environment, I would like the user to select what fields they want displayed whether it be …

Software Development visual-basic
Member Avatar for billmaster
0
828
Member Avatar for designsecrets

Thanks for all useful tips in your useful forum, I am wondering if I can get help to make some changes on this C++ code for finding the least cost path for dijksta algorithm in specific case. I would like to change the output to 2 lists, as follow 1-show …

Software Development algorithm c++
Member Avatar for Nick Evan
0
159
Member Avatar for firebugg

Hi, I am getting an [COLOR="Red"]Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - cannot find symbol[/COLOR] error message when I try to run this merge/sort program. I can't figure out how to fix the program to get rid of the error. Please help. [CODE] import java.util.Random; public class ArrayUtil …

Software Development algorithm java open-source
Member Avatar for firebugg
0
2K
Member Avatar for gulfx01

Write a program that produces a table converting distance in feet to distances in meters, for values of feet from 10 to 200, in steps of 10 feet. There are 39.37 inches in 1 meter, three feet in 1 yard, and 12 inches in 1 foot. You must use a …

Software Development c++
Member Avatar for abhimanipal
0
144
Member Avatar for rpowell16

Hey, im new to C++, and im trying to create a class IntList. I am getting errors at compile time with one line, but i have no clue why! Could someone please help, so i know what needs changing or why the errors are occuring. The errors occuring are:- error …

Software Development c++
Member Avatar for Banfa
0
92
Member Avatar for manoj_rashmi

hello every one i am new member of this community. Any one see my problem please reply. problem :- How to use object as Function argument. please reply.....

Software Development c++
Member Avatar for abhimanipal
0
96
Member Avatar for 1manik

Hi, I want to ask you, how I can set up a path of monitored object in this source code: [url]http://msdn.microsoft.com/en-us/library/st80atsf.aspx[/url] I want to do it in Visual C++. Thank you

Software Development vb.net
Member Avatar for 1manik
0
117
Member Avatar for barabass

Hello everybody, I'm new to Python wx and I'm trying to make an application which requires the use of database content. I've already made the input data frame. I need to make a frame where to list the database content. I need to create a label for each row like …

Software Development python
Member Avatar for barabass
0
385
Member Avatar for stewartmatheson

Hello I am new to C++ and I am trying to understand the subject observer pattern. Here is what I have been working on based on an example form the design patters book. [CODE] #include <vector> #include <iostream> class Subject; class Observer { public: virtual void notify(Subject* s) = 0; …

Software Development c++
Member Avatar for Banfa
0
175
Member Avatar for kobalt

Hi, I'm having trouble implementing a FileSystemWatcher.Changed event. I have been searching for solutions over the past week and am of the opinion (correct me if I'm wrong!) that what I want to do may not be entirely possible. I have setup a FileSystemWatcher to monitor 1 file. This file …

Software Development
Member Avatar for kvprajapati
0
213
Member Avatar for Privoxy

So doing my first year of software engineering at Uni and am having a little trouble with the old Java, Basically I need to use the Calendar class to call todays date, and then store it in a variable, Iv stumbled upon this bit of code but don’t really understand …

Software Development engineering java
Member Avatar for ~s.o.s~
0
110
Member Avatar for solomon_13000

[CODE]public class Testing { static void calculate(Integer... i) {} public static void main(String[] args) { calculate(12); } }[/CODE] What does the ... in the calculate method argument indicates?

Software Development java
Member Avatar for AndreiDMS
0
77
Member Avatar for danielagaba

hi i wanted to inquire about two things. First, is it possible to connect two phones that both possess wireless cards to each other without there necessarily an access point, if so how could i, in theory, use it to design a messaging application in J2ME. thanks

Software Development java
Member Avatar for peter_budo
0
94
Member Avatar for Samuelandjw
Member Avatar for Samuelandjw
0
55
Member Avatar for BrandonB

I have created a function to determine the lowest out of 5 scores, I'm not too sure as to whether or not it can be simplified... the function is as follows: [code=C++] void findLowest (int & minScoreP, int score1P, int score2P, int score3P, int score4P, int score5P) { minScoreP = …

Software Development c++
Member Avatar for BrandonB
0
124
Member Avatar for Dan08

Each time I create a new GUI, the bit that I always hate, is the bit where the buttons and entries look like I am working on a Windows 98 machine, isn't there a way to make my buttons and entries look like Qt would look like? They're well squary …

Software Development gui python qt tkinter
Member Avatar for snippsat
0
124
Member Avatar for gkaykck

[CODE] #include <stdio.h> #include <stdlib.h> int det(int); int minor(int); int main() { int mat[10][10],dim,a,b; printf("Please enter an integer for matrix dimensions(1-10):"); scanf("%d",&dim); for (a=0;a<=dim-1;a++) { for (b=0;b<=dim-1;b++) { mat[a][b]=rand()%10+1; printf(" %d",mat[a][b]); } printf("\n\n"); } printf("Determinant for the matrix is: %d",det(mat)); return 0; } int det(int mat[10][10]) { int a,b,temp,length; length=0; …

Software Development c
Member Avatar for gkaykck
0
145
Member Avatar for Kruptein

I have a code in which the user should pass something through raw_input, this works fine for strings less then one line, but when I copy-paste a longer string, only the first line is passed by raw_input, how can I also past the rest of the string?

Software Development python
Member Avatar for Kruptein
0
2K
Member Avatar for theideaofevil

I am trying to write a method that will remove all characters that aren't letters or integers from a string that is input by the user. As of now what happens is that as soon as a character designated for removal is encountered, it just chops off all of the …

Software Development assembly
Member Avatar for theideaofevil
0
3K
Member Avatar for boogahubba

Hello,I just started learning grep at school and I can't figure out why my syntax is incorrect.I have to solve the following problem using grep: Find all the computer science students in the first three years of study, belonging to odd numbered groups. The usernames of the computer science students …

Software Development
Member Avatar for gerard4143
0
112
Member Avatar for coderGh

My code is giving me problems can't add items to may stack Array Here is the code i have written public class MyStringArrayStack implements InterfaceStringCollection { public String[] stackArray = new String[0]; public int top; public int newSize; public boolean setMaxSize(int newSize) { if(newSize <= 0){ return false;} else{ top …

Software Development java
Member Avatar for coderGh
0
79
Member Avatar for Kruptein

I'm using the rsa module (easy_install rsa), and if I use it from command line: [code=python]import rsa public,private = rsa.gen_pubpriv_keys(3) cipher=rsa.encrypt("test",public) rsa.decrypt("cipher",private)[/code] this will return test again. (like expected) but in my code it gives a zlib error -3 incorrect headers [code=python]def RSA(txt): global crypt if crypt=="en": key=raw_input("Public key:") ciphertext=rsa.encrypt(txt,eval(key)) …

Software Development encryption python
Member Avatar for Kruptein
0
112
Member Avatar for iamai

Hello guys i want get one value of my enum and then converted into hex but i got a warning Warning 1 Runtime errors might occur when converting 'String' to 'System.IFormatProvider' for example [CODE] Public enum myenum myvalue =0 end enum sub mysub() console.writeline( myenum.myvalue.tostring("X2")) end sub [/CODE] How can …

Software Development vb.net
Member Avatar for kvprajapati
0
162
Member Avatar for rue64ja

Hello, I'm trying to write a method that resets a string to a default value (previously defined in a class) if the value inputted is not a valid. Because I know the format or structure of a valid input, I should easily be able to do this. The string is …

Software Development java
Member Avatar for javaAddict
0
75
Member Avatar for musikluver4

The code below is the file for the constructor method and the get methods [code] //Date: 3/18/2010 public class Taxpayer { private int socSec; private double yearlyGross; public Taxpayer(int taxPayer, double income) { socSec = taxPayer; yearlyGross = income; } public int getSocSec() { return socSec; } public double getYearlyGross() …

Software Development java oop programming-construct
Member Avatar for javaAddict
0
178
Member Avatar for David22

Hi all. I am up to the final stage of my system, and it requires use of the observer/observable pattern, something I haven't a clue about! Basically, I now have a functioning "WatchList" system with which to store specific objects (Locations). Now, these objects have a number of fields relating …

Software Development gui java
Member Avatar for JamesCherrill
0
134
Member Avatar for bikeha

Hello members, I am a new member here, i would like to draw a parabol graphs: y=x^2 in C++. But i don't know how to write it, anyone can help me?Thank you so much.

Software Development c++
Member Avatar for bikeha
0
287
Member Avatar for TimCereja

How is it that a string, or specifically a part of a string, can be isolated and put into its own integer variable? For example, a user is asked to input a date, such as 12/31/2000, which is saved as a string. How can the "12" the "31" and the …

Software Development c
Member Avatar for TimCereja
0
362
Member Avatar for NeedHelpWithC++

Hi, New to this forum, but been browsing a few threads and seems like the best place to seek help. I have an assignment to complete. What I need to do is read in values from a .txt file and place these values into a matrix. I have the values …

Software Development c++
Member Avatar for creative_m
0
200
Member Avatar for lotrsimp12345

When i run main it prints out gibberish not sure why. main.cpp [CODE] #include <iostream> #include <string> #include "phrase.h" #include "EA.h" #include <cstdlib> #include <time.h> int main() { phrase a; EA b; std::string phrase; int populationsize; std::cout<<"enter a population size\n"; std::cin>>populationsize; std::cin.ignore(); b.setpopulationsize(populationsize); std::cout<<"enter a string\n"; getline(std::cin,phrase); a.setphraselength(phrase); b.setlength(phrase); std::cout<<"the …

Software Development c++
Member Avatar for lotrsimp12345
0
85
Member Avatar for saphireina

pls help me with this problem......its for my exam for finals...pls help me.... here are the instructions: Create a Class of the ff: (focus on payroll) 1. EmployeePay (parent) define: attribute: salary(net), gross, rate, no of hours worked, tax=20% constructor: (2) method: setters/getters, reset()-set number of hours work to 0 …

Software Development java
Member Avatar for saphireina
0
137
Member Avatar for mewa_ashika

i am making a high score table for my whack a mole game. variable Score on frmGame is [CODE]Public score as integer[/CODE] then in frmHighScore table i have [CODE]Dim numbers As Integer numbers = frmGame.score[/CODE] however variable Numbers comes back as a empty variable for some reason. Help? thanks

Software Development visual-basic
Member Avatar for peter_budo
0
518
Member Avatar for Mahen

I've created a software and i want to sell it, how may I proceed

Software Development c
Member Avatar for peter_budo
0
281
Member Avatar for bdrkb

Hi How can i show data in datagrid from sql server database

Software Development visual-basic
Member Avatar for WaltP
0
49
Member Avatar for Ron2794

hi all frnds m not able to use javac command in my command prompt the command prompt is saying that javac is not recognised as valid but i have installed java plz help how to solve the problem

Software Development java
Member Avatar for musthafa.aj
0
89
Member Avatar for pearle

Another recursive problem. I'm trying to write a function that reverses an int value recursively. I think I've got the algorithm right, but I can't get the base case right. So my program ends up printing 5 infinitely... Here's the code: [CODE]#include <iostream> #include <cmath> using namespace std; void reverseDisplay(int …

Software Development algorithm c++
Member Avatar for WaltP
0
158

The End.