199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for spankyg

I have arranged this code in many different ways. I can't seem to make it simply print the array. I have read alot about pointers and arrays, but the explanations are scetchy at best. What exactly are the rules for properly pointing to an array? #include <iostream> using namespace std; …

Member Avatar for John A
0
125
Member Avatar for need.help

So I wont pretend it's not HW..it's a HW question.. it says: Write a program that computes the approximate sine of an angle (θ) by using the following infinite series: Approximate sine of θ = θ – (θ^3 /3!) + (θ^5 /5!) - (θ^7 /7!) + (θ^9 /9!) … (other …

Member Avatar for John A
0
125
Member Avatar for jan1024188

Hello again, I was working on Linux platform for a lot of time now and now I am moving to windows (because of job). Today I was accepted to wow project, and I have to start with developing apps for windows. I have a doubt. I dont know what to …

Member Avatar for jan1024188
0
93
Member Avatar for darylharkin

i'm currently in the middle of a Java programming assignment, and having quite a spot of bother! for some reason, when i run my code (which has no visible errors), a small window appears with the words Swing Example in blue italics. anyone got any idea what coud be causing …

Member Avatar for darylharkin
0
79
Member Avatar for raj157

for regular series caluclation we could use this [CODE]{ double summand = 1; int n = 1; double sum = 1; do { summand = summand * x / n; sum = sum + summand; n--; } while (summand > 0.00001); return sum; }[/CODE] i.e for e^x= 1+x+(x^2)/2! + (x^3)/3! …

Member Avatar for need.help
0
360
Member Avatar for sbenware

I'm having a problem with my search function for my linked list. It has to do with my foodItem object. I'm not sure what to replace it with since it's part of the function protocol. The previous version of this code used an array and part of my problem is …

Member Avatar for sbenware
0
472
Member Avatar for Monyet

I want to make a program with C# that can locate a store that we want dependent on the (X, Y). So for example: if I put (1,2) it will say that this is the nearest store. Do you guys have any idea on how to do this? I'm fresh …

Member Avatar for iamthwee
0
180
Member Avatar for algo_man

I've two algorithms and I want some one to explain the time complexity for each one. First Algorithm: --------------------------------- [code] m = n for i=1 to n if m is even then for j=1 to log n count++ end for end if m=m/2 end for [/code] ---------------------------------- What is the …

Member Avatar for Infarction
0
134
Member Avatar for raj157

in a simulation program like below Program the following simulation: Darts are thrown at random points onto a square with corners (1, 1) and (−1, −1). If the dart lands inside the unit circle (that is, the circle with center (0, 0) and radius 1), it is a hit. Otherwise …

Member Avatar for ~s.o.s~
0
133
Member Avatar for addicted

i just started working on structures and i am having this problem: i created a structure "point" thus : [code] struct point { double x,y; }; [/code] i created another structure "rectangle" that contains a point as the origin like this: [code] struct rectangle { point origin; double width, height; …

Member Avatar for addicted
0
108
Member Avatar for IwalkAlone

Q.Write a function to accept upto 25 numbers and display highest and lowest number along with all the numbers. Solution I tried [code=c] #include<stdio.h> #include<conio.h> void main() { int array[25],low,high; int i; clrscr(); do { printf("Enter a number(0 to terminate)\n"); scanf("%d",&array[i]); }while(array[i]!=0); i=0; low=high=array[0]; while(array[i]!=0) { if (low>array[i]) low=array[i]; else …

Member Avatar for IwalkAlone
0
201
Member Avatar for desiguru

I am trying to build a website that will provide visitors an option to view almost all of the pages in multiple language. Is there any PHP CMS that will allow me to do that?

Member Avatar for julian2003
0
91
Member Avatar for hlnren

HI everyone, i need to enter all those values and add them up. but have some trouble storing numbers to a array list. plz help~~! [import java.util.*; public class array { public static void main (String []args) { Scanner sc= new Scanner (System.in); int value; System.out.print("How many values are in …

Member Avatar for keya_datta
0
113
Member Avatar for jan1024188

What do you think is better for making applications? I like QT API verry much, but I dont know how compatible is with a system . I dont like VC++ because I can only use it on windows. Please help me to decide.. What do you think?

Member Avatar for ~s.o.s~
0
249
Member Avatar for metkillerjoe

I have been trying to get a simple linear equation to draw. I can draw the axis fine but the equation will not draw. I think one would need a save/refresh function(s), but I don't know how to go about doing this: [code] pw = pictureBox1.Size.Width; ph = pictureBox1.Size.Height; w …

Member Avatar for metkillerjoe
0
1K
Member Avatar for shishir

hello everyone.i have just started programming in EJB.i am tring to make an application for online banking system.During the compilation, i am getting the error of missing return statement in all functions where retrun type is String.i am trying to get the output in a JSP page....here is one of …

Member Avatar for peter_budo
0
148
Member Avatar for hbmarar

Hi, I have created a commenting system which could be used for commenting articles posted. The trouble is that after doing all the development I am stuck with pagination.The architecture to store comments is to hold in filesystem in the following way. Article {Folder 1} Reply 1 Reply to 1 …

Member Avatar for hbmarar
0
101
Member Avatar for staneja

I am new to JSP and was trying a very simple program that adds/Divide/multiply/Subtract 2 numbers I am taking two numbers from a web page and as per the button pressed performing the action on JSP page. I have kept a vraiable c for output If i write int c=0 …

Member Avatar for staneja
0
103
Member Avatar for flageolet

I want to create several files at once containing the same data. Is this possible? I tried using a variable in the file pointer and file name: [CODE] int tel; for (tel = 0; tel < 200; tel++) { FILE *bestand_patienten[tel] = fopen("patienten/patientent[tel].txt", "w"); fprintf (bestand_patienten[tel], "hallo"); } [/CODE] Didn't …

Member Avatar for flageolet
0
68
Member Avatar for rdsii64

I have just completed a mortgage calculator for my intro to C++ programming class. The code compiles and meets all the instructors requirements. My future assignments will build on top of previous ones. So what I am asking for are opinions on how to write better code. My goal is …

Member Avatar for WaltP
0
114
Member Avatar for peter_budo
Member Avatar for peter_budo
0
210
Member Avatar for nottoshabi

I need to fallow these directions for homework but I'm stuck on some things: [code] // open output filestream for appending // get valid file name ofstream fout( getOutFileName().c_str() ); // if the file opened successfully if ( fout.good() ) { cout << " The file was succesfully opened." <<endl; …

Member Avatar for John A
0
190
Member Avatar for n.aggel

hi, i want to develop a console interface for a program that i made{a university project}...... so i was wondering if anyone {with expertise in this matter} can supply me with links or examples..... For example , i am searching for ascii art...and also for ways to create menus with …

Member Avatar for nottoshabi
0
113
Member Avatar for petzoldt01

Hello, I am attempting to create a session class. I want it to be able to store all kinds of data about the current session, such as member information, authentication, application data, or any other structures that would be unique to any given user. If I were to create a …

Member Avatar for digital-ether
0
119
Member Avatar for nnobakht

Hey guys, i jsut got this assignment and i have 1 week to implement it but i have no idea where to start. The link to the question is [URL="http://www.cs.sfu.ca/%7Emitchell/cmpt-126/a2/a2.pdf"]http://www.cs.sfu.ca/~mitchell/cmpt-126/a2/a2.pdf[/URL] and i have also attached it as a pdf. the Stack class refered to in the assignment is [code] class …

Member Avatar for jwenting
0
116
Member Avatar for gackiem

hi everybody, I've got some troubles in C and i need your help In C: (test.c) Suppose i include <unistd.h> and i call function "open" ==>> it run OK In C++: (test.cpp) I'm using a framework (e.g. RTM) which is function "open" has already in it. My problem is: althought …

Member Avatar for gackiem
0
95
Member Avatar for Jishnu

Hello eveyone, I am working on a program that uses the graphics.h library functions and the 0x33 mouse interrupt. When I click at a particular place on the screen, the graphics nearby the mouse are saved and displayed on the new screen (that appears due to the mouse click) when …

Member Avatar for ~s.o.s~
0
153
Member Avatar for nottoshabi

What would be the pusedo code for a program that would write data to file? Would it look something like this? Declarations of type of data you want to enter. Open the file, you want to write to. Check if the file opened. If file did not open try again. …

Member Avatar for WaltP
0
131
Member Avatar for san_fran_crisko

Hi, I am trying to store details in a Vector and then recall them using different search categories. I'm getting no errors but the details I enter are either not being stored or not being recalled. I don't know what one it is. I attached the code rather than copy …

Member Avatar for san_fran_crisko
0
110
Member Avatar for san_fran_crisko

Hi, I cannot for the life of me figure out why I keep getting the error message, "cannot find symbol method methodname()" when I try to call methods from another method. I have tried changing the main method so its not static but it makes no difference. Anyone who could …

Member Avatar for san_fran_crisko
0
147
Member Avatar for RisTar

Hi , im trying to create a program that could delete number from an array and resize the array to the correct size . Array[0] = 32 Array[1] = 30 Array[2] = 40 Array[3] = 31 Array[4] = 61 Deleting the number 40 New array Array[0] = 32 Array[1] = …

Member Avatar for RisTar
0
113
Member Avatar for missedthepit

I am designing a 2 player car racing game, and I need to be able to control both cars at the same time from the keyboard (using the arrow keys for one and a,s,d,w for the other) I can get them to work when the other one is not being …

Member Avatar for missedthepit
0
1K
Member Avatar for Bahama.Mama

:-| I am desperate... Can someone help me to debug this program.. It is a dynamic allocation file ..... > Write a program that will open a sorted text file, compute how many lines are in the text file, and then create an index that will tell at which byte …

Member Avatar for Ancient Dragon
0
145
Member Avatar for gamodg

input: source:1.1.2.3:?: destination:1.2.3.4 data:shfg hshsg h am trying to extract `1.1.2.3` from `source:1.1.2.3` please suggest :!: while(!mod.eof()) { mod.getline(buf,100); if(strstr(buf,"Source")) { w=strchr(buf,':'); strcpy(str,*w); } }

Member Avatar for Ancient Dragon
0
109
Member Avatar for JadedTortoise

OK I am wondering Can you make a variable hold an operator. Such as say +, -, / etc... And if so can that variable be used to replace an operator in an equation? for instance char a = "+"; int b = (2 a 3); thoguh that doesn't work …

Member Avatar for Ancient Dragon
0
117
Member Avatar for radhikaDS

hi can anyone please write me a shell script that checks whethera filesystem is full or not hoping to get replies. thanks in advance...

Member Avatar for thekashyap
0
75
Member Avatar for notfornothing21

Hi -- I am writing a program taht is supposed to input 12 integers into a program, sort them as they are entered, and then Print out the Sorted list. Second step is compute the average. I have done all that. THIRD is to delete all the integers that are …

Member Avatar for WaltP
0
143
Member Avatar for mikki2

hi, i just started a class called Compiler Principles, and i'm not really sure how to search for online notes about it. my searches usually give me pages with Compiler Construction or Assembly Language. the book i'm using is a pdf i accidentally downloaded months ago when i was looking …

Member Avatar for happygeek
0
96
Member Avatar for Earendil

It's my fourth day with <Accelerated C++> and I have to admit that this is WAY over my head. I picked this book because of the sticky "C++ Books" but really... this was NOT meant for beginners. (or is it just me?) Okay, enough of the whining. By taking joeprogrammer's …

Member Avatar for Ancient Dragon
0
228
Member Avatar for vicky_dev

Check this code: [code=c] float velocity, acc, time; . . velocity = velocity - acc * time if( velocity == 0.0 ) { // Do something } else { // Do something else } [/code] This code isn't always workng. When the velocity is supposed to be exact 0, it …

Member Avatar for vicky_dev
0
84
Member Avatar for rinkuchoudhury

hi I am working in asp.net amd vb.net I want to show and disappear images by taking and bringing out mouse from a menu control how to do this how to use onmouseover for an as.net control in asp.net 2.0 plz guide

Member Avatar for lalatok
0
90
Member Avatar for bobcats

Hi guys I am really having a hard time with C programming. Our lectures are very fast and not beneficial to those with non-C backgrounds. We were required to write a code for counting frequency of words from stdin and then listing them in descending order with those with equal …

Member Avatar for bobcats
0
353
Member Avatar for mahe4us

Hi, I have confused in the terms of www and www2. For what purpose really www and www2 are used in webservers. I have searched but Iam not found a good result. Can anyone tell why the term www, www2 and www1 are used in webservers and for what purpose? …

Member Avatar for DimaYasny
0
134
Member Avatar for Dominicc2003

Hi guys, I need some help with setting up and using joomla on my site. If you wish to help me, this is some stuff you should know: I want someone to help me for free but I will still pay every now and then if they do something for …

Member Avatar for Sierrapat
0
115
Member Avatar for olams

Hi everyone. I am new to C++ and struggling badly. This is the first course i have ever struggled with in my life. I have problems with setting up programs and seeing the logic. Does anyone have any tips for understanding C++, and is there any good textbook or website …

Member Avatar for olams
0
118
Member Avatar for noora000

Hello, Can you please help me I want to know the functions used to save a data in access database, I have the code to save in a file but is it possible to save in a database in C language. Reegards, Noora

Member Avatar for John A
0
112
Member Avatar for a1eio

Hi, I want to create a little Frame class that has two labels built in, the code snippet below is the class. [CODE=python] class DescriptionFrame(Frame): def __init__(self, master, title="", text=""): Frame.__init__(master) self.title = title self.text = text self.titleLabel = Label(self, text=self.title, font=("Times", 12, "underline"), fg="darkred") self.titleLabel.grid(row=0, column=0, sticky=W) self.mainLabel = …

Member Avatar for a1eio
0
940
Member Avatar for Tauren

Uhh well, I was just wondering if C++ and visual C++ are any diffrent

Member Avatar for John A
0
126
Member Avatar for jan1024188
Member Avatar for mrjoli021

I have to write a program sort of like a hangman game. It will ask the user for a word and them prompts the user for a letter. I will tell the user how many time the letter is in the word and continue to ask for another letter. any …

Member Avatar for mrjoli021
0
77

The End.