199,124 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ligas84

image of my listview: [url]http://img26.imageshack.us/img26/4043/listview.png[/url] I want to total every row from my listview tallies total infected people and percentage ____________________________________________________________________ CityID | City | Population | Male | Female | Total | Percentage | Population, male, and female columns are user inputs total column is male+female textbox value per …

Member Avatar for crishjeny
0
665
Member Avatar for manish250

hello all i m new to shell scripting.i have seen th code substitution like a=`ls -l` and a=23 R=$(a/23/bb) first time we use ` ` and second time we use $ . can anyone tell me Why so?

Member Avatar for rch1231
0
145
Member Avatar for hirenpatel53

hello all i have allready created table and wan to add Composite primary key into that so for that i am using following statement [CODE] ALTER TABLE pqrimasterdetail ADD primary key (PQRIMasterID,Type,Year,PhysiciansID);[/CODE] but in not executed successful it gives the query could not be Executed. Multiple Primary key Defined if …

Member Avatar for hirenpatel53
0
88
Member Avatar for blackrandom

Okay so I have been debugging for hours and I don't understand any of this...I'm kinda mad about not knowing and when I research it all I find how it works but not really how to implement it. I know the general theory of a binary search tree but I'm …

Member Avatar for blackrandom
0
152
Member Avatar for kousamir

