132,726 Archived Topics
Remove Filter ![]() | |
[COLOR=blue]Write a program that, when run, will print out its source code. This source code, inWrite a program that, when run, will print out its source code. This source code, in turn, should compile and print out itself. turn, should compile and print out itself.[/COLOR] :p Software Development c | |
I am having a problem getting my "break" to work correctly in this program. Can anyone help me see what I am doing wrong? This is my program: [code]import string import math class Student: def __init__(self, name, hours, qpoints): self.name = name self.hours = float(hours) self.qpoints = float(qpoints) def getName(self): … | |
I need help with my scheduling and I need a block of code to compare time . Software Development visual-basic | |
Just have small program to practice with Calendar. However I come accross something unusual. Once you set date for 1st April 2007 or 1st June 2008 for example you get wrong number of the week. example bellow show code set to date 1st June 2008 [code] import java.util.*; import java.text.DateFormat; … Software Development java | |
I try read a story text file using c. the problem is i want one paragraf in one variabel. i am confuse how much i should alocate the buffer size? [code] #include <stdio.h> int main() { char buf[255]; <<HOW MUCH SHOULD WE ALOCATE TE BUFFER? FILE* fp = fopen("somefile.txt","r"); if( … Software Development c file-system | |
I want to save a file on client machine. i even used the commnad "Path.GetTempPath()" but it gives the address of server's temp folder. can someone help me????? Software Development client-server | |
Hi to all! I would like to ask you which coding convention do you use? Regards, Software Development | |
ok here I want to know how to make colorated output in C and C++... For example: I want to print this string "zelena". The color must be green. Now how to get green output using [B]printf() [/B]in C and [B]cout << "zelena"; [/B] Software Development c++ | |
Hello ladies and gents, Was wondering if any of you could help me out with the following, sometime ago I had to reinstall MS V++ EE and ever since then, when I enter for instance 'std::' or 'cin.' I don't get a list with all the possibilities it has, normally … Software Development c++ | |
Good Morning Sir/Madam, I am a beginner in VB.NET .I am interested in doing project. Please sugges me a tiltle and give guidance to me. yours faithfully vidhyaprem Software Development vb.net | |
Hi, i have made a code. Its meant to announce a "Sentence" but i dont know how to make a string into a sentece. The string up to now only announces the first word of the sentece. [CODE] //Announce }else if(memcmp((void*)lpcLine, "/announce ", 10) == 0){ bRet = false; char … | |
I have been trying to figure out how to deal with any situation when the result is bigger than what a integer declared can hold. For example: [code] [COLOR=Blue]/* * Old_guy.c * */[/COLOR] [COLOR=Magenta] #include <stdio.h> [/COLOR] int main() { unsigned long int hartbits; [COLOR=Blue] /* years * days * … Software Development c | |
Hi , can anyone give me some good links to learn all about data structures and using them in C. I have an exam soon on the topic and although i did went through it in my college days, its all washed out now. Thanks in advance. Software Development c | |
Hi, I wan tto use 2 variables at same time in single loop. Like [I]for i in vs01a vs01b for k in 1 2 do rsh [COLOR=Red]$i[/COLOR] echo 'tail -20 /opt/oracle/admin/+ASM/bdump/alert_+ASM[COLOR=Red]$k[/COLOR].log' >> VS_logs.txt[/I] how to do it. because for vso1a it's ASM1.log whereas for vs01b it's ASM2.log. help me!! Software Development oracle shell-scripting | |
i'm writing a News class and their subclasses but i have a problem with that function.it tells me that function(virtual string ToFileFormat() ) must convert the news to a string that holds the file format of that news.(File format of each news are given after the class definition)And this function … Software Development c++ | |
How can I make a Tkinter window take up all my display screen area? | |
hi I am new to C++ and I want to vrite some kind of "virus" for windows. The problem is, I dont want that command line opens when program runs. Its actualy unfinished loop, which beeps all the time. Now i want to know how to make "hidden" program. I … Software Development c c# c++ windows-virus | |
Create a class called Point which can be used to set and get a point (x, y) on a X-Y coordinator. Write a program to let your client set any three points to define a triangle on the X-Y plane and determine:- 1. what type of triangle formed by client’s … | |
i m new in VB.net so i hope tht anyone can give me the webpage to get information on how to learn VB.net as i dunno anything about programming....:cheesy: Software Development vb.net | |
I'm a learning C++ programmer but one of my friends is a VB 6 programmer.He wants to go to vb.net but it makes him mad because it's so different from VB 6.Could someone please tell me any good tutorials for VB 6 to VB.net programmers.;) Software Development vb.net | |
I am writing a small shell script for windows just for fun and was wondering how to open executable programs? Can c++ do this? Software Development c++ | |
Greetings all. Its been some years since I did anything in QB. I need to manipulate a txt file so it can be imported into MSAccess. Problem: The file is already comma delimitted, however each line of text contains multiple records. I need to insert a <return> after every 35 … Software Development file-system | |
I'm going to have to include a lengthy bit of code, but its every necessary part for you to see what I need. [php]import random availableCountries = range(20) # <--- Used at games start, player's countries taken from here firstTurnsCountries = [] # <--- Player one's country possesion secondTurnsCountries = … Software Development python | |
Hi all, i'm new in linux environment and have a v. tough task. Please help me how to initiate it. give me some expample scripts.. the prob def is : * i am trying to write a full-screen utility, that displays the permissions of a directory and all the directories … Software Development session shell-scripting | |
Hello all , I am just new to programming! I want to store the total number(deck[i].value) of several players evth having loop(players depend on user how many want).I tried many ways for that like vector and array.I dont know why I couldnt!Another thing,if user wants more cards,I want to give … | |
My program won't read the listbox correctly. The output from the print statements are as follows: [QUOTE]Dronfield Sheffield 2.20 ('1',)[/QUOTE] I want the list item "B-line" to = 1, but due to the wierdness of the value, it reads it as ('1',) It is meant to read from the passinfo.txt … | |
Ok I have a program that accepts input from a file. it reads in inputs and is supposed to close automagically when it sees the number '42'. Only problem, I can read the input just dont know how to look for 42. Here's the code? HELP plz. [code]import java.io.* ; … Software Development java | |
Hi Friends, I want to display a bitmap image in my C++ program running on Turbo C++ 3.0 (16 bit compiler)... I'm doing a project on graphic calculator.....My code is nearly complete but I am not able to display a bitmap image......I have got a code [url]http://www.brackeen.com/home/vga/source/djgpp20/bitmap.c.html[/url] But that doesn't … Software Development c++ | |
First of all happy new year and sorry to disturb u again but i'm really lost. Im trying to enter to validate a date. Can u pls check this code and tell me why in the procedure date the program is not letting me enter the month.:rolleyes: Unit appointments; interface … Software Development pascal | |
Should I use the codeblocks IDE with MinGW or Dev C++ IDE with MinGW??? I'm only a beginner C++ programmer and I don't like VC++ express because of installing the platform SDK:eek: | |
So I started doing c programing and now I want to understand how file systems like fat 32 and NTFS works. So I want to know how to create a file transfering program. So here's a few questions.... 1 How do I do it the portable way? -find file size … Software Development c++ file-system | |
I have been struggling with this program assignment for weeks now. Can someone offer some advice on how to only accept numerical input, and to reject anything else? Here is my code. [code=cpp] #include <stdio.h> #include <ctype.h> void main() { //Declaration of Variables float kPrice; //Price to Calculate int choice; … Software Development c | |
The following code comes up with a number that has 13 digits past the decimal point. How can I cut this down to 2 decimal places? [Let drivetimeexpense = (rstdrivinginfo.timefromhome * rstdrivinginfo.numberoftrips * 2 / 60) * 20] Software Development visual-basic | |
hello i have the following char Ambiglist[1000]; this variable contains a company name and postcode, but there may be numerous of both ie STEPHEN COMPANY LTD;TN25 8a7 JOHN JACKSON LTD;98asHHS HUMBURG LTD;8JSHAKS i want to read in and store the company names in a variable, but i cant for the … Software Development c ![]() | |
This is an example from a book to explain using the WhoWins type for three possibilities. But when I go to compile, I get the error, "cannot find symbol - class WhoWins". Any suggestions? Thanks [code]import java.util.Scanner; import static java.lang.System.out; class Scoreboard { public static void main(String args[]) { Scanner … Software Development java | |
My college programming teacher gave me this pseudocode assignment on his first lecture. For crying out loud i have never heard anything like that. Actually am suppose to [I]Write a pseudocode to generate the [/I] [I]1)[/I] [I]fabonacii series &[/I] [I]2)[/I] [I]prime numbers btw 1 & 50. [/I] [I] -[B]Note that … Software Development c | |
Hello, i wrote tiny program to output a single symbol, and it doesn't do the job. The whole code is below: [inlinecode] .MODEL SMALL .DATA .CODE BEGIN: MOV AH,02h ; function of printing single character MOV DL,'>' ; symbol of prompt INT 21h ; DOS call END BEGIN [/inlinecode] After … Software Development assembly | |
hi everybody, how can I split my text into the array? for example mytext = "1 2 3 4 5 6"; mytext2 = splitFunction(mytext); then, mytext2[0] = 1; mytext2[1] = 2; mytext2[2] = 3; --- ------ ------------ Software Development c++ | |
how can i validate if a month has 30 or 31 days and febraury havin 29 days if leap yr and 28 if not Software Development pascal | |
Hi There, I am in the process of creating a game based around the board game Diplomacy. anyway, I keep getting the following errors, and I have no idea of how to solve it. AlliedConflict error LNK2022: metadata operation failed (80131187) : Inconsistent method declarations in duplicated types (types: frmGameScreen; … Software Development c++ | |
My current GUI program, in part, will display a button which the user may choose to press (or not, in some cases): [code] btn1 = Button(root ,bg="Black", text="HIT", image=image01,command=show_image2) btn1.configure(state=NORMAL,background='red' ) btn1.pack() [/code] This is basic and works fine. The issue I am having is that after the button is … | |
I've never actually ran a CLI based program outside of bluej. And after exporting one of my programs to a jar, I noticed I was not able to get any results when double clicking the jar. So, I'm guessing CLI based programs are run by a different method, or require … Software Development java | |
My *.py script has some non-ASCII characters in comment lines and when I run it I am getting the following warning: sys:1: DeprecationWarning: Non-ASCII character '\xe5' in file /Users/haitran/Documents/Sophomore UCB/Python/cedict.py on line 118, but no encoding declared; see [url]http://www.python.org/peps/pep-0263.html[/url] for details The thing is I went to the indicated page … Software Development python | |
Hi all, I am new to windows programming. I am currently using Delphi. Is there a way to tell how much total memory (including virtual memory) is currently available on a computer. As far as I am aware... Delphi programs start out automatically with an address space of 1 or … | |
Hello, I am trying to create a program that uses a dictionary to associate American states with their capitals. It has an interactive loop that exits when the user enters "quit". The user types the name of the state and the program responds with the state's capital. I will show … Software Development python | |
Hi all, How can make the output not to repeat again for many players. here is part of code. [code] struct { int face; unsigned int value; } card[13] = { {'2', 2},{'2', 3},{'2', 4}, {'5', 5},{'6', 6},{'7', 7}, {'8', 8},{'9', 9},{'X', 10}, {'J', 13},{'Q', 12},{'K', 11}, {'A', 1} }; … Software Development c++ | |
Hi, I am pretty new to C/C++, and would like some tips on writing the code fo my first 'try' I am trying to write a programme that marks exams and such and calculates grades. I am not looking for somebody to write it for me, well if you want … | |
How can I best center a Tkinter window on my display screen? | |
hello all i m having a really silly problem. i have written some codes with mscomm, but i dont know why all of a sudden i m having this problem. the problem is: [CODE] Private Sub Form_Load() With MSComm1 .Commport=1 .Settings="19200,N18,1" .InputLen=0 .PortOpen=True '(Here the error message says that the … Software Development visual-basic |
The End.