132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Ineedhelpplz

Hello, I have been given an assignment in which I am to write an assembly language version of the following binary search function & use a suitable main program written in C to test my function. The function in C in which I had to translate to assembly is: [CODE]int …

Software Development algorithm assembly c
Member Avatar for csurfer
0
188
Member Avatar for CPPRULZ

Hello I have been trying to understand virtual functions for a while and when I made a program to demonstrate the use of virtual functions it didn't and someone gave me this piece of code that would demonstrate the proper way to utilize a virtual function: [code=c++] #include"derived.h" #include<iostream> using …

Software Development c++
Member Avatar for CPPRULZ
0
128
Member Avatar for llemes4011

I wrote a level-editor for a game that I wrote, and I need to save the image on the screen to a file so i don't draw a bunch of tiles to the screen each frame. I have no idea how to save it. I could just screenshot it and …

Software Development java
0
76
Member Avatar for guest7

Hi, I am getting the following error when I am trying to initialize a 2 dimensional vector with 0's. I am not to figure out the reason. Any help is appreciated. [ICODE] std::vector<int> truth_table; std::vector<vector<int> > truth_table_col; double no_of_twos = 7; double base_two = 2; cout << "No of 2's …

Software Development c++
Member Avatar for guest7
0
102
Member Avatar for iTsweetie

Hi again! I'm having problems with an assignment once again. It's asking us to write a program that takes in a phone number as a string in the form of (555)555-555. We're then to use the strtok_s function to split the phone number into the area code, prefix, and then …

Software Development c++
Member Avatar for Ancient Dragon
0
137
Member Avatar for oscarresonable

hi guyZz... Do you have any idea about the Pole Display...??? I have a project what's you called Point Of Sales System..... Then, I have a device/hardware that I want to connect it on my project... It is cash drawer, pole display and a card swipe...... any Idea how to …

Software Development visual-basic
Member Avatar for jonc
0
93
Member Avatar for Argo54325

Hello, I'm working on a school project, and I'm so lost i can't even figure out how to start it. What I'm trying to start off with is just a simple console application that gets these settings: program.exe [switch] [path] [filespec]. how can i accomplish this? This is what i …

Software Development c c# c++ regex
Member Avatar for Argo54325
0
161
Member Avatar for orangejuice2005

Am working on a big project and am at a particular point within it that requires me to do a couple of things with an array: Array size [1048] 1)How would I break up an array into 10 sections and further divide those sections into 100 spaces u know like: …

Software Development java queue
Member Avatar for orangejuice2005
0
117
Member Avatar for smithu.simi

Hello, i need to use fork() for the below problem Problem statement is program would accept various 2d arrays as inputs as long as the user wishes to enter.. Every individual sum of the array is calculated and sum of each array becomes the element of a resultant array and …

Software Development c
Member Avatar for Duoas
0
313
Member Avatar for besktrap

Hi everyone. I'm having a little trouble trying to understand what argument passing really is. I know that it 'passes' arguments, but what does that actually mean and how can you use it to my advantage? ex: [CODE] def New(spam,n=1): [/CODE] so what does that actually do?

Software Development python
Member Avatar for besktrap
0
120
Member Avatar for doha786

i have code to find next string after a particular string that shows result correctly.. right now i want to make an array to show the list of my output's name. [CODE] FileReader fr; BufferedReader br; String result=""; String word= new String(); String target = "friend"; try{ //read large text …

Software Development java
0
75
Member Avatar for shahji

I am trying to create a macro which could copy information from a datasheet and past it into sheets which are named as one of the Cells in column A. I have a datasheet which contains five columns full of data. Column A contains the Client references. There are 200 …

Software Development visual-basic
Member Avatar for Tu22
0
101
Member Avatar for Hilariousity

Hi there! I keep getting an error stating error: expected unqualified-id before 'bool' when I try to compile this file [code=C++] #include "Data.h" #include <iostream> Data::Data() { } Data::Data(char aLetter, int anOrder) { letter=aLetter; order=anOrder; } Data::~Data() { } ostream& operator<< (ostream& out,const Data& someData) { out << "(" << …

Software Development c++
Member Avatar for Hilariousity
0
2K
Member Avatar for csurfer

We know #define statements are executed before the program is compiled (preprocessor directives) and so the characters used should have no other meaning (say keywords),but still the following statement is not possible and is erroneous why ? [code=c]#define int float[/code] How many passes would the preprocessor directives run for as …

Software Development c
Member Avatar for csurfer
0
144
Member Avatar for Again

I wrote a function in file example1.c as below: [ICODE] void function(int a) { char buffer1[1]; } [/ICODE] When used "gcc -S -o example1.s example1.c, I got the following assembly code: [ICODE] _function: pushl %ebp movl %esp, %ebp subl $4, %esp leave ret [/ICODE] And if I change buffer1[1] to …

Software Development assembly c
Member Avatar for Duoas
0
108
Member Avatar for mhaviv

I have a very simple program, a console application, that I wrote a long time ago under VS 2005 under XP. It worked perfectly OK. The program gets names and in the end prints them on the screen, until I do not enter a new name but only CR to …

