132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for guy40az

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++
Member Avatar for guy40az
0
95
Member Avatar for Mac.Z

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++
Member Avatar for iamthwee
0
296
Member Avatar for nnobakht

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 …

Software Development app-store java
Member Avatar for iamthwee
0
106
Member Avatar for Lardmeister

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
Member Avatar for mawe
0
142
Member Avatar for pranavdv

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
Member Avatar for Kees Baltus
0
150
Member Avatar for Romillywinter

: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
Member Avatar for cuzintone
0
229
Member Avatar for sakura_fujin

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 …

Software Development c++ ios
Member Avatar for vijayan121
0
173
Member Avatar for jash00

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
Member Avatar for Ancient Dragon
0
130
Member Avatar for h_howee

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
Member Avatar for h_howee
0
125
Member Avatar for Paladine

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
Member Avatar for vuyiswamb
0
196
Member Avatar for ongxizhe

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, …

Software Development c++ email
Member Avatar for ongxizhe
0
118
Member Avatar for bala24

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
Member Avatar for bala24
0
78
Member Avatar for Jusa

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 …

Software Development ide python
Member Avatar for Jusa
0
2K
Member Avatar for potato_bum

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
Member Avatar for Ancient Dragon
0
110
Member Avatar for RisTar

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
Member Avatar for thekashyap
0
174
Member Avatar for Navrex

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++
Member Avatar for Navrex
0
176
Member Avatar for satish.ambition

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
Member Avatar for satish.ambition
0
94
Member Avatar for n.aggel

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
Member Avatar for WaltP
0
90
Member Avatar for husslela2

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
Member Avatar for husslela2
0
116
Member Avatar for mrjoli021

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++
Member Avatar for mrjoli021
0
98
Member Avatar for TingTing

[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
Member Avatar for TingTing
0
141
Member Avatar for Rickenbacker360

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++
Member Avatar for Rickenbacker360
0
122
Member Avatar for urmamaslover

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
Member Avatar for urmamaslover
0
102
Member Avatar for mouigher

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
Member Avatar for mouigher
0
461
Member Avatar for sneekula

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 …

Software Development gui python tkinter
Member Avatar for sneekula
0
758
Member Avatar for mastern200

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++
Member Avatar for Ancient Dragon
0
157
Member Avatar for lukis

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
Member Avatar for lukis
0
151
Member Avatar for Blujacker

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
Member Avatar for Blujacker
0
1K
Member Avatar for Slavrix

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++
Member Avatar for Slavrix
0
106
Member Avatar for fatboysudsy

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
Member Avatar for Ancient Dragon
0
114
Member Avatar for molze

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
Member Avatar for molze
0
129
Member Avatar for liz517

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
Member Avatar for jrcagle
0
128
Member Avatar for hacker_hack

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
Member Avatar for grunge man
0
88
Member Avatar for tjay

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++
Member Avatar for ~s.o.s~
0
183
Member Avatar for ice_tea_lemon

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++
Member Avatar for John A
0
150
Member Avatar for Sabi_146

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
Member Avatar for ~s.o.s~
0
87
Member Avatar for hbk619

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
Member Avatar for hbk619
0
2K
Member Avatar for tjay

[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
Member Avatar for Aia
0
153
Member Avatar for rwagnes

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 …

Software Development c c# c++
Member Avatar for rwagnes
0
169
Member Avatar for ericelysia

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++
Member Avatar for vijayan121
0
138
Member Avatar for KimJack

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
Member Avatar for KimJack
0
991
Member Avatar for dabbakal

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
Member Avatar for John A
0
936
Member Avatar for laddu

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
Member Avatar for laddu
0
220
Member Avatar for mrjoli021

I have a function that returns an int. How can I call it from the main function.

Software Development c
Member Avatar for mrjoli021
0
89
Member Avatar for DDoSAttack

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
Member Avatar for DDoSAttack
0
134
Member Avatar for grunge man

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
Member Avatar for grunge man
0
126
Member Avatar for grunge man

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
Member Avatar for grunge man
0
123
Member Avatar for iqbal

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 …

Software Development c opengl
Member Avatar for John A
0
122
Member Avatar for rugae

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++
Member Avatar for John A
0
143
Member Avatar for aPPmaSTer

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
Member Avatar for aPPmaSTer
0
110

The End.