132,728 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sanoski

I recently bought a book on Python, and I'm working my way through it. However, I've come to a very simple program, but I can't understand a certain part of the code. Can someone explain? [QUOTE]# Print out a date, given year, month, and day as numbers months = [ …

Software Development python
Member Avatar for sanoski
1
269
Member Avatar for mcgarry101

Hi, I am writing what should be a very simple app to play wav files directly from my hard drive. As a test, i have run the simple code below <code> My.Computer.FileSystem.CurrentDirectory = "C:\Windows\Media" LbClips.DataSource = _ My.Computer.FileSystem.GetFiles( _ My.Computer.FileSystem.CurrentDirectory, _ False, _ "*.wav") </code> however i am getting when …

Software Development hard-drive vb.net
1
59
Member Avatar for MjLaali

Is there any way to pass a class as a function pointer. for example: [code=C++] int compare(int a, int b) { return a - b; } void sort(int *ar, int (*pf)(int, int)) { //a sorting algorithm. } class MyClass { bool condition; public: int compare(int a, int b) { if …

Software Development algorithm c c# c++
Member Avatar for bugmenot
1
136
Member Avatar for ITech

hi i aam trying to develop a project using vb and access i have got a problem i have 3 tables in access 1.Cust info table(fields are listed below) cust id,name,age,sex,country...etcxc(primary key cust id) 2,indate(fields are listed below) custid ,packageid,date,intime,outime(no primary key) 3.package info table(fields are listed below package id, …

Software Development visual-basic
Member Avatar for jireh
1
285
Member Avatar for dskumar_85

hai friend's wht r the components required to design a new media player >>>>> the media player should support all the video format as well as audio format , plz post ur replie's....

Software Development audio video
Member Avatar for dskumar_85
1
97
Member Avatar for watermark

I am very new to both Python and programming. I am in need of some help with this small project that I am working on. I have several text files in a directory. I want to compile them into one master file. There is a common variable, x and y …

Software Development python
Member Avatar for linux
1
178
Member Avatar for Narue

Here's a challenge for you C++ aces. The challenge is to write a function with the following declaration: [code] unsigned long extract_digits ( unsigned long x, size_t n, size_t i ); [/code] This challenge has three parts. [B]Part I (Beginner):[/B] Write the extract_digits function. It should return a sub-value of …

Software Development c c# c++
Member Avatar for ivailosp
1
680
Member Avatar for Metahuman

I have to output a collection of strings and integer values such that there is one string followed by an integer in one line. the problem i am having is to arrange it properly on the display Example: I am trying to print: or rather what i am able to …

Software Development python
Member Avatar for BearofNH
1
195
Member Avatar for Crazycfk

i am done with my c++ class and got a passing grade but this project problem that i was suppose to do is incomplete and is stuck in my head so I want to try and finish it but i am stuck here... not sure if i am using a …

Software Development c++
Member Avatar for Ancient Dragon
1
123
Member Avatar for DanLB

Hi all I'm new to this forum - Hope you can help me with my problem. First off all; I apologize for my poor english skills, i'm from sweeden I'm trying to make a simple phonebook by using a vector of struct's. As you can see in the code pasted …

Software Development c++
Member Avatar for Ancient Dragon
1
530
Member Avatar for rathmal

please i want help for the coding of page replacement algorithms implemented in c language

Software Development c
Member Avatar for Rachnamb
1
615
Member Avatar for Estella

I want to change font of all controls in a form. how i can do this?? i can change font but just for each control not all control in a same time... please help :)

Software Development visual-basic
Member Avatar for Jx_Man
1
173
Member Avatar for midimatt

I'm getting Linker errors when trying to compile my OpenGL code with Dev C++, the code compiles perfectly on the university machines using Visual Studio. I've visited several sites that explain how to get openGL to work om Dev C++, and i've followed the steps. -Installed the Dev Pack. -added …

Software Development c opengl visual-studio
Member Avatar for midimatt
1
356
Member Avatar for jrcagle

Hi all, This is the beginning of a hopefully useful project: to create a Canvas widget for wxPython that will mimic or improve on the Tkinter Canvas widget. Those of you who have coded with both will probably know what I'm talking about. With Tkinter, you can plop items like …

Software Development app-store python tkinter
Member Avatar for BJSH
1
547
Member Avatar for noble3ad

Hello, I'm in an introductory computer programming course and I'm very new. I've been trying to write a program that will allow a user up to five tries to guess a randomly generated number. Here is what I have so far: [code] #include <stdio.h> //enables printf and scanf functions #include …

Software Development c
Member Avatar for noble3ad
1
115
Member Avatar for azadeh.mohajeri

I want to handle a program about flight ticket reservation I write 50% of program but I don't know how to write the[B] RESERVE FUNCTION[/B] if anyone have Idea for this please send me the reply. Regards Azadeh:)

Software Development c
Member Avatar for ithelp
1
103
Member Avatar for smiles

I am programming for a microcontroller using CCS compiler (which based on C language) My code is pressing button to select a specified time then using that time to switch on and off a lamp, for e.g The value I got when press button is an int, with 0x31 stand …

Software Development c
Member Avatar for smiles
1
151
Member Avatar for jenna_baby

instructions [CODE] Skills needed: while loop, logical expressions, nested if-else statements Your assignment for MP3 is to calculate the monthly bill for a cell phone user given the following rate structure. Note that this is a simpler structure than in real life – you do NOT have to be concerned …

Software Development c++ data-structure file-stream
Member Avatar for ithelp
1
96
Member Avatar for Squeeker

Hello all, I am working on a program that takes input from a file, removes extra white spaces and outputs the edited text to another file. So far my program deletes 1 whitespace whether the whitespace should be deleted or not. I have read about peek() and putback(). I am …

Software Development c++
Member Avatar for Squeeker
1
1K
Member Avatar for jrkeller27

I am writing a simple program that reads in a plain text file (ignoring numbers/symbols) and stores each unique word and the frequency it appears in the text file. This information is stored in a multimap<string, int>. I want to sort the elements in the multimap so as to facilitate …

Software Development c++
Member Avatar for vijayan121
1
118
Member Avatar for vishalkhialani

I have learned the basics of c++ and found out that different c++ compilers behave differently especially when it comes to errors. I would like the community to advice as to which compiler is the most popular and if it can be used with .net so that once I develop …

Software Development c++
Member Avatar for vijayan121
1
200
Member Avatar for kartik14

When I compile and run my programs in Dev C++, the output window opens and shows the output. Then instanlty the window flashes and disappears. How do I make the window stay long enough for me to read the output?? Thanks

Software Development c++
Member Avatar for Duoas
1
13K
Member Avatar for mysterio

Write a program that read a line of text, changes each uppercase letter to lowercase and places each letter both in a queue and onto a stack. The program should then verify whether the line of text is a palindrome Output: Please enter a line of text I am A.I …

Software Development c++ queue
Member Avatar for gkbush
1
585
Member Avatar for sneekula

I have a dictionary of chemical symbols and names, to look up the symbol and get the name is easy, but to find the symbol of a given chemical name seems to be more akward. Am I missing something here? [code=python]# small dictionary of chemical symbols symbol_dic = { 'C': …

Software Development python
Member Avatar for jrcagle
1
245
Member Avatar for rajatC

How to output to an excel file and how to read from it?? i have done the writing part...to use [inlinecode]"\t"[/inlinecode] for moving to next cell in same row and [inlinecode]"\n" [/inlinecode]to move to next row... and is there any special format to save that excel file..because when i save …

Software Development c++
Member Avatar for jacki
1
6K
Member Avatar for kashmir323

I started c++ a few days ago and I am trying to make this program for my math class just to test myself. This is my code. [CODE]#include <iostream> using namespace std; int main () { int goldennumber; int finalnumber; int ratio; cout<<"Welcome to Easy Golden Ratio Finder!\n"; cout<<"\n"; cout<<"\n"; …

Software Development c++
Member Avatar for kashmir323
1
89
Member Avatar for Jade_me

hi again, i have project which i set form border style to none, but i can't to dragging form anymore. please help me how to do this with code sample cause i don't have any idea... ok. help me all... best regards from u..

Software Development visual-basic
Member Avatar for Mbt925
1
152
Member Avatar for luv2die

hi all, i need help in extracting data out of a txt file and then modify it. this is the problem i have a txt file (customer.txt) storing some data account no. money 123 3000 293 2300 874 3400 and this is the output i have to show [COLOR="red"]Customer Purchase: …

Software Development c++
Member Avatar for luv2die
1
121
Member Avatar for zoner7

[CODE] #include <iostream.h> #include <time.h> #include <stdlib.h> #define MAX_RANGE 1000 main () { long value, guess; int tries = 0; srand ( time (NULL) ); // Initialize random generator value = rand()%MAX_RANGE+1; // Get random between 1 and MAX_RANGE cout << "A random number has been selected between 1 and …

Software Development c++ gui
Member Avatar for kv79
1
399
Member Avatar for Ravenous Wolf

i have finished coding a c# program and it is fully debugged. but what is the next step? the program has to be installed on my manager's computer but i little idea how to proceed. i know that i can publish the program to some location on my hard disk. …

Software Development c#
Member Avatar for Jugortha
1
172
Member Avatar for ashishprem

Hi All, I need to color few items in a list box having style as checkbox. I can understand that getting this done is not so easy. But I need to do this for my project. Can i use any other component instead of listbox like listview. can someone pls …

Software Development listview visual-basic
Member Avatar for choudhuryshouvi
1
4K
Member Avatar for hybridkdm

Please help, I can compile this program as long as I don't put in a wrong number. The numbers are supposed to be between 100-999. If I type in anything else, it lets me input the information but I can't access anything after that. Ex: i type in info for …

Software Development c++ ios storage
Member Avatar for danzona
1
127
Member Avatar for AbberLine

Hi Recently I started programming C (not C++) in borland 4.5 at school. Now my teammate and I have to make a small game. Therefor I will use an two-dimensional array, the field (a table, rows and colmnes). This two-dimensional array holds chars ("X", "|", "J", "-" and " "). …

Software Development c
Member Avatar for AbberLine
1
223
Member Avatar for klrdn

I copied qbasic.exe and qbasic.hlp (no way to tell the version ?) from my Dos 6 Install floppy into a folder. Qbasic.exe executes ok either from within or outside the folder, but can't access its help file. I used the qbasic options 'help path' tab to enter the correct path …

Software Development file-system qbasic
Member Avatar for klrdn
1
497
Member Avatar for ivabigun

Hi, I am wanting to reverse mod 128 or 255 on ASCII values, does anyone know how to do this? Thanks

Software Development java
Member Avatar for ivabigun
1
150
Member Avatar for __vmware__

Hello, I have problem witch i've been working on for a couple of days now with no real progress. The problem is that i'm trying to search trough a array of pointer for a certain value. If the value exist return that value to be used in another function, but …

Software Development c++ visual-studio
Member Avatar for __vmware__
1
109
Member Avatar for kararu

Hi all, Can anyone suggest me commands which will take a given thing and execute it in the command line and return the output. system() doesnt suit me bcos 1.it returns int not entire output 2.it opens command line window(shell) ( I dont want to open the window or display …

Software Development c++
Member Avatar for hkdani
1
120
Member Avatar for controlsi

Hello, well this portion of code is basically just the structures from the program. everytime i compile the program i get an error at the INFOstructure. i am using these structure in a program that read from a file and prints the data to the screen. my problem is that …

Software Development c data-structure
Member Avatar for controlsi
1
85
Member Avatar for CaitlynCraft

Hello fellow coders! I am kind of stuck on one aspect of a project that I am currently working on. I have a code for a number guessing game in "C" but I need some assistance as to how to add a "high score" feature to the game. Basically, I …

Software Development c
Member Avatar for WaltP
1
1K
Member Avatar for enuff4life

in my function OpenData, it corrupts error on memory allocation when I compile and run it. in main, i need to creat an int array and pass it to other function lator.. I take 4 command-line arguments ie, a.out 7 100 lychrels.dat 7 is seed number 100 is number of …

Software Development c
Member Avatar for enuff4life
1
181
Member Avatar for Biro

Hey I am new to c++, I am trying to work with programmer defined functions, I was wondering if someone could tell me where I went wrong with this: [code]#include "stdafx.h" #include <iostream> using namespace std; double hatsize(double user_weight, double user_height); // hat size function declaration int _tmain(int argc, _TCHAR* …

Software Development c++
Member Avatar for Ancient Dragon
1
104
Member Avatar for n.aggel

hi, i have the following problem:: i want to read a string from the stdin. The string may contain white spaces so {i think} the scanf family of functions is out of the question... I think the most appropriate function for this case is fgets {if i am wrong please …

Software Development c
Member Avatar for iamthwee
1
325
Member Avatar for bitRAKE

(Using NASM on Ubuntu 7.10) I'm messing with a simple linear transposition encryption program. It added 5 to each character in the string excluding the linefeed character. I thought I would jumble it a little more by make it add 1 the the first character 2 to the second and …

Software Development assembly encryption ubuntu
Member Avatar for bitRAKE
1
8K
Member Avatar for haringmunti

Hi, Im new to VB. Im creating a windows application that computes for certain figures which i plan to save and have this information sent to ms access 07. I know how to connect the databases. My problem is that when i placed in the save command, it doesnt show …

Software Development vb.net
Member Avatar for manoshailu
1
114
Member Avatar for toneeg

Can someone please help me with this? I have been struggling with this for days now, and for some reason, my instructor's help is not working for me. I am not sure if it is because he is from Germany and I am taking courses on-line, or if it is …

Software Development c c# c++
Member Avatar for toneeg
1
347
Member Avatar for LilLady

The assignment is as follows: 1. Print name 2. Ask user "How many cycles?" and accept integer answer. 3. Ask user "How many samples per cycle?" and accept integer answer. 4. Calculate total number of samples and allocate an array of doubles to hold them. Initialize doubles to zero. Hint: …

Software Development c
Member Avatar for Duoas
1
146
Member Avatar for jrice528

without messing with the class, cause i cant modify it , i was wondering if there is a way to return thefunction calcscore as a float. I cant modify the class, where i call the function "This contestants average score was..." it always just returns a .000 is there a …

Software Development c++
Member Avatar for Ancient Dragon
1
131
Member Avatar for mank

I want to pass a float array from one function to another function I want to make use of the float array type(here container) [CODE]void funct1() { float container[4]={0.1,0.2,0.3,0.4} void funct2() ----(1) {return container;} } void funct3() { void funct2(); use container array; }[/CODE] Here what would be the funct2() …

Software Development c
Member Avatar for mank
1
2K
Member Avatar for the.alchemist

Hello. Here's my structure: [code=C] struct settings { char setting[40][255]; }; [/code] Here's the function that is supposed to take a pointer to an instance of the above structure and modify it : [code=C] void changeSetting(struct settings *tempSettings, char *newValue, int indexValue) { if( indexValue<40){ // to avoid out of …

Software Development c
Member Avatar for Salem
1
116
Member Avatar for crunchycrisp

For an assignment that im working on, we needed to accomplish the following: Asks the user for their name, accepts and stores the answer as a string. Opens a text file: questions.txt for reading �Opens a text file: studentName.ans for writing, where studentName is the one entered Reads each line …

Software Development c
Member Avatar for Aia
1
154

The End.