132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Alexwoo

Attempting to do an assignment that has five input boxes, and then uses them to calculate how much money a person would make over the course of their working life. The problem is, when i run it, it simply gives me how much the person would make after 1 year, …

Software Development vb.net
Member Avatar for juster21
0
67
Member Avatar for #www#

i want a code to store a decimal number as a string i'm working on a progeam to convert a binarry number which entered as a string from user to decimal number stored as string. i have done the converting from binary number to decimal integer but i couldn't store …

Software Development c++
Member Avatar for #www#
0
160
Member Avatar for JimD C++ Newb

Good morning, all! I have a Java project that is complete, but it's not due for another week. I've been poking around trying to "spruce it up" a little with maybe a pull-down menu for one of the options. The examples I've found online all deal with web development. Will …

Software Development ide java java-netbeans
Member Avatar for JimD C++ Newb
0
145
Member Avatar for Ismailworking

Hi . i am using C++ editor to write my C code. when i press Ctrl+F9 , the output screen comes and goes without stopping for a while. Please note that i have included "#include<stdio.h>" and i am using "getchar()" function do stop the screen.

Software Development c
Member Avatar for ankur_
0
10K
Member Avatar for alvalany

Please someone help me regarding the differencec b/w Structures and Unions.I know the differnce in the memory management but what is itz advantage .Also why are unions specifically used in mouse programming and similar stuff..

Software Development c
Member Avatar for ankur_
0
139
Member Avatar for mms6

[CODE]def get_even_palindrome_at(user_input, index): user_input = user_input.lower() user_input = remove_non_words(user_input) start_index, end_index = index, index while start_index >= 0 and end_index < len(user_input): if user_input[start_index] == user_input[end_index]: start_index -= 1 end_index += 1 else: break result = "" count_index = start_index while count_index < end_index: result += user_input[count_index] count_index = count_index …

Software Development python
Member Avatar for Kolz
0
73
Member Avatar for topcat712

Hey there, I've never actually used a forum to ask for help on any sort of project before, but I'm a little stuck.. okay, a lot. =D It's probably something really stupid and minuscule, though. Anyway, heres the project.. I hope it's not too confusing: Write a program that asks …

Software Development python
Member Avatar for snippsat
0
1K
Member Avatar for samehsenosi

[B]hi every body i have a trouble with viewing the report from using the following environments[/B] C# - Crystalreport - Oracle database i regularly use the basic way to call a view form the database and extract the data form it like that [CODE]cmd.commandtext= "Create view as select * from …

Software Development dataset oracle
Member Avatar for DdoubleD
0
145
Member Avatar for Mitja Bonca