Software Development c++ visual-studio
Member Avatar for SeeTheLite
0
174
Member Avatar for omotoyosi

Dear great programmers please am a new programmer and i want to network my application. please, how do i go about it. what do i do?

Software Development vb.net
Member Avatar for martonx
0
295
Member Avatar for moosoo

hi, where can i get all or most of the libraries for c++ and where do i place them?.....one more thing.....i have visual c++ how can i find out what libraries i already have...i dont see any library folder in the main folder....thanks

Software Development c++
Member Avatar for SeeTheLite
0
71
Member Avatar for Dewey1040

ok this code gets three sides of a triangle and prints out the area... but it just prints out that the area is 0 every time... why? [code=C] #include <stdio.h> #include <math.h> double area(int a, int b, int c); int main(int argc, char *argv[]){ int a, b, c; printf("\nSide A: …

Software Development c
Member Avatar for uskok
0
118
Member Avatar for Z8934

I’ve got a piece of third party software containing classes that I want to modify by subclassing. My problem is that one of the third party classes is not accessed directly but returned by the third party class through a method call. So: [code]factory = ThirdParty.Factory() node = factory.getNode() #node …

Software Development python
Member Avatar for Gribouillis
0
159
Member Avatar for add4

Hello there. i want to know the opened web address from my browser in java. Any one who can help me? Thanks

Software Development java web-browser
Member Avatar for Ezzaral
0
92
Member Avatar for lehe

I perhaps have to resort to multiple thread programming to reduce computational time. I am now studying how to use POSIX library. I can access a cluster with 8 CPUs, each of which has one core. I was wondering how many threads to create would get approximately best time performance …

Software Development c++
Member Avatar for tux4life
0
88
Member Avatar for drjay1627

just out of curiosity (definitely not because i have a deadline tonight lol) how does a plagiarism detecting software work? any ideas? i'm pretty sure the program compares run time... for example if i create an array in main [code] main(){ //create array and add numbers } [/code] then in …

Software Development c++
Member Avatar for tux4life
0
104
Member Avatar for dier02

I want to click on a button and have it open another form. The other form is called Kindy.

Software Development vb.net
Member Avatar for TransKim
0
139
Member Avatar for abu taher

I made simple database project. just add a data and see it. but when I run it another computer it show a massage. massage is below: 'E:\Vb6\New folder\db1.mdb' is not a valid path. Make sure that the path name is spelled correctly and that you are connected the server on …

Software Development visual-basic
Member Avatar for abu taher
0
79
Member Avatar for FallenPaladin

Hi, I'm hopeing someone will be willing to help me with somthing that is probably quite simple. I'm trying to bind a combobox to a data table, however it is supposed to be a foriegn key field, as such I need the items list to be populated from a different …

Software Development
Member Avatar for ddanbe
0
145
Member Avatar for PinoyDev

Good day.! I want to check all the textbox and combo box if its null or not. Once they click on the button, if one txtbox or combo box is null it will give a message that incomplete entry. I have already posted this thread, but i noticed that when …

Software Development visual-basic
Member Avatar for koolsid
0
142
Member Avatar for ssDimensionss

hi all, i got a program that calculates the fibonacci numbers and prints them out, looks something like this: main: li $s0, 0 li $s1, 1 loop: slt $t0, $s1, $s0 bgtz $t0, done addu $s2, $s0, $s1 move $s0, $s1 move $s1, $s2 li $v0, 1 move $a0, $s2 …

Software Development assembly
Member Avatar for MrSpigot
0
104
Member Avatar for javaman2

hey again i hate to be a bother but i still can't get this to work my driver program(the second code) won't call the add method or the minus method to subtract input i tried to do this in my code below and have failed if you have any suggestions …

Software Development java
Member Avatar for darkagn
0
150
Member Avatar for jackiejoe

Having a problem with getting my array into a TextArea, I originally wanted to use a JTable but found the Table Model and what to do too difficult for what I want so my question is I have my array and now I want to display it inside a TextArea, …

Software Development gui java java-swing
Member Avatar for javaAddict
0
2K
Member Avatar for razmca

Hi everyone... Iam new to VB, i want to know whether we have thread option in VB if so how can v implement that(Sample codes are appreciated). Right now iam using sleep but that ll not make it effecient so i need to implement thread concept... Scenerio: Iam working in …

Software Development vb.net
Member Avatar for razmca
0
113
Member Avatar for ssDimensionss

ok i know this is the command for reading an integer but where does it read the integer from? I got a factorial program, heres the beginning of it: [ICODE] .data prompt: .asciiz "you want n! for which value of n?\n" .align 4 n: .space4 i: .word 1 fact: .word …

Software Development assembly
0
84
Member Avatar for swappy

I have a Project for CD Shop management. I have a wierd problem.. When I give a CD on Rent, it updates the CDDetails table as .. it does -1 from the stock..means if the stock was 10 and I rented a CD then it updates that column as 9. …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
84
Member Avatar for razmca

Hi everyone... Iam new to VB, i want to know whether we have thread option in VB if so how can v implement that(Sample codes are appreciated). Right now iam using sleep but that ll not make it effecient so i need to implement thread concept... Scenerio: Iam working in …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
90
Member Avatar for spacepilot5000

