132,726 Archived Topics
Remove Filter ![]() | |
i = 1; while ( i < 10) { j = i * i - 1; k = 2 * j - 1; } I would like to know what's wrong with this code? Is "i" here the loop variable? I'm also not sure what's the function of "j" and … Software Development | |
i wanna learn how to add and delete records in a car stock inventory without having to delete the contents of the file and save it back. but i don't know how to. This is my code: #include <stdio.h> #include <string.h> #include <stdlib.h> #include <ctype.h> #include <windows.h> #include <time.h> int … Software Development c | |
hey I am trying to make a program on visual basic 6 to determine weather a word or phrase is a palindrome or not. I need my program to be able to tell if the word or phrase is a palindrome and it not being case sensitive. The code below … Software Development visual-basic | |
Hey guys, I think I have this mostly figured out but i'm still getting some errors, I'm not sure if it's a syntax thing or if I called out a variable wrong. For some reason eclipse is saying that my variable [B]average[/B] "may not have locally been declared" which doesn't … Software Development java | |
hi there! basicly i want to make a program that will detect when windows email recives a new message. so... thats basicly it. thanks Software Development email visual-basic | |
Hi need some help with this half attempt at a deal or no deal game I would appreciate your help very much the problem is in the comments. [CODE] #include <iostream> #include <vector> using namespace std; const int n_suitcase = 26; struct Suitcase{ int money_val; }; //hold the list of … Software Development c++ | |
I am trying to do this [code] #!/bin/bash for i in 1 2 3 4 5; do File1="$i.txt" File2="$i.obj" ./Test $File1 $File2 #save i and the result of the program somehow done; [/code] For example, at the end I would like to have a file like this [code] 1 3.4 … Software Development c++ shell-scripting | |
I'm currently wrapping up an assignment for class and i've been able to figure out most of the curveballs the professor threw at me but i've hit this one and it just seems strange. It seems he's declared... a pointer that is also a function? [code] struct data_node { char … Software Development c | |
I've been working with SQL2008 AdventureWorks; specifically database AdventureWorks, table Person.Contact. I experimented with using a DataGrid control's DataSource property to add a new project data source to the DataGrid, although my code was written to access the database without using a DataGrid. My code was unable to do so … Software Development | |
[code=cplusplus] class Base { //private methods void printMyType() { cout << "this is base type" << endl; } //public methods void printAllInfo() { cout << "this An accout" << endl; printMyType(); } }; //end base class class derived : public Base { //private method void printMyType() { cout << "this … | |
The [B]problem [/B]I have is how to do a switch where I have to call the certain choices. [CODE]int main(void) { do { cout << "Hello there ." << endl; cout << "Select from the menu." << endl; cout << "A gets lyrics." << endl; cout << "B gets artist." … Software Development c++ | |
[B]hey yall[/B] I've been working on this python program for a while and I need some help please. This program consists of classes and functions to make a basic maze. I'm not using Tkinter or any gui's. Just a printout where python does all the calculating. I have three files, … | |
please help me i want to make a program that implement functions and arrays using pointers.The user provides an array of integer data, while the system calculates the average ,standard deviation,and median of the array. i am unable to convert the input data string into separate parts and save into … Software Development c++ | |
As a java beginnners what i incline to do for my program almost get solution from this site. Right now i need a small help to get file name or full path for output files of my program. so far my program is running as a search engine to find … Software Development java | |
Hi! I'm new to the forum and to xslt. My problem is that I have to transform a cloud-like data hierarchy xml into a tree-like data hierarchy xml. Let me give you some example: input xml: [CODE] <DATA> <OBJECT id="1" class="CAR"> <ATTRIBUTE name="name" value="CITROEN CX" /> <ATTRIBUTE name="content" value="photo_link" /> … Software Development xml | |
I am trying to get this finished, but it seems everything I do to fix it, I get even more errors. Please help me figure this out, I am having a lot of problems with this particular program. Below is my program and build errors, can someone let me know … Software Development java open-source | |
Write a program which uses a for statement to simulate 120000 rolls of two dice. 'Keep track' of the number of times each possible outcome (a total in the range 2 to 12) is rolled using 11 integer variables. After all the rolls output a table showing the number of … Software Development java | |
Sorry for the noobish question, but I'm trying to write a function that accepts strings as inputs. Here's what I've got: def backwards(x): word = "x" index = 1 while index < len(word)+1: letter = word[-index] print letter index = index + 1 Whenever I call the function, such as … Software Development python | |
Hey, I want to check if a program is frozen by using send message.. what message should i send it? and will this work? like could i send it something random like 0xFFFC? Software Development c++ | |
Hello everyone, Can someone please explain to me the meaning of the code below: [code] public class Client extends javax.swing.JFrame implements Runnable { // constructutor public Client( String host, int port ) { . . . new Thread( this ).start(); } public void run() { something.... } } [/code] This … Software Development java java-swing | |
Everybody hi. I need to swap elements of my std::vector container. For example, i have vector with values from 1 to 5; and i need to swap 2 with 3 (only nearby elements), that in result i'll have 1,3,2,4,5. In real world i don't have std::vector filled with numbers - … Software Development c++ | |
My problem definition is ,I have to send a message from one node in a network and it has to be broadcasted to all other nodes in the network.The program what I have given below will be running in all the nodes in the network.The same program should be capable … Software Development c client-server peer-to-peer socket-programming | |
Hi guys, I was wondering if someone could help me?! I am doing a uni project where we have to access and query a MA database. At the moment I have the database accessed and query is working but I'm having some problems displaying the records - I can scroll … Software Development vb.net | |
hey can any one help me?? i have 2 develop a code to find the "lowest and unique" number from a array..i thot of sorting them and then comparing the lowest number with othe numbers but i m feelin it wont work...pls help me out... Software Development java | |
Hi all! I'm learning Assembly by my own with FASM, but i'm having trouble running and compiling some codes... like this, for example: [CODE] CODE SEGMENT ASSUME CS:CODE, DS:CODE START: MOV AX, CODE MOV DS, AX CODE ENDS END START [/CODE] i get an error about the "CODE SEGMENT" one. … Software Development assembly | |
Hi, I have written a c++ program which takes a word and prints a list of all possible words that can be formed from it. I want to create a .exe file which can serve this purpose for me. By that I mean, I don't want to always compile and … Software Development c++ | |
Hello, i am trying to write an application that will be able to search the local computer for images. Then copy the images path to a textbox and display the picture in a picturebox. Please i need your ideas and help thanks.. Software Development vb.net | |
Hello: I would like to get a good grasp on single linked list. I am looking for easy to read, detailed article on linked list and how we can add, delete, print, insert nodes and such. Hopefully someone has a good suggestion. Thanks. Software Development c++ linked-list | |
here is my code: [code]#include <iostream.h> #include <conio.h> int main() { clrscr(); int A[10][10],m,n,x,y,sum=0; // Ndertojme nje Matrice A cout << "Ju lutemi vendosni numrin e rreshtave dhe te shtyllave per matricen A : \n"; cin>>n>>m; cout << "Vendosni elementet e matrices A duke perdorur hapesine pas cdo elementi dhe … Software Development c++ | |
Hi, I have a namespace in my header file and a variable declared in it. When I am trying to assign it to a value in my .cpp file in the format namespaceName::variableName = value , it is throwing a linker error saying it is already defined in .obj file. … ![]() | |
I'm trying to make a program to allow me to enter information(mainly books) in to a sort of library. I read that <list> is an easy way to add things and sort them. Also by use a hierarchy I can use my base class and just add on to each … Software Development c++ ![]() | |
Hello everyone, I got a question on synchronization, hope someone will be able to give me a clear explanation. [code] public void sendToAll( String message ) { ..... synchronized( outputStreams ) { ... ""statement block"" } } [/code] outputStreams is an object here. I made some research and I found … Software Development java | |
Hi, i want to run a c code , with perl as script.. i want to compile and run the c code , in a.pl file How to do it ... Any links Software Development perl | |
I am trying to load in a list of words into my program using a dynamic array and the string class....for some reason, all the tutorials are using char which i have no idea how to adapt to my code.... [code] string *strWord; int Position = 0; string strHolding; //for … | |
I am writing a ping app for my networking class. I have the ping part of the code working perfectly, my issue is in shutting down my "ping" server. If I run it with while True, not even ctrl-C will shut it down till the next ping request. I can … Software Development python | |
Hi guys, I'm trying to write data from an excel spreadsheet to an Access database. When i run my program a message appears saying that the correct number of records have been saved, however when i check my access database no records have been written to the database table. Any … Software Development vb.net | |
Hello everyone! :) I would like to read a xml file in order to return the content as a HTML response. I wonder if i need to parse the XML file or i can read the file as if it were an txt file. I am interested in this second … | |
can some help me with my film databse code which is below, i need to know how can i allow a single film to be displayed by index and how can i allow a film to be removed by index anyone have any ideas [ICODE][/ICODE] #A list of entries 2 … Software Development python | |
hey im finding this question quite hard to do can anyone help out. Implement an iterative Python function to generate numbers in the Fibonacci sequence: fib(0) = 1 fib(1) = 1 fib(n) = fib(n − 1) + fib(n − 2) Software Development python | |
write the javascript code to hide a particular label in c# .net..can any one tel me? Software Development java javascript | |
Im stuck on my loop program, I have to create a loop program for arrays which only stops if a user inputs quit or the user has input 1000 entries, the program then has to sort the arrays in order of composer. I've tried so many different kinds of algorithms … Software Development java java-swing | |
I am trying to write a program that calculates the value of pi from the infinite series of pi = 4 - 4/3 + 4/5 - 4/7 + 4/9...etc. As you can tell, the numerator stays at 4, while the denominator goes up incrementally in odd numbers, if the program … Software Development java | |
I've never done anything involving GUI before, but wanted to try it. I figured I'd start with something small at first like a simple calculation program before I try to do it with something more complicated. Where should I start and what kind of programs might be needed to do … | |
[B]This is not a question just small challenge[/B] if you interest in improving provided solution and feedback for me. I just went back to some assignment I did at university and one of these been design phone book for mobile device with use of Java Microedition (JME). At the time … | |
Hi there, I'm trying to understand how XPath works, I haven't been using it for that long :) I want to be able to select all the siblings of a specified node. For example; [CODE]<folder> <page id="1" /> <page id="2" /> <page id="3" /> <folder id="4"> <page id="5" /> <page … Software Development xml | |
Hi guys, got another question. I have a dialog with a series of dropdowns, textboxes and checkboxes for entering and saving data into an access database. There is a load data button on that dialog which loads a second dialog box. This one has a datagridview which is linked to … Software Development | |
Hi I have a algorithm I am trying to create but I cant seem to make it work? This is what i have to do: [QUOTE]Describe an algorithm that takes integer n and digit d as the parameters, and computes the number of occurrences of d in the decimal expansion … | |
Hello Friends, Can you tell me the most popular commercial use of XML? I am aware that it is used to store and tranfer data between applications and systems. But, now, I'm looking for a term comprising of two words which is most popularly used in commercial application of XML. … Software Development xml | |
Good Morning all, I need some help with loading a file into a sybase IQ table with the "LOAD INTO" statement. I have never used it before and I cant seem to get myhead around how I am supposed to implement it in my java app. I have a stateless … Software Development java |
The End.