132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ananDE

Hi everyone, I am a student,quite new to C++. I am working on my thesis right now. Here is my situation, I have an algorithm for my thesis topic and I tried making an example of this in C++ and it works fine with a console application. But I am …

Software Development algorithm c++
Member Avatar for ananDE
0
229
Member Avatar for Amy_3

I am new to python. How to instantiate object from parsing a file? I got a error. File "/home/Bunny.py", line 23, in main mapgrid[i].append(Spot(myLine[j] == 'B')) TypeError: 'module' object is not callable The first line of input is the number of simulations. The next line isthe number of minutes for …

Software Development os-x python
Member Avatar for Xantipius
0
280
Member Avatar for ppc493

I make datagridview export to excel, but Headcolumn don't show in excel files. **Sample** result (in Excel) 1 | mani | 213/435 | 0-892-342234-09 2 | ware | 1/67 | 053-36-49 **But i need resuult (in Excel)** ID | Name | Address | Tel. >>> Headcolumn 1 | mani | …

Software Development dataset
Member Avatar for AnnieCalvert
0
189
Member Avatar for schutzk21

So I need to write a program where the user tries to guess a magic number. The only thing that I do not know how to do is set the max. amount of guesses to 5. This is what I have so far. Can someone please show me how to …

Software Development c++
Member Avatar for np complete
0
417
Member Avatar for bdl365

So i'm having troubles writing the codes for the following exercise - Write a C++ program that does the following. 1. Asks the user to enter some positive integers. 2. Reads the positive integers from the user. 3. Stops reading the positive integers once a non-positive integer is entered. 4. …

Software Development c++
Member Avatar for bdl365
0
2K
Member Avatar for zvjezdan.veselinovic

