132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for 2fac323

I am having a problem getting a certain part of my program to loop. I need the loop to repeat if 'Y' or 'y' is picked after a menu item is chosen. And if 'N' or "n" is picked print the receipt. I have tried numerous times to get the …

Software Development c++
Member Avatar for VernonDozier
0
203
Member Avatar for dmpop

Hello, Yet another silly question from yours truly. I need to add escape characters to " and ', so that "monkey's cool" becomes \"monkey's cool\". My primitive solution to the problem is as follows: [CODE]str1=raw_input("String:") str1=str1.replace("'", "\\'") str1=str1.replace("\"", "\\\"")[/CODE] But I bet there is a more efficient and elegant solution …

Software Development python
Member Avatar for dmpop
0
114
Member Avatar for Alex Edwards

I recently wrote a cpp file that I'm questioning. I'm unsure of whether the approach I took is correct or if it will cause damage to the heap. The goal of the project is to be able to do "clean-up" on dynamically allocated memory by storing the created object in …

Software Development c++
Member Avatar for Alex Edwards
0
118
Member Avatar for ciencia

I need help on making a sine wave I'm trying to do the equation y = Acos(2 (pi)/B x - 2(pi)/B P) amplitude A, period B, and phase shift P. It is not working out too well so can anyone help me refine this? [code=c] #include <math.h> #include <stdio.h> #include …

Software Development c++
Member Avatar for William Hemsworth
0
125
Member Avatar for K.Vanlalliana

Is there any way to display more than ten thousand list of Record using FlexGrid- all at once. If not, what will be the solution of this problem.

Software Development visual-basic
Member Avatar for K.Vanlalliana
0
119
Member Avatar for bkastel1

Hello to all, i have a question that maybe already has an answer but i can't realy find it. I want to have a ListView with a progressbar for each item (row) in this ListView. I have an application where i'm downloading some files to a electronic device i made. …

Software Development listview vb.net
Member Avatar for CraigSchaefer
0
2K
Member Avatar for mrjoli021

without using the windows task scheduler is there a way to automatically run a task at a certain time using c#?

Software Development
Member Avatar for nvmobius
0
106
Member Avatar for ansari.wajid

I have a string stored in a variable, say myString= <RssFeeds<link>http://www.codeguru.com/icom_includes/feeds/codeguru/rss-all.xml</link> <title>CodeGuru.com</title> <description>something</description></RssFeeds><RssFeeds><link>http://lifehacker.com/index.xml</link> <title>Lifehacker</title> <description>something</description> </RssFeeds> I want to extract the text between <link>and </link> and also the text between <title>and </title> in two different arrays. How to do this, please help me. if anyone have code or any helpfull …

Software Development xml
Member Avatar for nvmobius
0
404
Member Avatar for karabela

i created a sql database with table land. columns; LandID int PK LandCodeID int LandName nvarchar(100) LandFlag image Allow Nulls ive created a dataset in my solution. from my Data Sources i can drag & drop the table Land to my Form1 as DataGridView. it puts all the columns above …

Software Development dataset image
Member Avatar for nvmobius
0
281
Member Avatar for rapture

Hello, I'm newer to programming and trying to do something that has me stumped. I need to read files from a directory on a server and compare those file names to a field in a database. When I find the file names that are the same, grab a different field …

Software Development c#
Member Avatar for nvmobius
0
1K
Member Avatar for osirus0830

Hello all, I am not taking a class or asking for help with homework. I am attempting to learn C++ on my own and I do not understand the logic within one of the sample programs within my book. [code=Cpp] #include <iostream> #include <string> int main() { using namespace std; …

Software Development c++
Member Avatar for gregorynoob
0
185
Member Avatar for VIeditorlover

Hi, I have a gizmo attached on serial port and need to detect changes of controls signals DSR, DTR etc. no data, just changes (edge). I do it with MSCOMM.ocx and it works, but only when is CPU on idle and windows messages are delivered on time. When is load …

Software Development c++
Member Avatar for VIeditorlover
0
125
Member Avatar for Alex Edwards

I'm trying to create my own pattern (or something similar to a pattern I guess) where objects that are anonymously instantiated can still be referenced, but I'm getting weird memory results. It seems as if the free memory is decreasing when it should be increasing-- [code=java] import java.util.ArrayList; public class …

Software Development java
Member Avatar for Alex Edwards
0
172
Member Avatar for gregorynoob

given x and y (the field dimensions) and x*y numbers, (pieces of cheese on each square) calculate the best way for the mouse to get from (1, 1) to (x, y), he has to get as many cheese as possible... also you can only move closer to the (x, y) …

Software Development algorithm c++
Member Avatar for gregorynoob
0
706
Member Avatar for Danme

