132,726 Archived Topics
Remove Filter ![]() | |
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 … | |
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++ | |
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 | |
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++ | |
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++ | |
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 | |
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 … | |
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: … | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 … | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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++ | |
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++ | |
I want to click on a button and have it open another form. The other form is called Kindy. Software Development vb.net | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
![]() | 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 |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 … | |
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? | |
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 | |
i want to take input from keyboard and check which key is pressed if possible send the code. thank u. Software Development java | |
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 … | |
[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 |
The End.