132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for lllllIllIlllI

Hi I have been mucking around with VPython for a bit now and i can use it for basic 3D Python but i have not yet worked out how to do things that arent the usual, add square, add arrow, add sphere. So i was wondering if it was even …

Software Development python
Member Avatar for ZZucker
0
527
Member Avatar for jcafaro10

Does anyone have a good beginner resource guide to regular expressions in Python? I'm used to them in java. For example, in java I have some regular expressions that look like this: [CODE] PUNC_MATCH = "[\\d\\p{Punct}]+" PUNC_PREFIX = "^" + PUNC_MATCH PUNC_SUFFIX = PUNC_MATCH + "$" [/CODE] Basically its supposed …

Software Development python
Member Avatar for ZZucker
0
124
Member Avatar for Ninad16

Hi all, Just started learning C.I have some basic queries.They may sound silly to you.But please bear with me. -What is the difference between Linking,Runtime and Compilation Error? -What does getchar() actually do? -How do turbo C++ and Visual C++ compilers differ from each other?I mean...in what aspects?Do C functions …

Software Development c c# c++ visual-basic
Member Avatar for Narue
0
394
Member Avatar for Traicey

Guys I need to read from a text file and display to a listview I have tried google but nothing like what I am looking for, can anyone help me, Im using windows application Thanx in advance

Software Development c++ listview
Member Avatar for Liszt
0
102
Member Avatar for jared_masc

just having a bit of an issue on a simple problem, m meant to read in a string and return the characters using the fgets method, this is what i have come up with, i get wierd outputs, ex commas, etc, cn sum1 help me plz [CODE] #include <stdio.h> #include …

Software Development c
Member Avatar for HiHe
0
156
Member Avatar for staufa

I'm getting an unexpected error for my piece of code. It seems like a new line character is added into the string once is it called. Well the purpose of my lil code is to read characters from the keyboard using the fgets function and then convert it into pig …

Software Development c
Member Avatar for HiHe
0
190
Member Avatar for Traicey

I wana bind datagrid with data from multiple tables, for example, I need a student name from student table, Student's Account number, Credit Available, Balance, etc from Account Table, name of the Cashier who processed the payment from Cashier Table, so I wana show those details in one datagrid any …

Software Development
Member Avatar for Traicey
0
85
Member Avatar for mybluehair2

I have a console game (DOS game) I created a wile ago to learn C++. But now I want to expand this game. So I started reading windows API tutorials. But I still need some help. I have no idea how to create buttons, and how to make something happen …

Software Development api c++ windows-api
Member Avatar for marco93
0
119
Member Avatar for dinilkarun

Hi All, I have developed an application in Python and the UI is developed in BOA constructor. I have placed a gauge(Progress Bar) on the frame to let user know much of processing is done. With my observation, I have noticed that the application takes about 50 seconds to complete …

Software Development python
Member Avatar for dinilkarun
0
146
Member Avatar for dimitrios67