Hi everyone! I wanted to ask you guys a question. I was referred to this website by a friend of mine and I synced this account with my Facebook. I am new to computer programming, but I understand the beginning basics of C++ (i.e. cin, cout, void, float, vector, functions, …

Software Development c++
Member Avatar for zvjezdan.veselinovic
0
215
Member Avatar for Peppercat101

So Ive googled this error but I cant find an explanation of why this is happening in my code.. Error: g++ -o code code.cpp code.cpp:8:17: error: too many decimal points in number code.cpp:8:43: error: too many decimal points in number code.cpp:1:1: error: expected unqualified-id before '<' token make: *** [code] …

Software Development c++
Member Avatar for MandrewP
0
2K
Member Avatar for lulu79

Hi, i'm a newbie and get stuck with this problem for a few days. I have datatable with two column, line and duration. I want to sum the duration based on the line group. For example: LINE DURATION A1 00:05:20 A1 00:07:00 A1 00:02:10 A1 00:01:50 A2 00:02:01 A2 00:03:45 …

Software Development dataset open-source oracle vb.net
Member Avatar for lulu79
0
9K
Member Avatar for minnie.taylor.524

The problem I am having is in Juno Eclipse. "school.nextString" is being underlined in red to highlight a critical error. The basic purpose of this program is to ask the user a series of simple questions with if loops to determine the output given. Eclipse is handy and gives me …

Software Development java
Member Avatar for Taywin
0
200
Member Avatar for dmose13

So I'm just getting started in C++ and need some help. I want to right a program that inputs a number as n and then outputs digits 0-9 based on n. Also each row adds one more number until the last number is the number of digits of n. For …

Software Development c++
Member Avatar for dmose13
0
140
Member Avatar for anisha.silva

Hi how do i create a final variable string and send in one parameter to it public static string POISON_PILL = new string("AAA"); when i do this it gives me an error highlighting the 'new string("AAA"); ' error msg: initalizes a new instance of the system.string class to the value …

Software Development c#
Member Avatar for Michael27
0
985
Member Avatar for kinge504

I asked my professor for help and we came to the conclusion to add void credit and void debit yet im still having compiling error. //Account.h #ifndef ACCOUNT_H #define ACCOUNT_H class Account { public: Account( double ); // constructor initializes balance /* Write a function prototype for virtual function credit …

Software Development c++
Member Avatar for NathanOliver
0
605
Member Avatar for Bumpehh

this is a very simple RPS game and i ran into a prob. heres the code #include <iostream> // for cout/cin #include <cstdlib> // for rand/srand #include <ctime> // for time #include <cctype> // for case conversion using namespace std; char rps; char ai; char redo = 'Y'; // all …

Software Development c++
Member Avatar for WaltP
0
122
Member Avatar for littleEuler

def main(): celsius = float(input("What is the Celsius temperature? ") fahrenheit = (9/5) * celsius + 32 print ("The temperature is ", fahrenheit, " degrees Fahrenheit.") main() error output: Syntax Error:(line 8) fahrenheit = (9/5) * celsius + 32 This makes perfect sense to me. How can i fix this …

Software Development python
Member Avatar for hughesadam_87
0
110
Member Avatar for on93

Write a simple program to prompt the user to key in x and n value to calculate the result for the following formula: Result = 1+2!/((x-2))-3!/((x-3))+4!/((x-4) )- … n!/((x-n)) ------------------------------------------------------------------------------------------------------------- Note: x value must be greater than n value. i need help for C++ programming class work thanks a lot

Software Development c++
Member Avatar for np complete
0
166
Member Avatar for mandroid

Hello all, first time poster here. I've tried searching for a thread which deals with my current problem both here and in Google, but few people seem to need help with PyFluidSynth as compared to Jack, so I am starting a new thread. If anyone knows of another thread where …

Software Development audio python ubuntu
0
127
Member Avatar for amitie.boo

i wanted to program that is like an musical composition !!!i mean like a musical composer with buttons where each button when pressed gives a different tumes or sounds !! can anyone do me a project on this !! plzz

Software Development java
Member Avatar for neogills
0
86
Member Avatar for sk8ergirl

I'm creating this in java 4 buttons and output area When the user click button 1 it will show in the output the following 564(0, 0) // 564 is id number and 0 is location in the x axis and 0 is in the y axis 564(2, 6) //using v.move …

Software Development java
Member Avatar for NormR1
0
356
Member Avatar for laguardian

Hey guys, I'm trying to make this program that allows a person to set the size of an array to any value they choose. Then, the program will ask the user to input n values to be stored in the array at the corresponding index. Then the program modifies each …

Software Development java
Member Avatar for NormR1
0
1K
Member Avatar for Labdabeta

Hello, I was wondering how to make the windows explorer popups that many programs use. I want the one that browses files to either open or save a file rather than requiring the user to blindly type the filename.

Software Development c++ microsoft
Member Avatar for Ancient Dragon
0
257
Member Avatar for king03

guys can anyone help me, I want to display an amount on a textbox when I debug my program. For example I have textbox1, I want textbox1 to display the amount that I assigned to it which is 100, but I cannot make it show up in the textbox1 when …

Software Development
Member Avatar for Momerath
0
80
Member Avatar for chuyauchi

My Android preference (menu) is not opening a new activity. When I click the 'menu' button on the emulator, I can see my 'Setting' option. However, when I click the 'Setting', the setting page is not showing. There is no error and warning. Thank you for your time. I am …

Software Development android android-development java
0
66
Member Avatar for infogirl

Hello, i have encountered with a problem in one of methods comparing string from database to the string named pword that i initialized from textbox. Can anyone know the easiest for begginer to fix it? I would be very very greatful. SqlConnection myConnection = new SqlConnection(); myConnection.ConnectionString = "Data Source=.\\SQLEXPRESS;AttachDbFilename=D:\\Studijos\\c#\\KursinisDarbas\\BazineAplikacija\\BazineAplikacija\\DuomenuBaze.mdf;Integrated …

Software Development dataset open-source
Member Avatar for PatSharbaugh
0
259
Member Avatar for bustersox

I am having some difficulties getting this code to work properly. I cannot figure out how to correctly return all of my methods because I have the println listed inside the methods. So when I run my program, I get the println's , plus the return value. But I don't …

Software Development java
Member Avatar for JamesCherrill
0
478
Member Avatar for RozenKristal

So I have a question about using methods. Alright, let say I want to create a system of atm and bank. I create a class account that has all related attributes such as acc # and balance and blah. Then I create an ATM class that contain methods such as …

Software Development java
Member Avatar for RozenKristal
0
155
Member Avatar for Michael27

How to print portion of the List<int>, it contains 30 elements but i only want to print first 7 elements? List remains unchanged but is should only prints first 7 elements of the list

Software Development c#
Member Avatar for Michael27
0
109
Member Avatar for Kunal Lakhani

I collected the data off the form and placed it in a bean class, DataBean. JRBeanCollectionDataSource constructor takes Collection as parameter, so i should convert the bean data into some kind of collection, like list, and then pass it into JRBeanCollectionDataSource and pass its instance to JasperManager.fillReport method. In iReport …

Software Development java pdf
Member Avatar for Kunal Lakhani
0
225
Member Avatar for Techboy52

//Hey I need some help //Write a JAVA application that displays a traffic light (three circles inside a rectangle with //red, yellow, and green color) and three buttons with red, yellow and green titles. The //application should turn the appropriate light on when the appropriate button is clicked. Two //lights …

Software Development java java-swing
Member Avatar for JamesCherrill
0
2K
Member Avatar for london-G

Hello, I have my JFrame and I want to ve a sliding menu on the side that will not be visible until someone click on a button. I have divided my JFrame into two containers but don't know how to proceed. Something a bit similar to this: http://www.andrewsellick.com/examples/sliding-side-bar/#

Software Development java
Member Avatar for Majestics
0
200
Member Avatar for DelilahDemented

I'm learning as I go here, but I'm stuck at the moment. I am trying to dynamically create a datagridview and populate it from a database using SQL. I have created my columns, but I don't know how to assign the data coming out of my sql query to its …

Software Development open-source sql vb.net
Member Avatar for DelilahDemented
0
1K
Member Avatar for HibaPro

what is the run time error 424 , object is Required and how i can solve it ...

Software Development visual-basic
Member Avatar for AndreRet
0
423
Member Avatar for BlueDevil

Hello! I made a program in Dev c++ in windows that does several string functions.It works perfect in windows but when I tried to use it in Linux(ubuntu and CentOs), linux make the executable file which means it has no syntact error or something but when I try the several …

Software Development c ubuntu
Member Avatar for deceptikon
0
212
Member Avatar for orar

#include<iostream> using namespace std; float input() { float inches; float feet; cin>>inches; cin>>feet; }; float calculate(float inches, float feet) { float cm; float meters; cm=2.54*inches; meters=feet*.3048; }; float output(float meters,float cm) { cout<<"The feet to meters="<<meters<<endl; cout<<"The inches to cm="<<cm<<endl; }; void main() { float input(); float calulate(); float output(); …

Software Development c++
Member Avatar for np complete
0
208
Member Avatar for ail swati

I want copy my file to another machine in network using c#.net. can any one please help me with it thanks Swati ail

Software Development
Member Avatar for ail swati
0
149
Member Avatar for M.S.

this is my first attempt to implement OOP. IS this class ok?(in terms of structure) AND another Question: there are some folders in message application in Symbian phones and sometimes there are up to 1000 messages in each folders. I do itterate over all messages for gathering their info about …

Software Development oop python
Member Avatar for M.S.
0
175
Member Avatar for Vasthor

[Pictures](http://s10.postimage.org/v28zknfu1/Untitled5.png) I googled and found the solution [Solution](http://stackoverflow.com/questions/4702732/the-program-cant-start-because-libgcc-s-dw2-1-dll-is-missing) but I'm nub sooo, what is compiler flag? how to set it up? there multiple choice, so where should I start? Or should I just switch to IDE(Code::Blocks), the C++ Primer recommend me to use command-line interface compiler and compile it 'manually'. …

Software Development c++ ide
Member Avatar for deceptikon
0
194
Member Avatar for stlcards007

I need help with the if else statement below. I am trying to use branching to determine and drawString to find the longest lines between the points. Everything I try with the branching method seems to give me errors so I have no idea what to do and it is …

Software Development java java-swing
Member Avatar for JamesCherrill
0
160
Member Avatar for rahul.ch

Given: Sour extends Blue extends Pan `Pan p4 = new Sour();` Then set of 6 new statements given and asked to choose which ones will compile. They are: 1. `Pan p5 = p4;` 2. `Pan p6 = (Blue)p4;` 3. `Blue b2 = (Blue)b4;` 4. `Blue b3 = (Sour)p4;` 5. `Sour …

Software Development java
Member Avatar for JamesCherrill
0
200
Member Avatar for sss93

I have a class orders which has its instanced stored in a QMap/Map and has a Key:int, value:order pattern. Everything went fine until I started iterating through the map and accessing the functions of the class.First I was trying to print out the order objects values using it's getter methods …

Software Development c++ qt
0
125
Member Avatar for complete

How do I do a get/post for an array in c#? In C#, you get and set variables like this: `public int ID { get; set; }` How would one get and set an array in C#? This will not work: `public uint [5] BIG_Hash {get; set;}`

Software Development c# first-post
Member Avatar for ddanbe
0
544
Member Avatar for king03

hi guys just wanted to ask how I can add numbers in string form, I tried to add them but instead of getting 9 I get 36. here's how I tried it: Compute comp = new Compute(); comp.Bet = betTextbox.Text; comp.Funds = fundsTextbox.Text; betTextbox.Text = "6"; fundsTextbox.Text = "3"; Convert.ToInt32(betTextbox.Text); …

Software Development
Member Avatar for laurachaitow
0
127
Member Avatar for linabeb

hi... i would like to ask im using vs 2010...and i would like to create a vb.net with it... i have google everything n everywhere about this one particular thing... i create my project as below open vs 2010 > new project > i choose windows form application(as shown on …

Software Development vb.net
Member Avatar for linabeb
0
121
Member Avatar for kipslem

Please help, I have a small application which has a MS Access as backend, and the front end is developed using VB.Net 2008. When I click on the listview item and then click delete button to delete a particula list and its content on the database, it is giving me …

Software Development listview vb.net
Member Avatar for klooonhie
0
2K
Member Avatar for Koji01

i want to know how to read all the message inside the file including their spacing,indents if possible using File Handling... can that be done? content of data1.txt: First Name: (TAB)John Doe Last name:(TAB) Manly Height:(TAB) 5'7 Weight:(TAB)164 kls Address:(TAB)Somewhere but here, (TAB)but not to far City. here is my …

Software Development c++ file-system
Member Avatar for Koji01
0
236
Member Avatar for ome2012
Member Avatar for brylle
0
112
Member Avatar for ShEeRMiLiTaNt

Hello, I need to write a program that takes a string and reverses it via pointers. I have a function called Reverse and what it does is take to pointers (*front and rear*) and intializes them to the front and back of the char array respectively. Then what it does …

Software Development c++
Member Avatar for ShEeRMiLiTaNt
0
201
Member Avatar for horserider

how do i get the full path of running process in task manager.

Software Development vb.net
Member Avatar for demafioso
0
522
Member Avatar for Nabiha Raza

Here is my complete code. I have really tried everything but couldn't understand where i am going wrong. There is NO ERROR in compilation but the output does take in the elements and output is not being generated. My compiler is Borland 5.2 #include <iostream> #include <conio> class ListStack { …

Software Development c++
Member Avatar for rubberman
0
241
Member Avatar for arjuna_wahid

Hello there, I am new to C++. I have a task from school to make simple sorting program using Insertion Sort with a linked list. I would like to have comment, feedback, and correction of my code below. #include <iostream> using namespace std; struct Sort{ int value; Sort *next; // …

Software Development c++ linked-list
Member Avatar for rubberman
0
1K
Member Avatar for chris.vargas.773

I would like to know if this is a correct way to call and define a function for my program #include <iostream> #include <cmath> using namespace std; int math(double a, double b, double c); int main( ) { int math; char a,b,c; math = a + b + c; return …

Software Development c++
Member Avatar for rubberman
0
161

The End.