How to call a comboBox1_SelectedIndexChanged(object sender, EventArgs e) method from this code: [CODE]private void treeView1_AfterSelect(object sender, System.Windows.Forms.TreeViewEventArgs e) { // Get subdirectories from disk, add to treeView1 control AddDirectories(e.Node); // if node is collapsed, expand it. This allows single click to open folders. treeView1.SelectedNode.Expand(); // Get files from disk, add …

Software Development
Member Avatar for DdoubleD
0
90
Member Avatar for Gribouillis

Printing a convenient [url=http://en.wikipedia.org/wiki/ANSI_escape_sequence]ansi escape sequence[/url] clears the terminal (if you're running python from a terminal). Similar techniques could be used to print in colors.

Software Development python
Member Avatar for Gribouillis
0
278
Member Avatar for lotrsimp12345

I have a dynamic array and i am trying to create a iterator class to support the list. I am adding begin and end. As well as a new class. error C2146: syntax error : missing ';' before identifier 'begin' Error 7 error C2146: syntax error : missing ';' before …

Software Development c++
Member Avatar for lotrsimp12345
0
103
Member Avatar for Ineedhelpplz

So I have written a reverse polish notation calculator: [CODE] #include <ctype.h> #include <stdio.h> #include <stdlib.h> #define NUMBER '0' #define MAXOP 100 int main () { int type; int op1, op2; char s[MAXOP]; while ((type = getop(s)) != EOF) switch (type) { case NUMBER: push(atoi(s)); break; case '^': push ((unsigned …

Software Development c
Member Avatar for Ineedhelpplz
0
207
Member Avatar for thehivetyrant

Evening there. [B]I need to return an (x,y) tuple of an object, This x,y will be used to help 1 object calculate where the other object is and move towards it.[/B] My problem is that both the objects need to know the others' x,y. (i'm unsure how to get the …

Software Development python
Member Avatar for thehivetyrant
0
863
Member Avatar for vnproduktionz

im taking a class in python but i just cant keep up with the curriculum. Some things confuse me so i was wondering if anyone have any websites or anything that can help me get through python or at least help me understand it easier. the book im using right …

Software Development python
Member Avatar for vegaseat
0
130
Member Avatar for xxDivineVinny

How would i use the find function in splay tree for the following code? I want to be able to see if that node is in the tree, and if it is not, then i would want to be able to return false. here's the link to the splay tree …

Software Development c++ queue storage
Member Avatar for Tom Gunn
0
234
Member Avatar for Ravenous Wolf

Hi Can anyone please tell me whether I can write a java program and start it in a way other that involves the command line? And not applets either. I want to start writting all of our company software in java, leaving behind c#. But the problem is I can …

Software Development java
Member Avatar for shruti123
0
243
Member Avatar for edwar

i've writtn a c++ code, and i like to count the output,i mean 1 --- 2 3 like that, the code is good just the counter, everytime when i run the program i got this kind of error ISO C++ forbids comparison between pointer and integer i really don't know …

Software Development c++
Member Avatar for edwar
0
359
Member Avatar for NICEGUY123

What I am trying to do is redirect all my cout to a file, rather than a console. I am using a gcc complier to run my program. It works well when I do ./a.out > output.txt. But i was wondering is there a way i can do the same …

Software Development c++
Member Avatar for ryuslash
0
73
Member Avatar for fhast

hi, i want to ask.. is it can to get an input from the user by only call the class object? here's the code : #include <iostream> class Time{ private: int time; int minute; int sec; ... }; void main(){ Time t; cin >> t; cout << "The time is …

Software Development c++
Member Avatar for fhast
0
7K
Member Avatar for crystality

Hi! I can compile the following code, but when I try to run it with the line [B]a.out File1.txt[/B], my programming partner get a seg fault, and I get this error: [INDENT]a.out: relocation error: a.out: symbol __cxa_allocate_exception, version XXABI_1.3 not defined in file libstdc++.so.6 with link time reference[/INDENT] I found …

Software Development c++ queue
Member Avatar for dkalita
0
356
Member Avatar for AdRock

I am reading a line of text from a file and need to split it into tokens. [QUOTE]This is a test and test number is: test(001)[/QUOTE] I need the tokens to be [QUOTE]This is a test and test number is : test ( 001 )[/QUOTE] How do i split a …

Software Development c++
Member Avatar for Clinton Portis
0
370
Member Avatar for ivankenny

Call List3.AddItem(txtname & vbTab & txtamount & vbTab & txtqan & _vbTab & Format$(ans, "Currency")) need help need to align the text the keep displaying like this: toy car 1 $3.00 $3.00 card board box1 $0.50 $0.50 remote control car 1 $3.00 $3.00 cart 1 1 $1.00 $1.00 this is …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
324
Member Avatar for Ashishinani1756

How can a make a directory in by writing c++ code and transfer files made by me in c++ to that directory

Software Development c++
Member Avatar for dkalita
0
99
Member Avatar for hello214

hi to everybody. I'm just wonderin' if someone can help me with arrays. I am making a program of computing an average grade. I manage to execute the first requirements. The problem i have is how can i compute the grades that had been entered using a seperate method here …

Software Development java
Member Avatar for hello214
0
118
Member Avatar for sumit21amig

How can i maintain operator's precedence order while overloading "+" and "*" in a class? e.g. I want same result on the calculation of following objects: d=a+b*c; d=c*a+b; Please help! Also tell me why simple constructor is able to call static data in a class?

Software Development
Member Avatar for Geekitygeek
0
137
Member Avatar for zzbottom

i have to make program for a hotel (just a scenario) but i'm having problems. First i have to ask them to choose a room type i.e A/B/C/D which decides how much their room costs per night (a=$22, b=$55 etc). Then i have to ask how many nights they wish …

Software Development
Member Avatar for Geekitygeek
0
98
Member Avatar for Vineeth K

Hello friends i made a small program like a scanner it will scan an image file to a Rich Text Box. My friend helped me in providing the code to access the pixels of an image.Hope you will like the code. Try it .... This need : Reference files : …

Software Development image visual-basic
Member Avatar for Riju Thomas
0
332
Member Avatar for Mitja Bonca

I have this code: [CODE]string[] dirs = Directory.GetFiles(@"c:\myFolder\", "*.doc"); [/CODE] How do I do the same code, if I change "*.doc" with the comboBox. I have done the code that a user selects a filter from the comboBox. I did: [CODE]string[] dirs = Directory.GetFiles(@"c:\myFolder\", comboBox1.SelectedItem.ToString());[/CODE] but it is not working... …

Software Development
Member Avatar for Mitja Bonca
0
122
Member Avatar for samira1993

Create an application that will predict the approximate size of a population organisms. The user should select or enter the starting number of organisms in a combo box, enter the average daily population increase (as a percentage) in a text box and select or enter the number of days the …

Software Development visual-basic
Member Avatar for ithelp
0
401
Member Avatar for vnproduktionz

kind of a basic question but i cant seem to figure it out. well i have a list and i split it up using the split function but now im confusing how i can use one string and divide it to another. i tried turning it into a int or …

Software Development python
Member Avatar for vnproduktionz
0
167
Member Avatar for vnproduktionz

[CODE]reply=float(raw_input("Enter your choice: ")) if reply!=1 or reply!=2: print "Not a Valid Choice" [/CODE] i cant use while loops other wise i prob wouldve done so. Basically im trying to get the user input to only allow the numbers 1 or 2. anything else should give a not a valid …

Software Development python
Member Avatar for vnproduktionz
0
140
Member Avatar for amroto

Plz guys i have a problem in my c++ simple calculator, I made everything great but i just need an important hint for my assignment that i can't figure it out. for example when i add two numbers(2+4) the result is (6)... i need the number (6) to be stored …

Software Development c c# c++
Member Avatar for gbantsi_2
0
130
Member Avatar for LostnC

I need to convert seconds to Minutes, hours and seconds. I must use pass by reference in variables. I know I need to use the modulus to deal with the remainders when I'm converting to Hours, minutes and seconds. I am really having a difficult time with the code.

Software Development c
Member Avatar for yellowSnow
0
1K
Member Avatar for pyprog

Hey, everyone. I know how to strip certain characters from a string using for loop. Can you give an example of how that can be done with the use of while loop?

Software Development python
Member Avatar for Gribouillis
0
109
Member Avatar for MasterDucky

Im trying to write to the list box "Win_1" with SendMessage() but im doing something wrong. Thanks in advance! [CODE] #include <windows.h> #include <tchar.h> #include <string> #include <iostream> #include <richedit.h> #pragma comment(lib,"user32.lib") #pragma comment(lib,"Gdi32.lib") using namespace std; #define IDB_TEXT2 101 #define IDB_TEXT3 102 #define GetF 103 HWND hwnd, Win_1, Win_2, …

Software Development c++
Member Avatar for MasterDucky
0
207
Member Avatar for jrosh

How can I limit the length of a text field.. I want allow entering specific number of characters in the text field?? Is there a constructor... I couldn't find 1.. plz help...

Software Development java
Member Avatar for BestJewSinceJC
0
120
Member Avatar for MrNoob

hey i got something again i got confused by in PE files and they don't rlly explain why happens oke so what im confused with FileAlignment and SectionAlignment files must be aligned or sections to whatever count is right ? like if the it's less than the number (x) then …

Software Development c
Member Avatar for MrNoob
0
105
Member Avatar for Qmage

The do...while loop works fine when i key in only single character, however if i key in multiple characters, the default statement is executed infinitely. I think the problem lies in cin >> int?, i need some help in modifying the code, thx [CODE] bool rightanswer = true; do { …

Software Development c++
Member Avatar for Qmage
0
89
Member Avatar for Gem74

I am getting 3 error messages: -cannot convert from 'const char [2]' to 'char [10]' 2messages of: 'char secretType::setName(char)' : overloaded member function not found in 'secretType' #include <iostream> #include <cstring> using namespace std; class secretType {private: char name[10]; *error message here int age, weight; double height; public: char setName …

Software Development c++
Member Avatar for dkalita
0
101
Member Avatar for shamila08

[code=cplusplus] #include <iostream> #define MAX 100 int num[MAX]; int n; int nrows = 0; using namespace std; void print() { if (num != 0) { for (int j = 0; j <n; j++) cout << num[j]; cout <<"\n"; } } void leftRotate ( int n) {int tmp; for(int k =1; …

Software Development c++
Member Avatar for mrnutty
0
279
Member Avatar for ravenrider

Hi guys I have been trying to figure out the problem with this program but i couldn't. my program basically crahes everythime I run and I get a seg fault. I tured in as is, but for learning purposes I want to know what's wrong with and how I should …

Software Development c++
Member Avatar for mrnutty
0
111
Member Avatar for infern0

Hi, I'm having trouble writing a program that asks the user 3 questions.(3 possible answers for each) I am using a string to remember all the answers with a getline(cin,answer) statement. My problem is the first two questions have choices for the answers that can be the same such as …

Software Development c++
Member Avatar for mrnutty
0
117
Member Avatar for abu taher

I select a month from a combobox and type the year in maskeditbox then press a button to show the report. 1st the report show. when I select another month to show again the report then show a error msg: [CODE]run-time error 3705 operation is not allowed when the object …

Software Development visual-basic
Member Avatar for abu taher
0
316
Member Avatar for Mitja Bonca

What I want to do is a drop down list (comboBox) that the user can see only selected files. For example, if user selects a Word Documents from a comboBox, on the explorer will be only visible a doc files. I have done a FileFilter class: [CODE]public class FileFilter { …

Software Development pdf
Member Avatar for DdoubleD
0
102
Member Avatar for Gman36

Hi there, I'm attempting to write a program that does the target word puzzles you see in most major newspapers. The target word problem involves a 3x3 grid of 9 random letters that a user needs to be able to make words out of using at least the middle letter …

Software Development gui java puzzle
Member Avatar for Gman36
0
118
Member Avatar for Gman36

Hi guys, Just wondering if someone could help point out why the string value s1 in the for loop cannot be passed on to String input.... here is my code. Please ignore the commented out parts. Cheers for any help [CODE]import java.io.*; import java.util.*; import java.lang.*; public class gaelan3 { …

Software Development java
Member Avatar for Gman36
0
86
Member Avatar for bpt0004

Hi everyone this is my first post, i've been browsing for awhile and finally decided to join. I'm having trouble with an assignment i have in class. I need to calculate the euclidean distance between two 2d vector. The function takes in two 2d vectors of integers. I'm also having …

Software Development c++
Member Avatar for bpt0004
0
2K
Member Avatar for chaybird001

I am doing a homework assignment for c++. I am able to get my program to run, but I don't know how to modify it for my next assignment. Here is the question. Modify the program so that various comments are printed for each correct answer and each incorrect answer …

Software Development c++
Member Avatar for chaybird001
0
206
Member Avatar for power_computer

As seen in my previous post I had a problem with some code dealing with linking a template class, I emailed my professor and the g++ compiler cannot handle the seperate compilation of template classes. So now im stuck with no compiler, in labs we use the CC compiler with …

Software Development c++
Member Avatar for power_computer
0
159
Member Avatar for theclash57

So i have a h/w assignment due tomorrow, and i have tried to work on it, but as usual, python frustrates me. Here is the assignment: [url]http://www.cs.gonzaga.edu/depalma/courses/cpsc121/assignPython/asgn5.pdf[/url] and for part two, here is the link for example26 it says to use: [url]http://www.cs.gonzaga.edu/depalma/courses/cpsc121/examplesPython/example26.py[/url] So i tried working out the first part …

Software Development pdf python
Member Avatar for theclash57
0
94

The End.