Hello, i'm new to this forum and this's my 1st time posting a code. my issue is that i have a code that should read from a file called ( ex: word or text), but it does not read the file it jUst gives me the error (could not open …

Member Avatar for kapilsolanki84
0
255
Member Avatar for knellgust

[CODE]#include <iostream> #include<string> using namespace std; class Book { private: string title; double price; public: Book(); void setTitle(string s); void setPrice(double p); string getTitle() const {return title;} double getPrice() const {return price;} bool hasKeyword(string key); }; Book::Book() { title="None"; price=0; } void Book :: setTitle(string s) { title=s; } void …

Member Avatar for knellgust
0
102
Member Avatar for allen2663

Hi, I have am building an uninstall program and can't get the process to stop so that the files can be deleted. I am using code that I copied from a sample and it works fine with any process as long as there is no space in the name. works …

Member Avatar for allen2663
0
301
Member Avatar for laks_samy

I am working vb.net application vs 2005,I am using culture ("ja-JP") japan in my application but i need to display date in this format("dd-MMM-yyyy") how to change it? Thanks

Member Avatar for Luc001
0
232
Member Avatar for krusnik08

[B]label10 displays which is the highest number label12 displays which is the lowest number label14 displays which is the number that is duplicated pls help my codes don't run 100% correct.:'([/B] [CODE] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Label6.Text = Val(TextBox1.Text) Label7.Text = Val(TextBox2.Text) …

Member Avatar for GeekByChoiCe
0
178
Member Avatar for duminda1986

hi, i am final year student and i need to start on my project in 3 weeks time. Wel i love programing with java and i need to learn more on the depth area's.So doing a project using java will help me a lot. So what i am asking u …

Member Avatar for didar singh
0
532
Member Avatar for Dean_Grobler

Hi there, I am getting a 'Cannot find symbol error' on an array in my "ViewContact" Class. The array has been created in the "MainScreen" class. Below I have pasted the code for both classes as to provide you with as much information as possible: The MainScreen Class: [CODE] package …

Member Avatar for Dean_Grobler
0
711
Member Avatar for krusnik08

[B]When the textboxes are 49 below or 100 above the message should be "Invalid Grade Input". When the textboxes are blank the message should be " No Grade Input". When the textboxes are 49 below or 100 above and there are some textboxes that are blank it should be " …

Member Avatar for krusnik08
0
111
Member Avatar for shenbagam

Friends, I'm very new to php . How to make slide show in web page by using php. Now only i came to know to storing and retrieval of images.. to make slide show what we have to use my friend asked me to use photoshop which is best.... anybody …

Member Avatar for shenbagam
0
70
Member Avatar for NutanGadakh

I'm creating search for my website.How should i give links of respective pages to the results that i m getting. Pls Help.

Member Avatar for NutanGadakh
0
142
Member Avatar for westony

Hi there guys, how the hell i am able to create a UNIX window, I mean i am pissed off from that console, and how can I use GTK ? Thanks in advance!

Member Avatar for westony
0
103
Member Avatar for nickx522

i need help writing display of average function. i find the average in first function "int Main()". it needs to be rounded to 2 decimal points. int display_avg( //dont know what parameters should be)

Member Avatar for Akill10
0
96
Member Avatar for aquabat

Hi everyone! Im trying to fill up a tree with the entries from a text file and I can read the file and I know how to make a tree object. I just dont know how to combine these two to populate the tree. Any ideas are appreciated!

Member Avatar for aquabat
0
5K
Member Avatar for Netcode

Am using asp.net/vb. How do i make a navigation button to link another page using vb.net ans CSS.

Member Avatar for catherine sea
0
96
Member Avatar for dinners

[CODE] bool isSame=false; do { bool isSame=false; for (int i=1; i<=corners; i++) { cout << "Please enter the cordinates for corner " << i << ':'; cin >> x[(i-1)] >> y[(i-1)]; } int k; for (k=0;k<(corners-1);k++) { int j; for(j=(k+1);j<corners;j++) { if ((x[k]==x[j])&&(y[k]==y[j])) { isSame=true; } } } if (isSame==true) …

Member Avatar for dinners
0
302
Member Avatar for knnccb

i just got an exercise i am asked to do and i have no idea what to do. I am asked to use recursive to print a pattern without using loop: * ** *** **** **** *** ** * And also : **** *** ** * ** *** **** Any …

Member Avatar for knnccb
0
117
Member Avatar for tecktalk

I am a student and I wana learn PHP.. via Internet.. can anyone tell me please how to do it..Where i can buy the buks and where i can start my online stdies... please help me out.. as i m in search of a Good PHP training..:)

Member Avatar for terabyte
0
131
Member Avatar for djhog

#include <iostream> #include <fstream> #include <string> #include <iomanip> using namespace std; int main () { int Count= 0, oldCount, lineNo= 0, pos; string searchStr, testStr, testSearch, fileName, intStr; cout << "File name? "; getline(cin,fileName); ifstream fin(fileName.c_str());; if (!fin) { perror(fileName.c_str()); exit(1); } cout<<"Search string? "; getline (cin, searchStr); testSearch = …

Member Avatar for jonsca
0
171
Member Avatar for ScreamingPsycho

Hello, first time here.This program reads in a file of different names and uses void options to put them in various order. On line 111, 116, 121, 126, 131, I am not sure what to put inside the parenthesis. [EX: option1(NotSureWhatToPut)]. I have tried to put 'nextStudent' and get a …

Member Avatar for ScreamingPsycho
0
201
Member Avatar for jmcorpse

[CODE] #include<iostream> #include<cstddef> using namespace std; typedef int* IntArrayPtr; void getSize(int& size1, int& size2);//Function declaration for getSize void createArrays(int& size1, int& size2);//Function declaration for createArrays void fillArrays(int& size1, int& size2);//Function declaration for fillArrays int main() { int size1;//Variable that will be passed from one function to another int size2;//Variable that …

Member Avatar for jonsca
0
212
Member Avatar for O_mini

Hello, My assignment is to create a christmas tree using methods with defined parameters. 1) Print the tree at position 50 (50 spaces in) 2) Call the following Triangle (2,6) (six rows without the first 2 printed) 3) and the 1st row of these cut off triangles with the symbol …

0
50
Member Avatar for shotbylammi

I am currently in a C++ class. We have using Python and my assignment is to do a lab that I have done in python 2.5 in C++, although I have no idea where to begin besides opening Dev C++ or Bloodshed. Could anyone please tell me how I begin …

Member Avatar for Fbody
0
171
Member Avatar for Slyvr