Hi friends, I m trying to write a program in Java to manipulate my personal collection of books. Below is the code I have writen till now. If you have some ideas? [code] package Books; import java.util.*; class Book{ private int isbn; private String title; private static int count=0; public …

Software Development java
Member Avatar for stultuske
0
601
Member Avatar for Balinor

hi, ive been learning C++ from a book at home, am past the console and pretty much all the form part of the book but have a few unanswered questions. Beware this might be quite a large post, as i have no access to the net at home so am …

Software Development c++ web-browser
Member Avatar for Balinor
0
119
Member Avatar for Liszt

I will try to catch a few idéas of how to check changes in a large number of files. I dont know what oppurtunities there is to do that. I will have a folder that contains perheps thousands of files wich will be written to randomly. How is it possible …

Software Development c++
Member Avatar for Liszt
0
85
Member Avatar for regalla

Dear friends, i want to pass data from one form to another form which is having back end ms access table1 for form1, table2 for form2 connected to forms with databound controls data1. my problem is while entering data in text1 of forms1, it should go to text1 of form2 …

Software Development visual-basic
Member Avatar for jireh
0
156
Member Avatar for trojanworm

hi i have been trying to get this working out i got a login url with two urls actually one to log you in and a java script button. lets say this is the URL's [url]http://login.mywebsite/login.nhn?m=login&memberid=[/url] (HERE Account) middle part of url : &password= (password) The last part i would …

Software Development
Member Avatar for jbennet
0
193
Member Avatar for artonlinehome

Can any body help on mock test for java jsp struts servlet etc.. where can i attend mock test on java jsp struts servlet etc

Software Development java java-jsp
Member Avatar for peter_budo
0
129
Member Avatar for vrga

I am having trouble deleting a string from a list. My program has to read strings from a file, then I have to delete the ones that are equal. I am a little bit lost. Any suggestions would be appreciated.

Software Development c++
Member Avatar for JustinJose12002
0
154
Member Avatar for Clawsy

Hello, Recently I needed to assign keyboard control to my program; so and I searched the Internet, I found many examples but it seems all have one little problem(or it's my mistake?): I use this test code: [code] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; …

Software Development c#
Member Avatar for LizR
0
165
Member Avatar for polo_coins

I built two different classes and I want that one class get inherit from another , but when I build Constructions Compiler throw me an Error. I get to conclusion that i must use [B]base[/B] function so I build Constructor like this one : [B]public name_class:base()[/B] my question what do …

Software Development
Member Avatar for polo_coins
0
211
Member Avatar for Devlan

The comments are running willy-nilly, but at least in the pre-view mode it helps to click "Toggle Plain Text". [ICODE]if wish == 1: #Menu option word = input("Enter word: ") description = input("Enter description: ") print print tuplelist.append((word,description)) #tuplelist is originally defined as simply [] main_dictuples(tuplelist) #Returns the function for …

Software Development python
Member Avatar for Devlan
0
142
Member Avatar for MylesDBaker

Hello everyone, I am trying to get a head start on this week's program, as it seems to be a long, albeit relatively easy, program. I wanted to double check with the experts here to make sure the flow of control for this program is correct. The assignment is as …

Software Development algorithm c++ open-source
Member Avatar for Denniz
0
247
Member Avatar for redflame777

Can some one help me with the sort fuction problem I am having? I do not know how to fix it. It compiles right but will not run. Here is what I have so far: [code] public int compareTo(Object p) { final Product o = (Product)p; // make it a …

Software Development java
Member Avatar for redflame777
0
93
Member Avatar for animefun2

[CODE] program Q2 (Input,Output); var X,Y,T1,T2 : Integer; Flag1,Flag2,Flag3 : Boolean; SquareRoot,CubeRoot,Z,D1,D2 : Real; begin X := 1; Flag1 := True; Flag2 := False; Flag3 := False; while Flag1 do begin Y := X-1; SquareRoot := Sqrt(Y); T1 := Trunc(SquareRoot); D1 := SquareRoot - T1; if(D1>0) then Flag2 := False; …

Software Development pascal
Member Avatar for animefun2
0
1K
Member Avatar for kyeong

This project is mainly GCD and validating the error from user input. I got the GCD working correctly, but not the errors. Here's guidelines to validate the errors. [QUOTE]-Provide a function to get a nonzero positive integer from the keyboard and return it to the caller. int get_input() -If input …

Software Development c
Member Avatar for Aia
0
160
Member Avatar for serkan sendur

in visual c# i used to resolve namespaces by right clicking on the class name, do you know how to do the same in c++? thanks.

Software Development c++
Member Avatar for Ancient Dragon
0
247
Member Avatar for panpanf

i am confused by pointers. How do we know the type the pointer points? Is it compiler specific? how do we implement delete[]? Are there any books or articles about this topic? Wait for your replies.

Software Development c++
Member Avatar for grumpier
0
136
Member Avatar for babusek

[COLOR="Green"][/COLOR][B][/B][B]HI Folks[/B] This is Question seems like scrap but look into this .. I have several files in a directory(Ex:c:\dir\) now i have to remove the First 3 Characters from the File names in that directory. Using any unix command .. Test Case 1: C:\dir\ 123file.txt 456newfile.mp3 57575unixfile.dat trarruniing.txt After …

Software Development shell-scripting unix
Member Avatar for eggi
0
168
Member Avatar for buddha527

I am going back through some old code I wrote last year during school to try and refresh myself for upcoming classes. This one code I went back and tried to build it and I receive this following error: error C2059: syntax error : 'return'. I am not sure why …

Software Development c++
Member Avatar for buddha527
0
262
Member Avatar for diyana

hi i have created a code that allows images from 5 picboxes to merge together. but i have a problem distinguishing them. after merging, i would want to have different greyscale values for the images merged into one picbox. my image is made up of [COLOR="red"]black and white[/COLOR] only. thus, …

Software Development image
Member Avatar for gbertoli3
0
1K
Member Avatar for DLightman

For the sake of discussion, say I have a sphere class with a few public and private methods. Since I have this generic class I would like to define a second class that is more specific of the type, like balls, bearings, and so on. So for my second class …

Software Development c++
Member Avatar for DLightman
0
335
Member Avatar for JustLearning

I am getting a syntax error when I try to compile. After I write a little code I try to compile to catch any of my mistakes. In this project I am to use a class queue template that is provided by my instructor here it is [code=cplusplus] #ifndef TEMPLATEQ_H …

Software Development c++ queue
Member Avatar for Alex Edwards
0
146
Member Avatar for jack1234

I am using Visual Studio 2005. Following two programs has the same code, just that one is CLR Console application and the other is Win32 Console application. I set a break point at int i=1 for both program, for CLR Console application, and when run to the break point, in …

Software Development c++ visual-studio xml
Member Avatar for Ancient Dragon
0
746
Member Avatar for DemonGal711

I have to write a code that will produce a 2^n by 2^n board and then fill it (filling it isn't important, I think I got that down). Now, since my board is dynamic, any suggestions on how to deal with this. I'm passing my array from my main function …

Software Development c++
Member Avatar for DemonGal711
0
122
Member Avatar for PaladinHammer

In case the guys who helped me with a "pass-by-reference" function didn't see it, thank you for your help! I've only got one problem right now and thats that my program will not send data to an output file. Here's the code: [CODE]bool checkInputFile(ifstream &fin); // checks the file input …

Software Development c++ file-system
Member Avatar for Freaky_Chris
0
547
Member Avatar for oceanicblack

I have a C++ midterm due tomorrow that I can't figure out. Here is the assignment: [code] // Use the program BtoDsol.cpp located at: BtoDSol.cpp // which converts any byte to decimal // enhance the driver program to test an additional function DtoB with a prototype of: // string DtoB …

Software Development c c# c++
Member Avatar for stilllearning
0
229
Member Avatar for En-Motion

I'm trying to write a program to calculate a bill for a user after they enter in some details. It doesn't allow the user to enter in a value for the 'use code', instead skipping that step. Below is only a rough draft of the program, there's plenty still to …

Software Development c
Member Avatar for WaltP
0
148
Member Avatar for 3Dees

Hey, Can someone explain to me how this function works in relation to a GUI output. Public Overrides Function ToString() As String My program do some calculation and conversions and displays the resluts in a list box. I need use this function but i am not sure how it affects …

Software Development gui vb.net
Member Avatar for Teme64
0
190
Member Avatar for MaxManus

Hello, I am trying to make a program that takes input on the command-line and returns the result to textfile. The problem is that I get the error TypeError: can only concatenate tuple (not "str") to tuple WARNING: Failure executing file: <write_cml_function.py> [CODE]from scitools.all import * # imports numpy and …

Software Development python
Member Avatar for MaxManus
0
144
Member Avatar for yosi

Hi, I am looking for a code that will read the data from the SPD eeprom like memory type, speed etc. unfortunatly the wmi has no data on these items. I already downloaded some code from vbfrance but it does not work. Any help / hint / code will be …

Software Development
Member Avatar for LizR
0
214
Member Avatar for cproud21

I have the following prgoramming challenge to complete.. I am confused with a few things.. I have created the three classes which I have attached. I am struggling with the following if anyone could help i would appreciate it. - Using and passing the DAY_SHIFT and NIGHT_SHIFT - How to …

Software Development java
Member Avatar for javaAddict
0
398
Member Avatar for sanaulla123

When i set a internal frame to visible i get Java Result: 1073807364 as the output. The systems hangs and will have to terminate the execution abruptly. What does this output stand for?

Software Development java
Member Avatar for sanaulla123
0
185
Member Avatar for MyRedz

about this program which wants only 0 and 1 integers in its input...if other digits it will say error/// how to determine it?? i don't know is it printf("enter a value\n"); scanf("%d",&value); if(value2=0; value%2=1,value++){ printf("error\n"); } else continue. how to do it..? i dont get the idea for geting only …

Software Development c
Member Avatar for Aia
0
106
Member Avatar for leegeorg07

hi again after watching the film 'war games' i decided i would try to create logic games, i want to start out simply with something like noughts and crosses. but i have no idea how to start so any advice would be appreciated. thanks in advance leegeorg07

Software Development python
Member Avatar for shadwickman
0
104
Member Avatar for leo_zidane

Hi all experts, I try many times to get the inorder traversal but still it is wrong. Can anyone help me on this?? Thanks alot

Software Development java
Member Avatar for ~s.o.s~
0
121
Member Avatar for sohamghosh

I am trying to make a bank C++ program but the problem is that when the program terminates, data is lost and when I start it again, it reinitializes. Can someone tell me how to save the information in my harddrive and not my RAM?

Software Development c c# c++
Member Avatar for sidatra79
0
142
Member Avatar for PaladinHammer

Hey guys, pretty confused about what a "pass-by-reference" function is and does. No one will put it into simple English for me and Google has become my worst enemy on the topic. What the Program has to do is convert the five-numbers of a zip code (for example: "64110") into …

Software Development c++ visual-studio
Member Avatar for PaladinHammer
0
153
Member Avatar for saleem123

I want to make a program which ask the user to enter double values and stores it in a file. The inputs process ends when the user enters cntr+d. Can someone suggest how to do it ? i wrote the following code but it doesn't work ! [code]ofstream file("test.txt"); double …

Software Development c++
Member Avatar for sidatra79
0
105
Member Avatar for mathrules

I am writing a program that reads in from a file (60,000) words. I think I got my code figured out except for the getline part. I will show you what I have ...what am i doing wrong with the getline part? [code] [code=c++] #include <iostream> #include <string> #include <fstream> …

Software Development c++
Member Avatar for sidatra79
0
196
Member Avatar for anny**

hi to all it is a circle program not running , giving erorrs on my c language but it is working on my friend computer (c language) here is code ; [ICODE]#include<stdio.h> #include<conio.h> #include<graphics.h> #include<dos.h> int main () { int driver,mode, i; detectgraph(&driver,&mode); initgraph(&driver,&mode,"...\\ bgi"); setcolor(8); for(i=10;i<201;i++) { sound(i); circle(300,200,i); …

Software Development c
Member Avatar for devnar
0
227
Member Avatar for intelli

can anyone help me with starting this program i have no idea how to start it. Design and implement an application that reads an integer value representing a year from the user. The purpose of the program is to determine the year is a leap year in the Gregorain calender. …

Software Development java
Member Avatar for intelli
0
159
Member Avatar for panpanf

I am learning c# now. I am confused by reflection and event. I want to know the deep principle of reflection and metadata. How the metadata is stored and what is format of the .net executable file? I will appreciate receiving some propositions.

Software Development
Member Avatar for LizR
0
131

The End.