132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for thetechguy

I'm reading this one book on c++ and am having difficulty making an executable. I'm a n00b at c++ and Ubuntu so I don't know what I'm doing wrong. I've compiled all my cpp files into object files and now I need to link it but when I try that …

Software Development c++ ubuntu
Member Avatar for thetechguy
0
119
Member Avatar for kavitha1591

a 'c' program to find the factorial series for n values.............

Software Development c
Member Avatar for rimmmeee
0
192
Member Avatar for sneek

Hello, I've read the python doc (C-API) and was wondering about the two reasons to extend python with C. The first reason is to implement new build-in object types and the second one is to call C-Library functions and system calls. Ok, I think i got the second one but …

Software Development api python
Member Avatar for pythopian
0
139
Member Avatar for Sallad

For part of my assignment, we are to write a function that overloads the * operator so that we can multiply 2 list<short int>. We are given the BigInt.h and part of BigInt.cpp (It'd be easier if we didn't have to use this format, I know, but we're supposed to …

Software Development c++
0
123
Member Avatar for sravan953

Hey All, I have some code here, the problem is in line 82-83: [code='python'] import smtplib import wx window=wx.App() class pymailer(wx.Frame): def __init__(self): wx.Frame.__init__(self,None,-1,"Py-mailer",size=(500,700)) try: self.s=smtplib.SMTP("smtp.gmail.com",587) self.s.starttls() except: wx.MessageBox("Error 001: Could not connect to the internet, please try again later.","Internet Connection Error") self.panel=wx.Panel(self,-1) menubar=wx.MenuBar() filem=wx.Menu() filem.Append(201,"Quit") self.Bind(wx.EVT_MENU,self.Quit,id=201) viewm=wx.Menu() viewm.Append(202,"About") self.Bind(wx.EVT_MENU,self.About,id=202) …

Software Development python wordpress
Member Avatar for pythopian
0
619
Member Avatar for shaan07

Hei..i am novice to programming. How to generate beautiful html pages from a text file. My idea is to generate XML first and then generate it to html. Generated html page should contain all the information that the text file contains..like tables,pics,body,headings. I dont have a clue what to do …

Software Development html-css python xml
Member Avatar for pythopian
0
132
Member Avatar for simpatar

I want make a program that calculates the cartesian products of two sets. e.g.: This is how i would like the result to look like: >>> Enter two sets to calculate the cartesian product: set([7,9]), set([1,5]) set([(7,1),(9,1),(7,5),(9,5)]) [CODE]def main(): userinput = input('Enter two sets to calculate the cartesian product: ') …

Software Development python
Member Avatar for pythopian
0
178
Member Avatar for weblover

hi all how are u? i have a problem and i need your help ..i have a code in java that connect to a mysql DB and update the rows of the table ...but i have a problem ...the new updated column called (original_text) contains the updated columnss from the …

Software Development java
Member Avatar for weblover
0
171
Member Avatar for lewashby

I recently posted a very small program the uses pygame and the livewires package but was unable to get the program to run. I think the Title for that posting was Graphics Window or something close to that anyway. Since I can't resolve that problem, does anyone have any suggestions …

Software Development python
Member Avatar for vegaseat
0
102
Member Avatar for lewashby

I have installed pygame and livewires but am getting the following error with the following short program that I got from my python book. [COLOR="Red"]AttributeError: 'module' object has no attribute 'init'[/COLOR] [CODE]# New Graphics Window # Demonstrates creating a graphics window from livewires import games games.init(screen_width = 640, screen_height = …

Software Development python
Member Avatar for vegaseat
0
236
Member Avatar for Ri0o

hi, i'm new in python programming i'm trying to write a simple program that processes a text file containing grades for a class, extracts the desired grades, count the number of grades in each grade segment and genrate a pie chart for grades,(A1) and here is the text file link …

Software Development python
Member Avatar for Ri0o
0
182
Member Avatar for GPXtC02

i'll start typing a command in the telnet module to communicate with my telnet server after i've already been connected and the server will suddenly drop me, exit telnet, and bring up the cmd prompt. what in this code is doing this? [code]void do_handleclient(int connsock,struct sockaddr_in *client_addr) { // Communicating …

Software Development c++ ios
Member Avatar for GPXtC02
0
106
Member Avatar for axed

I wrote a program to solve a system of linear equations. It works fine with the VS compiler. But when I try to run it using Cygwin, I get a seg fault(core dumped). But it does not say where the seg fault is. I am using the following commands: to …

Software Development c++
Member Avatar for axed
0
370
Member Avatar for Mathhax0r

My issue is essentially spelled out in the title. I want to be able to catch clicks (more specifically double clicks) on icons on the desktop or in folders or wherever, and tell where the click was on the icon (the coordinates of the click along with the whole size …

Software Development python
Member Avatar for Mathhax0r
0
107
Member Avatar for kevindappah

Hello everyone, Im new to this forum and hope you all are doing well. Im currently developing mods for half life 2 (basic changes to game play but more level design stuff) I want to improve my skills and learn everything that I possible can. I really like the programming …

Software Development c++ opengl
Member Avatar for kevindappah
0
182
Member Avatar for abraham james

if anyone could please help me with the c++ coding of the following:- Write a c++ program that does the following:- Accepts as input n(to be entered at run time and n must be divisible by 3) integers and stores them in a Stack, sort them using any sorting algorithm …

Software Development algorithm c++
Member Avatar for Clinton Portis
0
103
Member Avatar for efecto

I wouldl like to query a date of when a photo was taken.. how may I do that?

Software Development python
Member Avatar for efecto
0
248
Member Avatar for godfather_599
Member Avatar for Muzhacker
0
105
Member Avatar for StaticX

Cant seem to find the solution to this although its probably starting me straight in the face. Iv been at this for a few days now,can anyone help me spot the bug? [CODE]// test the bool #include <iostream> using namespace std; main(){ int turn; int var=2; while(var!=1){ cout << "1 …

Software Development c++
Member Avatar for snehil_khanor
0
99
Member Avatar for copry

A company pays its employees as Managers (who receive a fixed weekly salary), hourly workers (who receive a fixed hourly wage for up to the first 40 hours they work and “time-and-a-half,” i.e., 1.5 times their hourly wage, for overtime hours worked), commission workers (who receive a $250 plus 5.7% …

Software Development c++
Member Avatar for snehil_khanor
0
117
Member Avatar for dima shawahneh

Hello every one.. I have this exception while trying to execute an insert command into a simple sql database [CODE] string myChar = charNameTextBox.Text; string command = "insert into data (char,Entropy,Uniformity,stadev,smoothness,skewness,kurtosis) values(" + myChar + "," + entropy + "," + uniformity + "," + standardDeviation + "," + Smoothness …

Software Development
Member Avatar for dima shawahneh
0
159
Member Avatar for rudz
Member Avatar for gerard4143
0
81
Member Avatar for ham130489

I am working in Linux 2.14 kernel, and I have an assignment. I want to save for every process , the files it opens and closes , and the time he did that. for example : for process aaa : opening "file1" opening "file2" closing "file1" opening "file3" closing "file3" …

Software Development c linked-list linux-kernel
Member Avatar for gerard4143
0
185
Member Avatar for simpatar

This is my program: [CODE]def main(): print('This is a program to calculate the setprod') print() userinput = input('Enter two sets separated by a comma: ') value1, value2 = userinput.split(',') mylist1 = eval(value1.strip()) mylist2 = eval(value2.strip()) print(mylist1 + mylist2) main()[/CODE] If I enter following: [CODE]>>> This is a program to calculate …

Software Development python
Member Avatar for simpatar
0
107
Member Avatar for godsgift2dagame

Hey guys, I've got one more thing to ask about. How would I go about sorting by "words" rather than characters. In my program, I "read" strings, not characters and yet if I try to "sort" by words, it ends up just sorting the letters in that word. So "Benny …

Software Development c++
Member Avatar for Clinton Portis
0
224
Member Avatar for ronson

Ok I'm converting a program from Java to C# and currently stuck on a certain aspect of it. Ok I have; [code=Java]private Graphics g1; private Bitmap picture; picture = new Bitmap(x1, y1); g1 = Graphics.FromImage(picture); pbMand.Image = picture;[/code] pbMand is the name of my picture box, which I will use …

Software Development assembly c# java
Member Avatar for ronson
0
247
Member Avatar for asas4004

develop a program that can help a person with some calculation that will allow him to decide on how much money he should spend on an expensive item. The program should request four different input data from the user (All are integers): 1- His capital 2- The annual percentage that …

Software Development c++
Member Avatar for tkud
0
105
Member Avatar for abhaymv

I am a student in C++.We undertook a school project to develop a library information system.We are only allowed to use Turbo C++ version 3 compiler.We cannot use ANSI/ISO C++(Not in our syllabus.)The following is my problem: In my project, I have a class books.When the program is first run, …

Software Development c++ ios
Member Avatar for abhaymv
0
193
Member Avatar for katbury

I am trying to code a math tutor program that will have random numbers generated. Any suggestions would be greatful. Output suppose to be: I am having problems with this code. I keep switching it around and can not seem to get it right. This is what output suppose to …

Software Development c
Member Avatar for melepuram
0
105
Member Avatar for pac-man

Hi there, I am relatively new to C++ and was hoping someone could provide me with some guidance, I have a .txt file that contains a heap of HTML and I wish to extract a small portion of [B]dynamic[/B] text from differing places. For example: [U] .txt file before filter[/U] …

Software Development c++ file-stream file-system ios
Member Avatar for pac-man
0
152
Member Avatar for bk_bhupendra

the design form show following error... pls help... [code] <html><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"><title></title><style>.ErrorStyle { font-family: tahoma; font-size: 11 pt; text-align: left}.DetailsStyle { font-family: tahoma; font-size: 10pt; text-align: left;text-indent: 0; word-spacing: 0; line-height: 100%; float: left; margin-top: 0; margin-bottom: 0}.StackStyleVisible { font-family: tahoma; font-size: 10pt; text-align: left; margin-left: 20; text-indent: 0}.StackStyleHidden …

Software Development c#
Member Avatar for Antenka
0
281
Member Avatar for Mouche

So, I created this fun little Tic Tac Toe game all on my own. It was a tough project, and I know I used some inefficient strategies in the coding. Just like the other things I've posted, this could use a lot of suggestions in the areas of clean code …

Software Development python
Member Avatar for vegaseat
0
1K
Member Avatar for ~mesho~

Hello everybody, I'm biginner in J2ME prgramming. And I want to load model created by milkshape in J2ME. I do'nt know how to do that and what packages must be imported? And after the load how to control the model?

Software Development java
Member Avatar for quuba
0
74
Member Avatar for swinefish

Hey All I'm working on a graphics project at the moment, and although the details themselves are a little tedious (I won't bore you with them all) I am having some problems. My app was working beautifully, rendering my shapes with ease. But in an attempt to make it more …

Software Development image java
Member Avatar for quuba
0
295
Member Avatar for Q8iEnG

Hi mates.. I'm trying to find a way in how to inputing or outputting from a file in Java. For my bad luck when I finished my Java course, our professor didn't talked about this thing. I searched in the internet, and found a way in inputing from a file …

Software Development file-system java
Member Avatar for Q8iEnG
0
196
Member Avatar for rudz

plz plz urgent im a beginner in unix. can someone reply asap . what are kernel modules?what role do they plan in building and runnig a kernel?what happens if the linux kernel did not support modules?

Software Development c linux-kernel unix
Member Avatar for rudz
0
137
Member Avatar for RobBrown

Hello i am quite stumped with a function to print the following results: Start End Number of Primes 1 1000 168 1001 2000 135 2001 3000 127 3001 4000 120 4001 5000 119 5001 6000 114 6001 7000 117 7001 8000 107 8001 9000 110 9001 10000 112 … … …

Software Development c++ display
Member Avatar for Sky Diploma
0
285
Member Avatar for Web_Sailor

Hi, I am working on creating a jradiobutton group using JTable. Here is a brief definition of the problem. My program gives an output like this:- [CODE] Questions Answers 1 radiobtn1 radiobtn2 radiobtn3 2 radiobtn1 radiobtn2 radiobtn3 3 radiobtn1 radiobtn2 radiobtn3 [/CODE] I am able to set horizontal control that …

Software Development java java-swing
Member Avatar for peter_budo
0
528
Member Avatar for xVent

Hello to all , is there any code that will make possible check if the user typed a word i want in order to show him something ? something like , if the user types time , or tim or timing or the word time and transformated to show him …

Software Development vb.net
Member Avatar for xVent
0
103
Member Avatar for samsons17

Sory for asking too much about this..But I really need to solve this problem immendiately.. This is just simple,but i dont know why i cant finf whats wrong with my code.. I'm trying to display the price,sale and the to total sale in point form.. like this : TOTAL SALE …

Software Development c++ display
Member Avatar for necrolin
0
194
Member Avatar for vegaseat

This shows how to create, load and access a ListBox. BCX was used to create the original code which was then modified to work with the Dev C++ (really GCC/G++) compiler, compile as a Windows Application.

Software Development c++
Member Avatar for lashatt2
0
1K
Member Avatar for en1gmat1c

ok so im a new programmer and im making a tic tac toe program and i got this error `"operator && cannot be applied to boolean,java.lang.String"` in the crazy long line in the winner method and am not sure how to fix it import java.util.Scanner; import java.util.Random; public class tictactoe …

Software Development java
Member Avatar for theStruggler
0
166
Member Avatar for nccsbim071

Hi I have developed application in .net framework 3.5 WPF. Well, you know WPF also requires .net framwork 3.5 SP1. Now it's works fine on my computer. But i need to ship it the client. What will be the software requirements at the client side to run my application. Is …

Software Development asp.net c#
Member Avatar for sknake
0
186
Member Avatar for kjiu

Hello, I have a problem which is this: [CODE]private void setupEditor() { QFont font = new QFont(); font.setFamily("Lucida Console"); font.setFixedPitch(true); font.setPointSize(10); textEdit = new QTextEdit(); textEdit.setLineWrapMode(QTextEdit.LineWrapMode.NoWrap); textEdit.setFont(font); new Highlighter(textEdit.document()); new CodeEditor(textEdit.document()); } public class CodeEditor extends QPlainTextEdit { public CodeEditor(QTextDocument textDocument) // public CodeEditor() { lineNumberArea = new LineNumberArea(this); blockCountChanged.connect(this, …

Software Development java qt
Member Avatar for kjiu
0
237
Member Avatar for crazyboy

Hello every one ... I need help to make connection between two PC through socket programming ... in which scenario i want connection is as below ... there are two networks on different places.One network having internet connection of COM1company and through that one connection only other PCs are getting …

Software Development socket-programming
Member Avatar for crazyboy
0
142
Member Avatar for samsons17

Hi.. I'm wondering how could we make a program that could determine one's age by just entering his or her identification card number.. Is there any function in c++ that we can use?? this is the sample of question... Movies in cinema has ratings to suit ones appropriate age level …

Software Development c++
Member Avatar for ithelp
0
843
Member Avatar for drake2212

I am in desperate need of help! I am having an issue inserting the word into the correct list. Each array index is a letter of the alphabet, and the words need to be put into the correct index according to the first letter of the word. Can I get …

Software Development c++
Member Avatar for ithelp
0
115
Member Avatar for samsons17

Hi.. This is my program for my assignment.. So far,I've succeeded in coding the program but not for the last part.. I still need to find the total sale for this program... and the result at the end suppose to be more or less like this : Total sale : …

Software Development c++
Member Avatar for samsons17
0
89
Member Avatar for timaquerra

Hello guys! I'm new to C language and I need help to write a program which searches specific word in text file using Binary Search and count the number of comparisons!!! My text file consist of following data: apple book clock dog elephant fat hello key lucky moon olive paper …

Software Development apple c
Member Avatar for timaquerra
0
122
Member Avatar for freakgamerz

Hello, I am beginner with c++ programming and I need help with this source. I tried to find a way for getPrintDetails to not print a infomation. //Course: 4002-208 //Author: Joseph Dalpra //Topic: Functions //Name: project4.cpp //Purpose: Using functions to shorten repeated code // Play the game of craps for …

Software Development c++ gaming
Member Avatar for Clinton Portis
0
188

The End.