I'm working on a really basic text editor to save and open txt files. On my text area setLineWrap, it's giving me a "misplaced constructs" and "delete token" for the period and (true) For why? [CODE]/**Matthew Schrum *11/18/2010 */ import java.awt.*; import javax.swing.*; import javax.swing.border.*; import java.awt.event.*; import java.io.File; import …

Member Avatar for Slyvr
0
282
Member Avatar for ultimatebuster

I'm curious on how would one accomplish event driven programming from a language like python (or other, but for simplicity sake, python will do.). By that I mean providing a system that allow programmer to hook functions to certain events, and fire those events when triggered. (Basically the APIs behind …

Member Avatar for ultimatebuster
0
156
Member Avatar for Nandomo

I am in need of an explanation on how to pass information from my input file to my program. This is what I'm trying: [CODE]#include <cstdlib> #include <iostream> #include <fstream> #include <string> using namespace std; struct BevInfo { char bevName[11]; float bevPrice; int bevLeft; }; int main(int argc, char *argv[]) …

Member Avatar for Clinton Portis
0
111
Member Avatar for LianaN

Hi! Could someone please explain me the difference between the following three approaches to inserting nodes in JTree? I cannot understand why the insertNodeInto method doesn't work in the recursive procedure (Approach Nr1), but it works if it is executed from JButton (Approach Nr2). So, Recursion itself (Approach Nr1) works …

Member Avatar for LianaN
0
396
Member Avatar for nuevoenjava

hi guys, good eveningn, ive been trying for two days now and i haven had no luck with this, im trying to compare 3 arraylists to filter by town, and age and show all the peoples names specifically from that town, heres my code any help would be appreciated. heres …

Member Avatar for nuevoenjava
0
652
Member Avatar for jmcorpse

How can I go about padding an array of a certain size so that it will align with another one? For example I have an addition problem I am working out and cannot find the solution to. When my program prints it out it will look like this: 1234567 should …

Member Avatar for Clinton Portis
0
2K
Member Avatar for djhog

I'm new at programming and I can't figure this out. Can anyone please help? #include <iostream> #include <fstream> #include <string> using namespace std; bool nocase_compare (char c1, char c2) { return toupper(c1) == toupper(c2); } int main( int argc, char* argv[] ) { ifstream infile; string filename; do { cout …

Member Avatar for djhog
0
181
Member Avatar for BuhRock

How would I go about converting a string to an integer? Say someone enters a 4 digit string. Like 1234. Could I use the place of each digit and work with it? Pretty much, I wanna get 1 from the string "1234" and put it in a variable. Then get …

Member Avatar for coil
0
178
Member Avatar for RetNaRome