i have a list of data from database, when i click on an item from this list the value from list should go to the database through SQL criteria, but it doesn't happen, it throws "Data Type mismatch in criteria expression error" (error is hightighted with red in code part). …

Software Development open-source visual-basic
Member Avatar for vb5prgrmr
0
129
Member Avatar for JeyC

Are there python commands to achieve the following : 1. Create new text files 2. Write certain text to these file (similar to DOS Echo> command ???)

Software Development python
Member Avatar for Arrorn
0
135
Member Avatar for sharat87

Hello everyone! just dumped bytes forums and joined daniweb... hope its a good decision :P anyway, could you guys take a second to look at the following code... [code=python] import subprocess as sp cmd = "awk '{print $0}'" ex = sp.Popen(cmd.split(' '), stdin = sp.PIPE, stdout = sp.PIPE, stderr = …

Software Development python
Member Avatar for sharat87
0
4K
Member Avatar for harrykokil

how do I trigger a function after x seconds in pygame?? i have seen the "pygame.time.set_timer(event,ms), but i want to trigger a function instead of an event. hoping for a quick reply thanks...

Software Development python
Member Avatar for Arrorn
0
60
Member Avatar for razmca

Hi everyone... Iam creating a setup file using VB6, in that i have to execute 2 exe file using shell command, in the mean time i need to add a progressbar to state the progress of that 2 exe's... How can i do that? Get me out of this problem... …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
90
Member Avatar for Cyken

Hey guys, i am very new to C++ but i know some little things about it. I am trying to make a simple dos program with simple arithmetic but i forgot how to do some things since it has been ages since i last coded. I am trying to make …

Software Development c++
Member Avatar for Cyken
0
113
Member Avatar for Bhoot

i have come across a question which asks to write an awk command that displays all records having 2nd and 3rd characters same. i could write the solution in sed, using tagged regular expression, as follows : [QUOTE] sed -n '/^.\(.\)\1.*$/' emp.list [/QUOTE] However, as far as i know, tagged …

Software Development shell-scripting
Member Avatar for ghostdog74
0
298
Member Avatar for doha786

i m very new in java. now facing prob to get char/string after a particular string from txt file. suppose i have few text files in one folder and every txt files contain some line like my first friend jocky, second friend vicky and so on.....:$ my program should open …

Software Development java
Member Avatar for Ezzaral
0
198
Member Avatar for tomtetlaw

i am making a list template for a tutorial, heres the code: [code=c++] template<typename t> class list { int sz; t elem; public: list() : sz(0), elem(new t[0]){ } list(int i) : sz(i), elem(new t[i]){ } list(int* i, double val) : sz(i), elem(new t[i]) { for(int i=0;i>sz;i++) elem[i] = val; …

Software Development c++ visual-studio
Member Avatar for Intrade
0
108
Member Avatar for Carrots

Hi! I was hoping for some advice on how best to create a single doubly-linked list which could contain all of the different types of classes I have. This is the code I have written so far.... [B]shape.h:[/B] [code=C++] class Shape { public: Shape (int l=0, int h=0) : length(l), …

Software Development c c# c++ linked-list
Member Avatar for Intrade
0
126
Member Avatar for devfolarin

i need help on some code im having trouble with its an x and o ai i havent finished the strategy function. im running a linux os and i need help with a segmentation fault also some help to make the code better would be appreciated //dtai-II //concept by temi …

Software Development c++ os-x
Member Avatar for SeeTheLite
0
85
Member Avatar for Foxcow

Whenever I open Python I get Socket error: No connection could be made because the target machine actively refused it. Also I get IDLE's subprocess or personal firewall software is blocking the connection. I was wondering how to fix this?

Software Development gui python
Member Avatar for lllllIllIlllI
0
92
Member Avatar for shimama

Trying to read a file from the user that contains numbers which i use to calculate avgs, range, number of #'s and so on. I can't get it to work tho. Any critiques and help would be much appreciated. Thanks much double grade; //variable for entered grades double sum = …

Software Development file-system java
Member Avatar for BestJewSinceJC
0
141
Member Avatar for prashant1111

i want to take input from keyboard and check which key is pressed if possible send the code. thank u.

Software Development java
Member Avatar for BestJewSinceJC
0
76
Member Avatar for longmatt

Hi guys, I am going mad. I am trying to code an algorithm in C++ and already at a very early stage there appears an error that I just don't understand... These are the error messages sent by the VC++ compiler: [code] \surface_watershed_matlab\surf_watershed.cpp(138) : error C2653: 'CMesh' : is not …

Software Development algorithm c++
Member Avatar for longmatt
0
114
Member Avatar for lilkid

[ATTACH]9597[/ATTACH] ok i want to read this file into a dictionary and this is the output d={"flight":T34712, From:ABERDEEN, scheduled 0800, remark landed} etc flight is the key do i have to parse the text file i know i cant put it straight into the dictionary as i get this output …

Software Development file-system python
Member Avatar for lilkid
0
164

The End.