132,726 Archived Topics
Remove Filter ![]() | |
hi! im a newbie and i want to learn more on C i have a problem and i have no idea on how to add a 5 digit number example: input is 12345 and the output of 12345 is 15. please help on this one. Software Development c | |
Hi everybody, I really need that code, I have a text file 32 4 12 13 4 12 0 0 0 0 0 3 2 3 4 and I want to convert it vector or array like A[2]={32,4} B[4]={12,13,4,12} C[9]={0,0,0,0,0,3,2,3,4} The size of the vector or array can be changed … Software Development c++ | |
Hello community im new! I am really rusty at C# but i do not want to learn the basics all over again so i hit the ground running and ran into a hurdle. I want to use an xml file for a database. Its a car repair tracking system i … | |
hi I need to this program I didn't understand this program and I couldn't anywhere someone is help me A Salesperson at a company receives a set salary each month plus commission based on the number of products sold during the month Create a Payroll Program that can do the … Software Development java | |
Hi. I have this code but I want it to store the same data and function using objects. However, I would like to also know how to get information from the objects in an ArrayList. Currently the information is stored directly without the using of objects. I also want to … Software Development java | |
Hi guys, can some one help to see what is problem with below code. I am newbie to C#: Thanks ================================================================================= [code] using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Lesson4Inheritance2 { class Student { public static void Main(string[] args) { private int registrationNumber; private string name; private DateTime … Software Development | |
I am trying to create a simple recursive prime number function. I am not sure why this is not working. I originally was using remainder division but changed it to integer division. **** if n ==0: # This runs infinitely, The recursive call does not seem to roll down. Output … Software Development python | |
Hi, here is a simple puzzle to which I have made a program, A C program to take bondectory name as command line argument and print last 3 directories and 3 my_files in all subdirectories without using api 'system' inside it. suppose directory bond0 contains bond1, di2, bond3, bond4, bond5 … | |
Hi, I'm fighting with [B]make[/B] for hours and I rly don't know where is my problem. I need to have a static lib libxml.a and an application (make.c) which uses it. I tried to compile it under GCC 4.4.5 and 4.5.0 and the compilation run fine. But under GCC 4.3.2 … | |
So a child form calls it's Show() method, and i need it to close it but be available for reuse and i need the controls to be in the same state they were before it was closed. I was using the Close() method but when i try to reuse one … Software Development | |
Hi all, I am trying to apply Hamming window on my lengthy sound data soundSample[1000] with window length 100. Then proceed with FFT. And i found that java does have the package for Hamming window and FFT. As below, [url]http://code.compartmental.net/minim/javadoc/ddf/minim/analysis/FFT.html[/url] [url]http://marf.sourceforge.net/api/marf/math/Algorithms.Hamming.html[/url] But i hardly find an example that illustrate how … | |
i cannot find any information on this topic, but im curious as to the point in chaining hardware breakpoints and how it can be done! any information is greatly appreciated! -thx Software Development c++ | |
Hi, I have two forms, Form1 with a datagridview and Form2 that is meant to add a new record to the linked database in access. How can i get the datagrid on Form1 to refresh as soon as this is created? (created once 'Add' button is clicked). Thanks Software Development | |
I am working on this exercise: Write an application that asks its user to type a complete sentence on one line. The application then displays in the console window the words in the sentence, one word per line, less any punctuation. I have the following code: [CODE] import javax.swing.*; import … Software Development java java-swing | |
I'm working on a python code to solve a PDE (Partial Differential Equation) backward in time (i.e. from t = T to t = 0.0). The code is made up of two functions: the first function ([COLOR="Red"]def Solve_for_U_values_at_Time_T()[/COLOR]) solves a PDE (PDE1) forward in time, and returns an array of … Software Development python | |
Allright dudes ,listen up .. i am programming C++ about 2 days now , so i am not into it , in any way , so the problem is that the preproceccor macro #define should trigger the constructor , but the problem is that i got that annoying compiler error … Software Development c++ | |
Hi.. I want to get the memory addresses of an array.i'm having a compilation error with this code. [CODE] #include<stdio.h> #include<stdlib.h> #include<unistd.h> int isu[1000]; void dhanu(void *(isu+996), void *(isu+995)); int main(){ *(isu+998)=isu; *(isu+997)=(isu+10); printf("%d\n",*(isu+998)); printf("%d\n",isu); dhanu((isu+998),(isu+997)); } void dhanu(void *(isu+996), void *(isu+995)){ printf("%d \n",(int *)(isu+996)); printf("%d \n",(int *)(isu+995)); [/CODE] error … Software Development c | |
Hi everyone. I know how to make a calculator, with basics and a little more complex functions, that's not my problem. My problem relies in that, the only way I can make a calculator is by 2 terms at a time, i.e: I can't make this operation (12 + 21 … Software Development vb.net | |
Hi, I've decided to make a hangman game. I made this in Python last year, however I'm a little bit stick in Java, since I'm quite new to as well as Swing. Anyway, the problem I'm having is that my while loop keeps terminating if I enter 1 incorrect letter, … Software Development java java-swing | |
I need to calculate the network bandwidth in LAN. But i don't have any idea about it .Help me how to calculate it. Thanks in advance. Software Development c++ | |
in vb.net to store this query in dataset ..In Sql query I have a Employee Id M 1 M 31 M 41 M 58 M 6 M 60 M 67 S 10 S 118 S 133 S 143 S 151 S 155 S 157 S 158 S 25 S 28 … | |
I have an xhtml document that contains many lines that look like: <div style="position:absolute;top:224;left:108">The line was longer than we expected</div> For my first trick I need to be able to match or select this node and others like it, where like it means that it is a div tag with … | |
I searched on Google for hours and couldn't find anything useful. Thank you for any reply. Software Development pascal | |
We have been working to solve the issue early in the morning. This is a sample code to clearly show the situation. There are also more than 100 tables are waiting to get their records to calculate the results . Any idea ? conn.h #include "stdafx.h" static double global ; … | |
Hello! Iam trying to Check Values Of 2 textboxex .. n then Print A certain Amount.. can Any 1 help me.... Code: [CODE]If C1.Text = "Agra Fort" & C2.Text = "Delhi" Then L8.Text = "800Rs/-" End If [/CODE] Actualyy i have jst Started learning VB.net... Iam trying to Check from … Software Development vb.net | |
Hello i am making my project i am stuck at searching two strings in database for example my table [hotel] contains columns [Date] [Room Size] [Meal] [Car] i want to search for date + room size too. my code checks only [Date] but not [Room Size] and i want that … Software Development | |
Hey, I'm trying to get a random number for a small game which lights up random lights. I can't figure out a way to get the number random. I've tried seeding the Random() function with current time, but it's not working. It always lights up the third light. Here's my … Software Development java javascript | |
I'm not used to getting this deep in c++, but all these pointers are making my brain boil. I'm trying to get a str_replace working [CODE]VOID str_replace(PCHAR Dest, PCHAR Find, PCHAR Replace) { PCHAR New=(char *)malloc(sizeof(CHAR)*MAX_STRING); PCHAR Found = Dest; PCHAR Temp = Dest; strcpy(New,""); while(strstr(Temp,Find)) { Found = strstr(Temp,Find); … Software Development c++ | |
I have decided to create Bulls and Cows game for my project. I have been checking for it's correctness. But it behaves bad in some cases. Like when I have already guessed the word it doesn't respond right. This happened rarely but I can conclude that it still is not … Software Development vb.net | |
In C I have created a program which can archive multiple files into an archive file via the command line. e.g. $echo 'file1/2' > file1/2.txt $./archive file1.txt file2.txt arhivedfile $cat archivedfile file1 file2 how do I create a process so that in my archivedfile I have: header file1 end header … Software Development c c# c++ file-system | |
Hello, [font=courier new][u]Brief Tutorial Revision[/u]: All examples can be compiled successfully in your compiler. Also, each example is compatable using the [b]-Wall[/b], [b]-pedantic[/b], [b]-ansi[/b], and [b]-std=c89[/b] GCC flags. Also, a few paragraphs have been modified, and code examples improved. Previous tutorial, Pointers #2, has been combined in this revision.[/font] [b][u]Introduction[/u][/b] … Software Development c++ | |
Consider the following code : [CODE]class R2<E> { E a; E get() { return a; } void set(E a) { this.a=a; } } class R3 { void doit(R2 a) // (1) { a.set(new Integer(5)); } }[/CODE] When I compile the file containing class R3, it rightly gives an unchecked warning … Software Development java | |
Im pretty new to python and am trying to right a small script.... [CODE]#!/usr/bin/python import csv import string itemlist = [] reader = csv.reader(open("statement.csv", "rb")) for row in reader: item = row[4] itemlist.append(item) itemlist = list(set(itemlist))[/CODE] Every time I run it though I get the error : [CODE]Traceback (most recent … Software Development python | |
Hello everyone and Merry Christmas. The reason I am opening this thread is that I am required to write a polynomial calculator in Common LISP as part of a Course Work. As I am newbie to LISP(s) I am asking you if anyone can help me with it . The … Software Development | |
hi I have been working in this code for a while and I need to know what's wrong with it ASAP. here: [CODE]#include<iostream> using namespace std; class Node { public: int value; Node * next; Node(); Node(int); }; Node::Node():value(0),next(NULL){} Node::Node(int v):value(v),next(NULL){} bool AllPositive(next * h) { bool test = false; … Software Development c++ linked-list | |
Hi, For example my xml looks like this: [code] <root> <Book_information> <bookTitle>Lorem 1</bookTitle> <choices>test1</choices> <choices>test2</choices> <choices>test3</choices> <choices>test4</choices> <choices>test5</choices> <choices>test6</choices> <calendar>2010-12-30</calendar> <calendar>2011-01-12</calendar> <calendar>2011-03-10</calendar> </Book_information> </root> [/code] I need to loop the elements "Choices"... How can i do this? I know how to work with the for each loop, but i don't … Software Development xml | |
[CODE]#include<dirent.h> #include<stdio.h> #include<stdlib.h> #include<sys/stat.h> int main () { struct dirent **namelist; int i,j; char userd[20]; struct stat statBuf; printf("Enter a directory %s\n",userd); scanf("%s",&userd); printf("the dir is %s\n",*userd); i=scandir(".",&namelist,0,alphasort); printf("enter a directory name %s",*userd); printf("scandir returned i=%d\n",&i); if (i<0) perror("Scandir failed to open directory I hope you understand \n"); else { … Software Development c | |
I want to download a series of files say 150 files whose download links are similar but they vary only by a number. That is, the general download link is: [url]http://www.example.com/content/download_content.php?content_id=#[/url] where # is a number b/w 1 and 150. Which of the following works best? Share your suggestions too.. … Software Development shell-scripting | |
hello, can any 1 please help/guide me for creating an program .exe file in C. as i am using Dev c++ compiler.say for E.g( program of addition in this by compiling & running it i get the required output. but if i dont want to run the program again n … Software Development c file-system | |
This Christmas day, I am plagued by this negative nibble mystery. I have some bytes in a byte array that I want to split into nibbles [CODE] x = bytes(n) x = x << 28'cause the left 4 bits to overflow so we remain with only the right 4 bits … Software Development vb.net | |
I need a perl script to read the following message from log file WARNING: Child is hung for request Perl script should have the following conditions It should look log file located in specific location (example /mylog) and read "WARNING: Child is hung for request" (Without quotes) message continuously in … Software Development algorithm file-system perl | |
I am using ADODB for connecting ms-access database from a vc++ application.I want to insert record in access database;but if the record already exists in the access table then update query should run instead of insert query. the above task can easily be done with stored procedure, but since ms-access … Software Development c++ | |
Dear Sir/Madam, We are using NSIS to install an application. and we have a MySql Script file, which is using inside the installer class. This file is working with Mysql but not from the installer. This is giving a ERROR 42000 syntax error. Any help will be appreciated Arun G.K | |
Hai , How can i make beep sound in java,with out sound card, is it possible? how can i implement this, please help me. Software Development java ![]() | |
Hi, I am newbie to c++. I would like to en quire on how to calculate the number of same alphabet in a string that we enter? For example if let say i have entered ABAAGAYHAUIJA and it should return 6. Here's my code. [CODE]#include <iostream> #include<conio.h> using namespace std; … Software Development c++ | |
hi i am currenlty studying C sharp Visual studio, trying to convert a case study of polymorphism in payroll (which is avaiable in different books as console application) into windows application.. everything is going well, except here where i got switch statement and giving error in case 2- case 4 … Software Development visual-studio | |
Hi im having trouble linking my database. I dont understand what ive done wrong and keep getting the following message: Syntax error in FROM clause. at System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr) at................................... My code ive used is: [CODE] using System.Data.OleDb; namespace coursework2 { public partial class Form1 : Form { public OleDbConnection Coursework2; … Software Development c# open-source | |
I cannot copy random numbers without repeating in a map. Unhandled exception at 0x0040115e in file.exe: 0xC0000005: Access violation writing location 0xabababaf. [CODE]int **map; int randomize(int numberToSelect,int range,int counter){ int* remainingNumbers = new int[range]; int* chosenNumbers = new int[numberToSelect]; for(int i = 0; i < range; i++) remainingNumbers[i] = i; … Software Development c++ |
The End.