132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for apurv

[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
Member Avatar for Bench
0
96
Member Avatar for babutche

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): …

Software Development perl python
Member Avatar for babutche
0
115
Member Avatar for yuckadirri

I need help with my scheduling and I need a block of code to compare time .

Software Development visual-basic
Member Avatar for Ancient Dragon
0
80
Member Avatar for peter_budo

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
Member Avatar for peter_budo
0
108
Member Avatar for xibnoe

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
Member Avatar for WaltP
0
2K
Member Avatar for itchap

Hey, I came across this question, this is the 1st time I write a XML file, and I have no idea if my work is correct, or if thats how its supposed to be.......please give me your feedback: Consider the following XML file that describes a pizza: An order for …

Software Development java xml
Member Avatar for jwenting
0
78
Member Avatar for missnehamishra

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
Member Avatar for Maidomax
0
179
Member Avatar for cyberjoe

Hi to all! I would like to ask you which coding convention do you use? Regards,

Software Development
Member Avatar for jbennet
0
96
Member Avatar for jan1024188

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++
Member Avatar for apurv
0
118
Member Avatar for JoBe

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++
Member Avatar for JoBe
0
123
Member Avatar for VIDHYAPREM

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
Member Avatar for VIDHYAPREM
0
78
Member Avatar for Gunner54

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 …

Software Development c c# c++
Member Avatar for WaltP
0
167
Member Avatar for Aia

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
Member Avatar for Aia
0
190
Member Avatar for bala24

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
Member Avatar for Dave Sinkula
0
85
Member Avatar for lastkey

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
Member Avatar for lastkey
0
123
Member Avatar for c++34

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++
Member Avatar for John A
0
145
Member Avatar for sneekula

How can I make a Tkinter window take up all my display screen area?

Software Development python tkinter
Member Avatar for sneekula
0
12K
Member Avatar for jan1024188

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
Member Avatar for jan1024188
0
203
Member Avatar for indulgence

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 …

Software Development c++ oop
Member Avatar for Bench
0
233
Member Avatar for happy8899

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
Member Avatar for waynespangler
0
92
Member Avatar for Elfshadow

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
Member Avatar for waynespangler
0
104
Member Avatar for Sturm

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++
Member Avatar for John A
0
118
Member Avatar for MoeZen

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
Member Avatar for WaltP
0
99
Member Avatar for Matt Tacular

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
Member Avatar for Matt Tacular
0
163
Member Avatar for jackjill

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
Member Avatar for jim mcnamara
0
103
Member Avatar for sTorM

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 …

Software Development c++ storage
Member Avatar for Lerner
0
132
Member Avatar for chris99

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 …

Software Development python tkinter
Member Avatar for chris99
0
1K
Member Avatar for Mix

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
Member Avatar for zorr
0
99
Member Avatar for himanjim

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++
Member Avatar for himanjim
0
309
Member Avatar for Berniceazzopard

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
Member Avatar for radu84
0
132
Member Avatar for Elfshadow

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:

Software Development c++ ide
Member Avatar for micdareall
0
108
Member Avatar for Mr.UNOwen

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
Member Avatar for WaltP
0
129
Member Avatar for TomPettyJT

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
Member Avatar for ~s.o.s~
0
118
Member Avatar for stan yost

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
Member Avatar for stan yost
0
160
Member Avatar for sgriffiths

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
Member Avatar for gcs584
0
193
Member Avatar for Colin Mac

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
Member Avatar for Colin Mac
0
105
Member Avatar for syruspayne

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
Member Avatar for 80s
0
323
Member Avatar for vov4ik

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
Member Avatar for vov4ik
0
137
Member Avatar for sivaslieko++

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++
Member Avatar for sivaslieko++
0
483
Member Avatar for Berniceazzopard

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
Member Avatar for radu84
0
97
Member Avatar for gamesnmore

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++
Member Avatar for Xorn27
0
2K
Member Avatar for mattyd

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 …

Software Development gui python tkinter
Member Avatar for mawe
0
3K
Member Avatar for kimbokasteniv

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
Member Avatar for Colin Mac
0
115
Member Avatar for trihaitran

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
Member Avatar for trihaitran
0
162
Member Avatar for eddie-jdp

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 …

Software Development delphi pascal
Member Avatar for eddie-jdp
0
188
Member Avatar for babutche

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
Member Avatar for babutche
0
6K
Member Avatar for sTorM

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++
Member Avatar for Ravalon
0
111
Member Avatar for l36963

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 …

Software Development c++ career
Member Avatar for WaltP
0
231
Member Avatar for sneekula

How can I best center a Tkinter window on my display screen?

Software Development python tkinter
Member Avatar for Ene Uran
0
13K
Member Avatar for Shefali

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
0
80

The End.