199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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 … | |
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? | |
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 … | |
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 … | |
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 << "(" << … | |
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 … | |
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 … | |
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? | |
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 | |
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: … | |
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 … | |
Hello there. i want to know the opened web address from my browser in java. Any one who can help me? Thanks | |
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 … | |
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 … | |
I want to click on a button and have it open another form. The other form is called Kindy. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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, … | |
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 … | |
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 … | |
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. … | |
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 … | |
![]() | 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). … |
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 ???) | |
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 = … | |
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... | |
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... … | |
i have a parse error and i just cant figure out what it is because it seems my code is right but maby im wrong any advise is apreciated aswell heres my code [CODE] <DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="en" lng="en"> <head> <title> Background Colors </title> … | |
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 … | |
Hello - I'm new to PHP, only been learning it for about a month, but I think I am starting to get the hang of it. I am working on a project that involves the Google Maps API which uses markers that are populated by values from a MySQL database. … | |
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 … | |
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 … | |
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; … | |
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), … | |
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 = … | |
i want to take input from keyboard and check which key is pressed if possible send the code. thank u. | |
Hi, I have an oracle sql query that return many rows. The result will be shown in an html table in column format. I have html table that with the static header. I need to generate dynamic rows depending upon the result of the queries. Thanks, Reuben | |
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 … | |
I use rand() to generate random numbers between 0-50. However when I use the code, as I have seen it, rand() doesn´t truly generate random numbers. It seems that everytime I restart the application, it generates the same random numbers everytime. It seems that there is any mathematical sequence the … |
The End.