132,726 Archived Topics
Remove Filter ![]() | |
I have not done any c++ programming yet but was wondering how you use arrays in a for loop for example the code below int i; double D_Nath(11),D(11),er(11); for( i=0;i < 11; i++) { D_Nath(i)=PI*D(i)/er(1)*.76554; } how dod you get this to work correctly. Thanks for any help with this. Software Development c++ | |
Hello, How to read an input(string) from the user keyboard without displaying it on the I/S, but to disply a character that I specify like (*) instead of the actual inputted character.. and if possible to store the entry on array right now, I can't find any replacement for getch() … Software Development c++ ![]() | |
hey guys im trying to write a simple caclculator. i have written the code and the functions for it but the the main when i try to use the Scanner function to get user input and to put it all together it does not work. the code is below i … ![]() | |
I found this code, but can't find the needed module: [CODE] # display the info of a list, dictionary and tuple # needs apihelper.py from apihelper import info # create a list (or other container) li = [] # now display the available inormation print info(li) print "-------------------------------------------" # create … Software Development python | |
hello, i have to open excel file from vb application. i want to update excel file from vb if i modify some value from vb application. but i dont want msg from excel that "Do you want to save changes in this file?" please guide me Thnaks n Regards from … Software Development visual-basic | |
:lol: What the procedure/function for working out the biggest/smallest result? This is the program i am trying to do..and i am supposed to show the user the highest student mark, and the lowest student mark, but i don't know how to.........argh!" Please Help!:eek: [code]program ftn_marks; {$APPTYPE CONSOLE} uses SysUtils; const … Software Development first-post pascal | |
![]() | hello! I badly need to submit this program within an hour from now so any help out there who could help debug my code, i would really appreciate it. there's something wrong with my qsort() syntax but i can't figure out what . spent 5 hours trying every possible ways … |
hi my friends. I need your help, I have to solve these three problems ASAP. Please help me with this: [U][B]1)###########################################[/B][/U] [COLOR=#000000]For a set of numbers read into an integer array (arr1) populate another array (arr2) with A*x2 + B*x + c, where A, B, and C are integer constants … Software Development assembly | |
I'm working on a "breakout" game and everything worked fine until i tried to add in double buffering. I tried to take out double buffering since i couldn't get it to work and now, it draws everything from the top left corner of the screen instead of in the client … Software Development c | |
Just a note, I was surfing the TV (satellite) the other night and ran accross a channel I had never seen before called TechTV and there was a recorded presentation done in Toronto, Canada by a .NET developer. Anyhow, it was rather informative, I gathered some interesting info from it, … Software Development vb.net visual-studio | |
Sorry to embarass myself here. Does anyone knows how to use C or C++ or Java Programming, or any other language for programming for novices? I'm a REALLY beginner. Anyone that is Professional in Programming and willing to teach please kindly teach me the BASIC of programming and the language, … | |
Hi, I need to do the usual i.e design a form to get user registration details. I need to allow him to select his country ,state city but i figure making three separate postbacks would greatly reduce the performance. Alternatively i was planning to fetch the whole data at client … Software Development vb.net | |
Hi, For some reason, every Python script I try to run in the Windows command prompt fails to run. I get this output for "python setup.py py2exe": [code] Traceback (most recent call last): File "setup.py", line 4, in ? import py2exe ImportError: No module named py2exe [/code] I've installed py2exe … | |
hi im asked to read data inputs from a text file in c. my problem is i dont know to separate the values, ex. may data contains these: 1.00:2.00:3.00 i would like to assign the values a = 1:00, b = 2.00, c =3.00. how is it done? thanks! Software Development c | |
Hi, im trying to create a program that will control a dynamic array . The program have few functions to handle dynamic array. * Add number to array * Erase number from array * Print the array I have two problems with my code . The first one is with … Software Development c | |
Hey every1...........i need to know dat which of the library is used in VC++ for graphics interpretrion... Can any one help me......????????????????????????????????????????????/:rolleyes: Software Development c++ | |
hi , Which Function do u think is the most important function available in Flash.. I think it is the [B][I][U][COLOR=red]trace();[/COLOR][/U][/I][/B] [B][I][U][COLOR=#ff0000][/COLOR][/U][/I][/B] [COLOR=black]What do u think.. Replyyyyy[/COLOR] Software Development flash | |
hi, i have this simple code, that compiles on visual studio 2005.When i try to run the executable through visual studio {pressign ctrl+F5} it does nothing{although the test.txt has size of 1kb}, when i run the exe through the command prompt the program works fine... Does anyone know why this … Software Development c++ ios visual-studio | |
I need to create a Two-Dimensional Array in "row major"order and add up the elements of the row and return the sum in $v0. I know how to set up the data, i just don't know how to manipulate it to get the sum. And I cannot overflow the registers. … Software Development assembly | |
This code is supposed to sort the numbers I input. I get only 0's [code=c] // Group Project 10.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include <vector> using namespace std; void selectionSort (vector< int> list, int length); void fillArray(vector< int> list, int … Software Development c++ | |
[B]this is my 1st time to post. help pls.[/B] [B]can anyone help me program tictactoe (java w/ gui)? req. are comp vs player, player vs player, 2d array, replay, undo..plssss...i need your help :sad: rep asap..thank u very much :cheesy: .. pls:sad: [/B] Software Development first-post gui java | |
Hey, it's been quite awhile since I last posted, but I'm stuck. What I'm supposed to do is look at this code and tell what would appear on the output screen. I ran the program and found that it should display: 2 3 6 1 5 0. However, I just … Software Development c++ | |
Hi guys, I have an assignment for a class [url]http://www.cs.sfu.ca/CC/165/popowich/assign-3/assign3[/url] that's due in 3 days. I am totally confused with this as I've never programmed before. If anyone can help in anyway with this assignment it would be greatly appreciated, I really need the marks. And if you're using any … Software Development python | |
I have to write a program that converts user entered Kilometers into Miles. But, I need to use two functions in addition to main program which is... [code] def main(): print "This program converts distances measured in kilometers to miles." kilometers = input("What is the distance in kilometers?") miles = … Software Development python | |
The last time I posted a question here, I got a rather nasty response, so please just constructive stuff! I want to make a scrollable entrybox for Tkinter GUI, the scrollbar shows up and works, but text does not move. Am I missing something? [code=python] import Tkinter as tk root … | |
I need to create a program where it asks the user where is a text file. The file will open and it will be a list of names. The names should be stored in a vector after being read by the program.The program then will call a function named print … Software Development c++ | |
Hi, I'm using a datetimepicker in a form and i have a textbox also. I need to list the days clicked separated by a "," in the textbox, however i have no idea how to code it. ex. i used [code] dates_chosen.text = datetimepicker1.value.dayofweek.toString [/code] but if i click on … Software Development vb.net | |
Is possible to do this: [code] from Tkinter import* scy=Scrollbar() scy.pack(side=RIGHT,fill=Y) scx=Scrollbar(orient=HORIZONTAL) scx.pack(side=BOTTOM,fill=X) canvas=Canvas(xscrollcommand=scx.set,yscrollcommand=scy.set) canvas.pack(fill=BOTH,side=LEFT,expand=1) scx["command"]=canvas.xview scy["command"]=canvas.yview canvas["scrollregion"]=(-1000,-1000,1000,1000) mainloop() [/code] in wxPython?? Thanks for all post, i am new in wx:lol: Software Development first-post python tkinter | |
i thoguht i had this working and someones done something and its now no longer working, i couldnt workout what was changed. [code=cplusplus] #include <iostream> using namespace std; int main () { Double annSal, mthSal, nAnnSal, nMthSal, pcent, numBkPyMths, bkPy; pcent = 0.065; numBkPyMths = 5; annSal = 0; nAnnSal … Software Development c++ | |
hi all, I have been struggling for a while with my client/server program. I have to authenticate in order to log on correctly. I have managed to get most things sorted, asking for username ( which is a long integer (12) ) and also and customer ID (also an int … Software Development c client-server | |
I am upgrading a vb 6.0 app to .net and I'm having trouble moving a file. The app retrieves info from an XML. When it's done I try to move the .xml file to a history folder and I'm getting an error: An unhandled exception of type 'System.IO.IOException' occurred in … Software Development file-system vb.net xml | |
I have written this program and I've having a problem making a function out of it, can you help? import math from graphics import * def drawface(): center = input('What is the center of the circle(enter as Point(x,y))') size = input ('How big is the face?') win = GraphWin() circ … Software Development python | |
hi i speack frensh i am sorry for my english je suis un programmeur debutant dans le domaine de yahoo je veux un code source ou bien une tutorial comment connecte a yahoo sous proxy je sais comment ça marche sans proxy merci d'avance i am sorry:p Software Development visual-basic | |
hello to all , my name is Talal. i have no background in C++. i work in a company as marketing representative. i got a program which was made in C++ by a programmer. and i lost the sources codes file from my PC. now i have to give that … Software Development c++ | |
Hey all. I've been recently trying to write down a program that lets 2 players play tic-tac-toe (aka X/O) but I wanna code it using Bloodshed C++. Thing is, I wanna do it something like this. ---- > Display the gameboard like this. 1 2 3 4 5 6 7 … Software Development c++ | |
Write a complete program to implement the link list operations as following. a. Write a routine to make two lists L1 and L2 with 5 elements given by the user at run time. Or add two lists with its elements in the main function. b. Write a routine to compute … Software Development c linked-list | |
I got this code (written when sleepy, sorry for lack of "expertness") [CODE]#include <stdio.h> #include<time.h> int card1; int card2; int card3; int total; int other; srand(time(NULL)); card1=(rand()%22)+1; card2=(rand()%22)+1; other=(rand()%22)+1; total=card1+card2; int main() { printf("Hey, welcome to HBK's Twist or bust game. Lets begin\n"); printf("Your cards are: %d and %d\n", card1, … Software Development c | |
[B][U][COLOR=#000000]CURRENT SYSTEM[/COLOR][/U][/B] [COLOR=#000000][/COLOR] [COLOR=#000000]The name of the company that I am discussing about its system is <company name snipped> All the system running in various departments are computerized except that of the Front Office which needs to do some revamping in its system. Everyday the counter will handle the checking … Software Development c++ file-system | |
I am writing a short program in c on a linux platform which takes an argument from the command line. My only problem is retrieving that argument. It is an integer. Here's what is currently in my code: int seconds = *argv[0]; Thanks :cheesy: EDIT: Here is the rest of … | |
I am trying to read file input into an array so I can tally up the number of times each letter appears (including the apostrophe). I am not sure what I am doing wrong, but my file data is not getting assigned to the array outside the function. [code] #include<iostream> … Software Development c++ | |
Hi all, I am hoping that you could help me with this. I am working with assembly language 8086. I am trying to put integers into an array one at a time after a prompt. Something like this: Please input an integer: 6 Please input an integer: 1 Please input … Software Development assembly | |
Hello, am a new member and this is my first posting. Having benefited from lot of posting i decided to join. But currently am trying to solve an exercise and it is proven difficult for me. I have written a program in c++ in linked list but am facing two … Software Development c++ linked-list | |
Is it possible to have a hash as a data member of a perl object? If so,what is the syntax?? And also how to assign values to this hash?? Software Development perl | |
I have a function that returns an int. How can I call it from the main function. Software Development c | |
Hello, I am fairly new to C# so forgive me if this is a simple question but I cannot seem to find anything on this subject (I am proabably not searching for the correct thing) How would you go about setting form control properties such as a succession of many … Software Development | |
um something i have been wondering for a long time is. how do u make it so the user inputs a word and the program identifies the word as a number so like if someone typed the word frog and it reconized it as the number 5. Software Development c | |
um latly i have ben seeing stuff like bla_bla_bla in tutorials and stuff and im just trying to figure out what this "_" character is supost to mean could any one help me? Software Development c | |
i am just start Computer grahics. that is my first program please help me [code=c] #include <GL/glut.h> void DrawPixels(); void OurPixelsDrawingFunction(); void SetView(); void SetView(int w, int h) { glViewport(0,0,w,h); glMatrixMode(GL_PROJECTION); glLoadIdentity(); glMatrixMode (GL_MODELVIEW); glLoadIdentity(); } void DrawPixels() { glClearColor(1.0,1.0,1.0,0); glClear(GL_COLOR_BUFFER_BIT); glMatrixMode(GL_PROJECTION); gluOrtho2D (0.0,600.0,0.0,600.0); OurPixelsDrawingFunction(); void OurPixelsDrawingFuntion() { glColor3f(0,1,0); /*Set … | |
Ok, I new to this and haven't been taught exception handling yet but I would like my program to run without crashing when someone mashes the keyboard. I have declared an int x, and I don't want my program to crash when user inputs an char or more than 10 … Software Development c++ | |
Hey everyone! I've been trying for a couple of days now to make a function and it's driving me crazy. I need a function that takes a set of numbers in an array, for example: int array[]={4,3,5,7} and produce another array with all possible combinations of those numbers, or just … Software Development c |
The End.