Hello Everybody, I am learning Java from a few days.i am getting an error in one of my programs wherein i am trying to print thr sum of "n" numbers..the code is as follows..please help me [code]import java.math.*; import java.util.*; import java.io.*; public class Add1{ public static void main(String args[]) …

Software Development java
Member Avatar for Danme
0
138
Member Avatar for darlineth

[CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; public class ExpressionCalculator implements KeyListener { private JFrame frame; private JLabel label; private JPanel boxLayout,panel0,panel1,panel2,panel3; private JTextField TxtInfix,TxtPostfix,TxtPrefix,TxtResult; private Font font; public ExpressionCalculator() { boxLayout = new JPanel(); font = new Font("Serif",Font.BOLD,12); //For infix notation panel0 = new JPanel(new FlowLayout(FlowLayout.CENTER,5,0)); panel0.add(label = new …

Software Development java java-swing
Member Avatar for sciwizeh
0
189
Member Avatar for phillipeharris

I am working on the code that reads an enum. It seems to point to an address instead Here is the code thanks for any help [code=cplusplus] ////////////////////////////////////////////////////////////////// //contribtor.h #ifndef CONTRIBUTOR_H #define CONTRIBUTOR_H #include <iostream> #include <string> using namespace std; //================================================================ //CONSTANT DEFINITIONS enum Gender {Male=0, Female, None}; class Contributor …

Software Development c++
Member Avatar for phillipeharris
0
117
Member Avatar for Cosa

The aim of the program which i am writing is to convert strings of DNA. The DNA is in a text file and represented by the letters A, T, C, and G. Reading in the file and outputting the converted DNA is easy. However i want to save the converted …

Software Development c++ ios
Member Avatar for Lerner
0
142
Member Avatar for Manutebecker

All I need to know is how a good way to make sure integers between 1 and 52 wont be draw twice over in a for statement... I was thinking something like [code] srand (time(NULL)); int *drawn; //The card to be drawn int notdraw[52]; // All the cards that have …

Software Development c++
Member Avatar for vijayan121
0
101
Member Avatar for friendklay

When I enter Unicode data as values for TextCtrl, I get the following errors: [code] UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 5: charac ter maps to <undefined> [/code] I am trying enter Burmese text (U+1000 to U+10FF).

Software Development python
Member Avatar for friendklay
0
204
Member Avatar for Clockowl

Hi guys, I tried rewriting my C-ish C++ function to true C++, but I'm failing so far: The first function (working) [code=cpp]const visualPart * entity::getVisualPart(unsigned int wantLOD){ for(unsigned int i = 0; i < visualEntity.size(); i++){ if(visualEntity[i]->LOD == wantLOD){ return visualEntity[i]; } } return NULL; }[/code] And the second (not …

Software Development c++
Member Avatar for Clockowl
0
99
Member Avatar for flipjoebanana

Hello, I am trying to figure out how to use memory blocks and create a block of data that contains different data types within it. In my particular example I want a pointer to a memory block that contains a struct followed by an array of floats. This is what …

Software Development c
Member Avatar for Ancient Dragon
0
99
Member Avatar for dmpop

Hello, A complete Python newbie needs help. :-) I have a simple script that updates the 'note' field in a MySQL database table based on the record's id: [CODE]id=raw_input("Record id: ") update=raw_input("Note: ") cursor.execute ("UPDATE notes SET note='"+update+"' WHERE id='"+id+"'""") print "\nRecord has been updated."[/CODE] The problem with this solution …

Software Development python
Member Avatar for dmpop
0
170
Member Avatar for anshulagarwal

when i m using this code: its not complete code..assume everything is right... [code] for(int result=0;result<g;result++) { u1+=((a[result].real_z1*tw[result])/sumd); u2+=((a[result].imaginary_z1*tw[result])/sumd); u3+=((a[result].real_z2*tw[result])/sumd); u4+=((a[result].imaginary_z2*tw[result])/sumd); } cout<<"\n""Value of U1:"<<setiosflags(ios::scientific)<<setw(10)<<setprecision(8)<<u1; cout<<"\n""Value of U2: "<<setiosflags(ios::scientific)<<setw(10)<<setprecision(8)<<u2; cout<<"\n""Value of U3: "<<setiosflags(ios::scientific)<<setw(10)<<setprecision(8)<<u3; cout<<"\n""Value of U4: "<<setiosflags(ios::scientific)<<setw(10)<<setprecision(8)<<u4; ofstream abc; abc.open("result.txt", ios::out | ios::ate); abc<<endl<<endl; abc<<"Data at position [ "<<i<<" , …

Software Development c++ ios
Member Avatar for ArkM
0
427
Member Avatar for krebstar

Hi guys, its me again.. I was wondering if anyone could tell me how to test a character if it is within the ASCII range, like say in the following pseudocode: [CODE] ifstream in; in.open("file.xxx", ios::binary); if(!in) { cerr << "file.xxx could not be opened. \n"; } while (!in.eof()) { …

Software Development c++ ios
Member Avatar for krebstar
0
6K
Member Avatar for TheOneElectroni

Hi everyone, I'm feeling a little dizzy trying to place the root window of my Tkinter app on the screen. I followed [URL="http://www.daniweb.com/forums/thread66037.html"]mawe[/URL] advice and coded like this: [code=python] root = Tk() root.config(bg="white") w, h = root.winfo_screenwidth(), root.winfo_screenheight() root.geometry("%dx%d+0+0" % (w, h)) [/code] However the window gets placed wrongly and …

Software Development python tkinter
Member Avatar for TheOneElectroni
0
748
Member Avatar for comondx

Please help me doing my homework. this homework done with C++ Data Structure. This is Questions: [URL="http://img520.imageshack.us/img520/4417/qqqq1gvq5.gif"]http://img520.imageshack.us/img520/4417/qqqq1gvq5.gif[/URL] [code]#include <iostream> #include <stdio> #include <assert> #include <string> #include "bt.h" class Calc { public: } ; int main() { bSearchTreeType<Calc> obj; string command; cout<<"I-Inputtheexpression"<<endl; cout<<"N-InorderTraversal"<<endl; cout<<"P-PreorderTraversal"<<endl; cout<<"O-PostorderTraversal"<<endl; cout<<"F-Numberofoperatorinthetree"<<endl; cout<<"E-Evaluatethetree"<<endl; cout<<"Q-Quit"<<endl; cin>>command; do { …

Software Development c++ data-structure
Member Avatar for Manutebecker
0
93
Member Avatar for kavithabhaskar

FOLKS: I fill my data grid view with data and i try to color a few cells based on a condition but nothing seems to work..no errors either..can u pls help me >? [CODE]Private Sub Button11_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Dim con As OleDbConnection = New OleDb.OleDbConnection("provider=microsoft.jet.oledb.4.0;data …

Software Development dataset open-source vb.net
Member Avatar for peteratoce
0
283
Member Avatar for rajeshkhanna_in

[B]Hi all, Is it possible to programatically "Compact and Repair" an mdb file as can be done manually from MSACCESS menu "Tools"-> "Database Utilities" -> "Compact and Repair Database..." Any help will be appreciated... Rajesh Khanna [/B]

Software Development visual-basic
Member Avatar for JA12
0
122
Member Avatar for K.Vanlalliana

Hi, I want to write VB code so that the any First letter of any Word entered in the textbox will be automatically converted to Capital. Whether there is one or more than one word in the text box, any first letter of the word should be converted to Capital …

Software Development visual-basic
Member Avatar for QVeen72
0
125
Member Avatar for SonxQ7

Being new to java am trying to understand the terminology and works around... If i have a simple text file userdetails.txt which contains users name, password, home_dir_context (this is just for questioning).. Which function between the two do i use to get the path where this is located : c:/Java …

Software Development java
Member Avatar for linu
0
490
Member Avatar for K.Vanlalliana

Is there any way to display more than ten thousand list of Record using FlexGrid- all at once. If not, what will be the solution of this problem.

Software Development visual-basic
Member Avatar for QVeen72
0
294
Member Avatar for sting_010

can anyone in here help me with my programming project. Your C program must be invoked exactly as follows: shell [batchFile] The command line arguments to your shell are to be interpreted as follows. batchFile: an optional argument (often indicated by square brackets as above). If present, your shell will …

Software Development c
Member Avatar for Salem
0
200
Member Avatar for davidleeis14

C++ reading text files I have a program which I am writing which manages a savings club. I have set up a functions which creates members (there are two members types) and outputs there data to a text file a line at a time in the format string, int, int, …

Software Development c c# c++ ios
Member Avatar for Agni
0
4K
Member Avatar for MAD_DOG

Shell Programming for UNIX/Linux is finally over thank god! C/C++/Perl I hate that shit lol it's over and I learned something. 1&>2 = I dont really know if this is right lol or 1>&2 = Something is redirecting something lol

Software Development perl shell-scripting unix
Member Avatar for eggi
0
590
Member Avatar for iamoldest

Hey everyone! Okay I have another pretty simple problem... [ICODE] while mainloop == 0: for event in pygame.event.get(): if (event.type == KEYDOWN): draw_level() if (event.key == K_ESCAPE): sys.exit() if (event.key == K_RIGHT): while roll == 0: if level[yd][xd + 1] == 1: xd = xd - 1 roll = 1 …

Software Development python
Member Avatar for jlm699
0
129
Member Avatar for the reaper

After finishing my lesson on loops and array initialization i managed to sit down for a good 15 min. and right a calculator now the code is perfectly clean but when i run it i doesn't do what i programmed it to do..here is the code [code] //*********************** //* //* …

Software Development c user-interface
Member Avatar for WaltP
0
260
Member Avatar for Seagull One

Hello Everyone. I'm new to python and so far, I simply love it! I'm still just starting to get the knack though and there's a lot more I want to know. I've decided to use it mainly for my robots' programming scripts. Right now I'm currently stuck on a simple …

Member Avatar for Seagull One
0
1K
Member Avatar for pardeep3dec

Dear Sir/Madam Please tell me how can i remove "Invalid use of null" problem . Coding given below There is no value in rc1.fields(6) [code]db1.Open "Provider='Microsoft.Jet.OLEDB.4.0';Data Source='" & App.Path & "\tmgmt.mdb';" st1 = "select * from travel where sno = " & frmtorf.tserial.Text & ";" rc1.Open st1, db1, adOpenDynamic, adLockBatchOptimistic …

Software Development open-source visual-basic
Member Avatar for hkdani
0
108
Member Avatar for ratperson

I am here making my video game wondering how to make an image appear when someone clicks in a certain area. If I need an image to pop up when some one clicks anywhere within a large rectangle of space how would I go about doing that? Thanks!

Software Development python video
Member Avatar for vegaseat
0
2K
Member Avatar for waldchr

Hi I have a program i was writing to solidify my knowledge of files and how to handle them. I seem to have hit a snag though. What the program does is create files based on a user inputted date and allows them to add content to the files (kind …

Software Development c++ display file-system
Member Avatar for waldchr
0
120
Member Avatar for gispe

Hi ppl, I've written a simple program with strings. this just recives the name and last name of a person, and then print it. i had a few problems with this: at first, it didnt let me define a variable as "string", it gave this error: [code=cplusplus] C2679: binary '>>': …

Software Development c++
Member Avatar for CoolGamer48
0
335
Member Avatar for neverness

Hello people, Alright, my problem is something like this. I've declared a nested struct within a class template, and i want one of the member functions of the class to return an object of type struct. Somehow, i seem to be unable to do this defining the member function outside …

Software Development c++
Member Avatar for neverness
0
254
Member Avatar for mjoshi

I have a codein which i want to do the following: main(int argc, char *argv[]) { fp1=fopen(argv[1], "w") function(para1, para2, ??) } function(para1, para2, ??) { fp2= fopen(argv[2], "r") } So eesentially i want to pass a few parameters and the pointer to the function. I dont know how to …

Software Development c
Member Avatar for Aia
0
417
Member Avatar for anshulagarwal

hello freinds.I am anshul agarwal doing my summer internship in Germany. I am facing one problem in visual c++.. Actually i have done a project in borland c++ but because of memory constrain, I am forced to switch over to visual c++... My program is to read 5000 data from …

Software Development c++
Member Avatar for VernonDozier
0
246
Member Avatar for samlabs821

Hello progers There is a big question in my mind I know that now PHP is popular but JSP is also known . . . so can you answer which language will be popular in future

Software Development java php
Member Avatar for peter_budo
0
93
Member Avatar for lhanzcelot

i want to learn vb.. is der any tutorials here dat can help me learn vb? tnx..

Software Development visual-basic
Member Avatar for K.Vanlalliana
0
77
Member Avatar for krebstar

Hi guys, I'm having a little problem setting a string value to another string.. I have the class: [CODE] class FILENAME { public: string GetFullPath() const; void SetFullPath(string& fname); private: string fullpath; }; [/CODE] The declaration for the SetFullPath Method is: [CODE] void FILENAME::SetFullPath(string& fname) { fullpath = fname; } …

Software Development c++
Member Avatar for krebstar
0
192
Member Avatar for brizhou

what code can i use so that if the coodinates of a mouse represented by symbol @ goes over coodinates of apples representedby symbols & and makes the & disappear on the grid? im thinking which would be more effiecient, the if or switch statement

Software Development c++
Member Avatar for CoolGamer48
0
84
Member Avatar for chanda gul

Hi...can any1 help me in this code?? i am trying to read the content present at address 0x2c of memory of floppy...but i am having problem in this...please tell me how can i do this??? [code=cplusplus] #include "stdafx.h" #include "fat_32.h" #include <conio.h> #include <memory.h> #include <string.h> #ifdef _DEBUG #define new …

Software Development c++
Member Avatar for Salem
0
129

The End.