132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for tintincute

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
Member Avatar for MosaicFuneral
0
133
Member Avatar for Kryptonitejugz

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
Member Avatar for jephthah
0
5K
Member Avatar for sofian786

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
Member Avatar for jonc
0
800
Member Avatar for ckillackey

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
Member Avatar for ckillackey
0
297
Member Avatar for crackerjacker

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
Member Avatar for crackerjacker
0
66
Member Avatar for rom87

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++
Member Avatar for GDICommander
0
91
Member Avatar for daviddoria

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
Member Avatar for nucleon
0
162
Member Avatar for MaestroRage

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
Member Avatar for ArkM
0
96
Member Avatar for BobLewiston

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
Member Avatar for JerryShaw
0
82
Member Avatar for edb500

[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 …

Software Development c c# c++
Member Avatar for edb500
0
285
Member Avatar for ScienceNerd

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++
Member Avatar for daviddoria
0
83
Member Avatar for miller4bears6

[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, …

Software Development gui python tkinter
Member Avatar for jlm699
0
185
Member Avatar for sharensla

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++
Member Avatar for sharensla
0
112
Member Avatar for doha786

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
Member Avatar for doha786
0
116
Member Avatar for fr000nc

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
Member Avatar for fr000nc
0
90
Member Avatar for Mel1976

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
Member Avatar for BestJewSinceJC
0
109
Member Avatar for get2tk

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
Member Avatar for BestJewSinceJC
0
91
Member Avatar for murnshaw

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
Member Avatar for Arrorn
0
1K
Member Avatar for nschessnerd

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++
Member Avatar for Nick Evan
0
450
Member Avatar for neutralfox

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
Member Avatar for JamesCherrill
0
123
Member Avatar for crioto

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++
Member Avatar for crioto
0
93
Member Avatar for metal_butterfly

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 …

Member Avatar for jephthah
0
217
Member Avatar for iain580

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
Member Avatar for iain580
0
89
Member Avatar for dhr

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
Member Avatar for BestJewSinceJC
0
825
Member Avatar for Ronen444

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
Member Avatar for rahul8590
0
152
Member Avatar for vsha041

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++
Member Avatar for tux4life
0
158
Member Avatar for densman

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
Member Avatar for Teme64
0
73
Member Avatar for senaddor

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
Member Avatar for Narue
0
112
Member Avatar for ervin_c2003

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++
Member Avatar for ervin_c2003
0
138
Member Avatar for aramakri011

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. …

Software Development c c# c++
Member Avatar for jencas
0
136
Member Avatar for mmeyer49

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++
Member Avatar for jencas
0
154
Member Avatar for neutralfox

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
Member Avatar for neutralfox
0
102
Member Avatar for kishore5001

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
Member Avatar for ithelp
0
77
Member Avatar for bryansworld

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 …

Software Development c++ ios
Member Avatar for tux4life
0
151
Member Avatar for toadzky

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
Member Avatar for vidaj
0
189
Member Avatar for falcorassassin

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
0
232
Member Avatar for currupipi

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 …

Software Development python xml
Member Avatar for currupipi
0
118
Member Avatar for sivak

i have 2 tables but key is not common ..want to join 2 tables... i want all the coloums in first table and only one coloums in second table..how can i join...i cont use join query without key is common rite ..can anyone tell me plz

Software Development sql
Member Avatar for Upsilon
0
79
Member Avatar for srk619

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
Member Avatar for srk619
0
101
Member Avatar for srk619

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
Member Avatar for srk619
0
146
Member Avatar for sivak

write the javascript code to hide a particular label in c# .net..can any one tel me?

Software Development java javascript
Member Avatar for ddanbe
0
80
Member Avatar for mkadiri

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
Member Avatar for mkadiri
0
123
Member Avatar for gabec94

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
Member Avatar for gabec94
0
1K
Member Avatar for DemonGal711

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 …

Software Development c++ gui
Member Avatar for tux4life
0
161
Member Avatar for peter_budo

[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 …

Software Development algorithm java
Member Avatar for peter_budo
0
335
Member Avatar for superchris

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
Member Avatar for xml_looser
0
173
Member Avatar for Martin310

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
Member Avatar for Martin310
0
90
Member Avatar for gretty

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 …

Software Development algorithm c++
Member Avatar for gretty
0
78
Member Avatar for nikk

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
Member Avatar for nikk
0
97
Member Avatar for Miyuki Suzuki

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
Member Avatar for Miyuki Suzuki
0
114

The End.