Okay so I have an array of Objects.. My goal is to get the output to print every "Song" the user inputs But for some reason only the last song in the array is printing which is confusing me [CODE] import java.util.*; import java.util.Arrays; public class SongRunner1 { public static …

Member Avatar for Slimmy
0
134
Member Avatar for berwick53

Hi i've just started to use constructors and I'm having some problems with the following code with data not saving(saving to the correct place) please Help :( [CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> typedef struct details // struct for all data { char name[50][50]; char card[50][16]; long sort[50], …

Member Avatar for gerard4143
0
111
Member Avatar for Thropian

if been using python's tkinter for awhile to write programs when I caused an issue that I'm not sure what is my code is long even after I gutted it. [CODE]from Tkinter import * import random import operator info_dict = {} info_dict["area"] = 1 info_dict["slime_spot"] = random.randint(1,36) info_dict["slime spotter"] = …

Member Avatar for Thropian
0
112
Member Avatar for Purushottamkr

Write a program to sort 20 decimal numbers in decreasing order and print the result. i have solution but lengthy. [CODE]decimal[] arr = { 12.3m, 45.2m, 5.4m, 23.44m, 43.21m, 31.34m, 4.3m, 21.3m, 34.2m, 32.1m, 44.2m, 6.4m, 64.3m, 3.4m, 5.32m, 32.345m, 4.34m, 23.4m, 45.234m, 5.31m }; for (int i = 0; …

Member Avatar for Diamonddrake
0
1K
Member Avatar for NichtSoGut

Hey, So basically I'm using dynamic memory allocation, and I wanted to add in a check for if the [B]new[/B] operator can't complete the request. I've read up that the operator will return a std::bad_alloc, but I've no idea how that helps me. Could I just do?: [CODE]if (new int[999] …

Member Avatar for StuXYZ
0
482
Member Avatar for raevin

I've been searching Google and here, and haven't found anything that'd work for me. I'm trying to restrict access to my scripts so that they will only be accessible via the main page. On the initial page load, everything loads fine. But, if I click on a link, the define() …

Member Avatar for raevin
0
194
Member Avatar for darkelflemurian

Hi, everyone this is my first post here and let me tell you my problem I have a C# application, i have SQLServer 2005 installed on my computer my database is there and the program works fine the problem I'm facing is that i need to make an installer for …

Member Avatar for Mitja Bonca
0
178
Member Avatar for Othisstuffisfun

I have been working on this project for a while and need help understanding why I get the results I do. First the display of the after compiling the code: Enter the employee's name: Bob Green Enter the employee's number: 112 Enter the date the employee was hired: 01091989 Enter …

Member Avatar for StuXYZ
0
642
Member Avatar for peachslasher

Hi guys, I am trying to write C++ method to return a pointer to the parent of a particular node in binary tree, and for the root that doesn't have a parent should return NULL. Here is my program so far: [CODE]#include <iostream> using namespace std; class Tree { private: …

Member Avatar for che-burator
0
3K
Member Avatar for ciliath

so i am creating this message field with [CODE]self.text = wx.TextCtrl(panel, pos=(150,22),size=(100,20))[/CODE] and it works, no problem but i'd like that the text gets written from the right and not the left which is a pain... anyone have a slight clue on how to do it ? help appreciated :)

Member Avatar for ciliath
0
225
Member Avatar for sajohnson05

I need help trying to get the majors "CSAT" and "ISAS" into the Majors/Concentration column and then have the corresponding course numbers with commas. Any Help XML Code [code]<?xml version="1.0"?> <!-- coursinfo.xml, uses three XSLT stlyesheets to create the desired view of the data ITEC 325 - assignment --> <?xml-stylesheet …

Member Avatar for sajohnson05
0
187
Member Avatar for maverick405

I am very new to C++ need to draw rectangle "JUST THE BORDER" using for loops, the below code draws three sides but i am not able to draw the right side line please help if anyone can. #include <cstdlib> #include <iostream> #include <string> using namespace std; int main(int argc, …

Member Avatar for yasy
0
5K
Member Avatar for jigglypuff13

Hi There, I am a bit of a PHP newb :P I have developed a multi-page form which works fine at the moment - each stage is on another page (I use the session to retain the data). However I know that users don't always use these forms the way …

Member Avatar for somedude3488
0
286
Member Avatar for ljjfb

Hi all professionals, I uesd subprocess module to spawn a new process and then implement the command. The final result is the output via stdout. Here is the code I wrote: [CODE] import subprocess proc = subprocess.Popen('egrep '^HTTP/' *', shell=True, stdout=subprocess.PIPE,) stdout_value = proc.communicate()[0] print 'results:' print stdout_value [/CODE] And …

Member Avatar for richieking
0
191
Member Avatar for bwallace

Our image upload form always returns the error message, "Invalid file. Please click the 'Back' button on your browser and try again." Here are the basics. ==HTML FORM== [CODE=HTML] <form enctype=="multipart/form-data" action="phpscript.php" method="post"> <input type="file" name="uploadedfile[]"> <input type="file" name="uploadedfile[]"> <input type="file" name="uploadedfile[]"> <input type="submit" value="Submit" /> </form> [/CODE] ==PHP SCRIPT== …

Member Avatar for somedude3488
0
158
Member Avatar for Anthony Cameron

Hello, I would like to know if I need to use a regular expression to match the desired substring in order to print out 10 characters of the start codon ATG. My dna sequence is "CATAGAGATA" Thanks for any advice.

Member Avatar for Anthony Cameron
0
342

The End.