132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Fredczj

Hi all, I face a problem using gcc and ld on embedded target. I just want to declare a constant value (designed to be located in flash memory), and I want to have it compile, linked and allocated in my output file. For instance: [CODE]const volatile unsigned long myvar __attribute__((section(".flashdata"), …

Software Development c flash
Member Avatar for gerard4143
0
193
Member Avatar for neosonic

Hi all, If I want to read an image and split them into pixel of rgb(red green blue) regarding their color. Is it possible to do it in vb? Or I need to use the different program? if you have any clue, please let me know, thanks.

Software Development visual-basic
Member Avatar for neosonic
0
100
Member Avatar for Kriogenic

Hey Everyone, I am seeming to be in a spot of trouble. I am using the following code to read a HTML page, loop through it line by line. problem is it is around 7300 lines and takes about 20 seconds to finish the loop. I was wondering if anyone …

Software Development html-css java
Member Avatar for Kriogenic
0
87
Member Avatar for ffs82defxp

It won't work! [CODE]def get_user_choice(): from string import digits user_choice = input('Type a number, 1 to 6.\n\n') if user_choice == '': print 'Not a valid choice.' raw_input() main() check_if_true(user_choice) def check_if_true(): import random comp_choice = random.randint(1,6) if comp_choice != userchoice: print 'The computer won :(' return comp_choice, user_choice else: print …

Software Development python
Member Avatar for ffs82defxp
0
113
Member Avatar for Egypt Pharaoh

I want to creat a button that when I click on it it will generate a TextBox ,please tell me how

Software Development
Member Avatar for sknake
0
101
Member Avatar for amosda4183

I have to write a memory game, where the user gives a file name and that file reads in 8 strings that will be placed on the board. The code I have so far is down below, if anyone can help me fix it up I would appreciate it. [CODE] …

Software Development c++
Member Avatar for Lerner
0
330
Member Avatar for tomtetlaw

I have seen an array struct in C that can hold data even if they are a different type. I forgot what that code was and I don't have the code on me at the moment. So I was wondering if anyone could show me how I would do this …

Software Development c++
Member Avatar for mrnutty
0
1K
Member Avatar for Nazere

hey guyz, i need to make a code for searching the names in the list txt. i pretty much got the other parts, but when im kinda stuck on searching. [CODE] def main(): list_of_names = open_file() print""" --------------- non sorted---------------------""" print_names(list_of_names) print """ ----------------sorted-------------------------""" list_of_names = sort_names(list_of_names) save_file(list_of_names) search_names(list_of_names) def …

Software Development python
Member Avatar for vegaseat
0
113
Member Avatar for leebee306

Hi, I have a dataSet that has many .mp3 files in it. I have displayed them in a form, When i click on the cell that has the .mp3 i want. It should save to a temp file. Any Ideas thanks

Software Development dataset
Member Avatar for sknake
0
60
Member Avatar for leebee306

Hi, I have a MP3DataSet that includes .mp3 files, i have a form, which shows all the files in the dataset, on the form i also have the windows media players. I am trying, when the user clicks on a song in the dataset to play on the WMP, any …

Software Development c# dataset
Member Avatar for sknake
0
104
Member Avatar for JuvenileMango

Hi, I'm trying to write a hangman game program, but some things aren't working properly. [CODE]def hangman(): choice=input("Enter a letter: ") a=type.find(str(choice)) if len(choice)>1: print ("Only one letter please") hangman() elif a!=-1: b[a]=str(choice) print ("Correct") c=''.join(b) print (c) if type==c: print ("WINNAR!") else: hangman() else: d+=1 e[d]=choice if d==0: print …

Software Development python
Member Avatar for JuvenileMango
0
178
Member Avatar for buzzykerbox

Hey Guys and Gals,I'm writing a program to find the highest and lowest of 5 integers.I think i have the algorithm almost right but it doesn't work.I think its something simple.......as usual......... [CODE] include <iostream.h> include <conio.h> int main () { double total=0,num1,num2,num3,num4,num5,high,low; cout<<please enter number; cin>>num1; cout<<please enter number; …

Software Development algorithm c++
Member Avatar for buzzykerbox
0
2K
Member Avatar for python.noob

Hi everybody, I just started learning pyqt.. I referred it's wiki page and found some but only two links are useful.. I finished pyqt tutorial in zetcode.. It was really good.. I've downloaded cross-platform GUI programming with pyqt book.. But it's not an ideal book to start with for the …

Software Development gui python qt
Member Avatar for vegaseat
0
162
Member Avatar for Kippstah

Ok, uhh... I need help. My loop to keep the program running or to quit isn't working right. Can somebody help me figure it out? I tried a couple of methods, and they didn't work. Do anybody have any idea? By the way, this is for a blood drive program …

Software Development python
Member Avatar for Kippstah
0
1K
Member Avatar for StaticX

Hi, I am currently running on windows and have and issue when i try to read/write files,the problem being that it just doesn't happen. I know the code is correct because when I use a linux os and other windoze machines everything is ok..it just seems to be my computer. …

Software Development c++
Member Avatar for StaticX
0
109
Member Avatar for qk00001

Hi people, Do you have any good sites for C++ MySQL.Especially how the 'query' part works in the C++. Thanks a lot!!!

Software Development c++ mysql
Member Avatar for VernonDozier
0
158
Member Avatar for javaStud

Hi, I am trying to transfer some numbers that I have generated inside an array,but I have some mistake that I am not 'seeing'. The array contents are not the same as those generated. Any help please.. Thanks a lot. [CODE]#include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> #define SIZE …

Software Development c++
Member Avatar for javaStud
0
93
Member Avatar for basti!

Hello together, sorry for my bad english. I'm complete new to python and its very difficult for me, so i hope that you can help me. i have got a csv in which there are names and telephone numbers. Now i have to do an program that shows me the …

Software Development python
Member Avatar for vegaseat
0
119
Member Avatar for merse

Lets have a class (called Class with capital C) have a class member data. But when we declare the class data in the body of the Class, we have to initialize it with something (default constructor or other constructor) however in c++ the initialization used to task to the Class …

Software Development c++
Member Avatar for Narue
0
136
Member Avatar for vinnijain

Hi,In my application ,there is a combobox in which classname appears . Now I want that for each selected classname from combobox,I want that user could add sections according to his wish . Like if user selects class12 and he wants to add 4 sections(A,B,C,D) .he should add "A" in …

Software Development
Member Avatar for vinnijain
0
120
Member Avatar for swolll

What does "->" do for vectors? And, how do you use the vector algorithms? And, also, when/why do you use #ifndef something_H, #define something_H, ..., #endif? Is there a difference between "vector" and "apvector"?

Software Development c++
Member Avatar for jonsca
0
115
Member Avatar for shopnobhumi

what would be the recursive implementation of the following c program: int fact(int n) { if (n == 0) return (1); else return(n*fact(n – 1)); }

Software Development assembly
Member Avatar for eng.ehsan07
0
129
Member Avatar for vAshunk

i have a problem in a java program. : "accept a number and print the sum of digits." can anyone help me out???

Software Development java
Member Avatar for vAshunk
0
172
Member Avatar for mcap61

I have to write a program to check the ranking of the top 1000 boy and girl baby names using linked lists and pointers. I have based most of my work off a tutorial from this website [URL="http://richardbowles.tripod.com/cpp/linklist/linklist.htm"]http://richardbowles.tripod.com/cpp/linklist/linklist.htm[/URL] And here is the link to the list of names. You probably …

Software Development c++ linked-list
Member Avatar for jonsca
0
230
Member Avatar for beforetheyknew

How do you write a driver class? i've never used one before and its sort of dropped into the spec of this program. It uses public static void main(String[] args){} right? i have 4 other classes, so what should i do?

Software Development java
Member Avatar for javaAddict
0
153
Member Avatar for hao90

i think this part got problem..anyone can guide me? [CODE]ifstream BanKing; BanKing.open("BankData.txt"); while (!BanKing.eof()) { BanKing>>loginName; BanKing>>password; if(loginName == loginName1 && password == password1) { menu(); break; } else { cout<<"\tUnregistered ID or you have enter a wrong password !"<<endl; cin.clear(); cin.ignore(); getchar(); return ; } BanKing.close(); } }[/CODE] i …

Software Development c++ ios
Member Avatar for hao90
0
176
Member Avatar for TotalHack

So my code does everything I want it to do with the exception of when writing to storage I am not sure how to make true and false write as 1 and 0 respectively. I do not know if it's my syntax or my placement within my program...Kind of lost …

Software Development gui java java-swing storage
Member Avatar for JamesCherrill
0
160
Member Avatar for lewashby

In the following program, I have three different comments each after a line of code. Please read those comments to answer my questions. [CODE] # Property Critter # Demonstrates get and set methods and properties class Critter(object): """A virtual pet""" def __init__(self, name): print "A new critter has been born!" …

Software Development python
Member Avatar for lrh9
0
263
Member Avatar for new programer

Hello, I want my program to repeat it self if the user entered a specific number and to terminate if he entered any other number or charcter the repeating part worked put the terminating part did not . it kept on doing an infinate loop how can I fix it …

Software Development c++
Member Avatar for mrnutty
0
93
Member Avatar for Ryujin89

I have created a class that allows the user to input their mailing address, order date, type of cookie ordered and the quantity. I'm taking things step by step and have got the program running, but I can't get the comparing part to work. It will accept any string as …

Software Development c++
Member Avatar for Ryujin89
0
113
Member Avatar for 825

please can anyone help me with this homework i do not know what to do. thank you 1. Write a program that will count from any user-inputted number to 0. For example, if the user inputs 5, the program should output: 5, 4, 3, 2, 1, 0.

Software Development assembly
Member Avatar for b1083
0
118
Member Avatar for rimorin

Dear JavaFans, I notice that if you use FileOutputStream and FileWriter to write a string into a textfile (.txt) , the Java i/o implementation doesn't seems to recognize the syntax \n which is the newline function. Anyone facing the same problem? The output text file will simple display all strings …

Software Development java
Member Avatar for rimorin
0
114
Member Avatar for UberJoker

Hello everyone. Got a bit of a weird problem here. I cant seem to figure out a way to read a file with a format like this... hello what 100 200 its a string string integer integer i need to put each of those values in separate arrays. eg: array1[0] …

Software Development c++ file-system
Member Avatar for UberJoker
0
153
Member Avatar for JGClifton

Hi guys, Firstly, thanks for the great community, have been lurking for a while and have picked up a lot of help from existing threads. I am making a small program which takes some inputs as strings, i then need to display a list of these inputs, be able to …

Software Development java oop
Member Avatar for rs25
0
202
Member Avatar for gogo2010

I have to write a program to get traffic lights to work - how do i get it to show green and amber at the same time? any suggestions?

Software Development visual-basic
Member Avatar for hero_1036
0
83
Member Avatar for mokia1

This is the problem Write a program to assign passengers seats in an airplane. Assume a small airplane with seat numbering as follows: A 1 2 3 4 5 B 1 2 3 4 5 C 1 2 3 4 5 D 1 2 3 4 5 E 1 2 …

Software Development c++
Member Avatar for mokia1
0
280
Member Avatar for stewea99

Hi, I have this form which so far displays data if its there or lets you enter new data in the form. I have a combo box which at present inserts whatever is selected into my table. How can I make it so the id of the item in the …

Software Development visual-basic
Member Avatar for nth
0
186
Member Avatar for dahliababy

[code] package squishgame; /* * The stop watch class will allow a program to start and stop a stopwatch as * well as return the stopwatch as a string, a total ms's, or the hour, min, and * seconds separately. * * The System.currentTimeMillis() returns the number of milliseconds since …

Software Development java
Member Avatar for kdkanishka
0
93
Member Avatar for hao90

Can anyone guide me how to solve for the login problem..i think is the read file problem.. I try many ways but can't. here the code: [CODE]#include <iostream> #include <string> #include <fstream> #include <cstdlib> #include <cmath> #include <windows.h> using namespace std; class bankAccount { private: string name, loginName,loginName1; float IDnum; …

Software Development c++ ios
Member Avatar for hao90
0
286
Member Avatar for rafta

I have wrote this code about Soccer score using Data Structures, but it does not give me the Highest Score, Name of the Highest Score achiver and the Table of Players and their scores,points. As its getting longer and longer i am getting confused. Please help me [CODE] #include <iostream> …

Software Development c++ data-structure
Member Avatar for rafta
0
153
Member Avatar for jdrei

i'm trying to add two arrays and i can't seem to get my carry to work in my add function. for example, if array a has 1,2,3, and array b has 5,6,7, i should get 690. but since there is a flaw here, i get 680. why? can anyone point …

Software Development c++
Member Avatar for jdrei
0
86
Member Avatar for angel1204

I am taking entry level C++ course, and I am having trouble with my assignment for this week on Sequential Files. Here is my assignment: Create a C++ console application that analyzes the contents of a text file. Your program should count the number of: lines (hint: use getline) words …

Software Development algorithm c++ file-system
Member Avatar for Clinton Portis
0
127
Member Avatar for seeplusplusbeg

I need help creating a program. I have a text file that is 0's and 1's which create a picture. There are 33 rows and 50 columns. Every row contains 0's and 1's. what i need to do is do a program that will read the zeroes and ones and …

Software Development c++ file-system
Member Avatar for necrolin
0
118
Member Avatar for Seriss

Part of my program displays a list of valid IDs, their pay, and a list of bad ids. Several of the values are.. empty I guess so they display as 0s. How can I keep that from happening?

Software Development c++
Member Avatar for Seriss
0
84
Member Avatar for Darkmist

Hi, I am working on a program, it asks user for a file name and opens that file with that name, do some calculations and create a new file with the filename.output (.output is the extension) and save the contents into it. I have been working on it for a …

Software Development c++ ios
Member Avatar for Clinton Portis
0
269
Member Avatar for Sandar Khin

Hi all, I want to make plugin.Pls tell me steps of making plugin in java.Thank for any answer.

Software Development java
Member Avatar for Sandar Khin
0
70
Member Avatar for ericwshoemaker

Hi all, I have a c++ program i'm working on focusing on pointers in a circular linked list. I need to have the user specify the position of the "dog" in the line (the program is a mock dog show). Then a function checks for the specified position and returns …

Software Development c++ linked-list
Member Avatar for ericwshoemaker
0
82
Member Avatar for Darkicon

Awhile ago I made an app that uses Performance Counters to display info pertaining to CPU, RAM, hard drives, etc. kind of like Window's program (Forgot the name), but only displaying info people would really need. I want to continue working on that app and adding new stuff to it. …

Software Development vb.net video-card
Member Avatar for kvprajapati
0
100
Member Avatar for Instinctlol

can anyone help me convert this code from array to Vector? I need this in it [CODE]class VectorList { vector<WeatherStation> List; vector<WeatherStation>::iterator ThroughTheList; public: VectorList() {;}[/CODE] [CODE]#include <iostream> #include <string> using namespace std; class WeatherStation { string StationDesignation; //Identifies the station string StationAgent; //Who's responsible double Temperature; //The temperature public: …

Software Development c++
Member Avatar for Clinton Portis
0
117
Member Avatar for Hanyouslayer

I have been working on this for a bit, and I have made some great strides. However, there are just a few things bugging me that I can't seem to figure out. This is an assignment, and I don't expect anyone to toss out an entire program for me. However, …

Software Development java
Member Avatar for Hanyouslayer
0
317

The End.