- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
Re:
im tryin to compare the time it takes to calculate squareroot by the stdlib function and recursive function. everythin's workin good except the TIME thing. its givein me the same time. wat is wrong??? plz help me find it.. thank you guys! #include<iostream> #include<iomanip> #include<cmath> #include<cstdlib> #include<ctime> using namespace std; … |
|
Hey everyone, This is my first time here just to let ya know. Hopefully you can help me. :D The language is C++. I am currently working on a file that consists of functions to manipulate doubly linked lists from the main program. After writing several function everything was fine. … |
|
Re:
I have a assignment that we are to write two clases (Ballot, Votes). We are to use an array of Ballot type to hold information for each particular Ballot. The Votes class is used to mark the ballots, count up all to votes, delete a ballot etc. I have the … |
|
Re:
hey all :cool: !! me a new member here.. jsu joined up a couple of weeks back.. anyways peeps me is in fy B.E .CSE .. tho i am not a good programmer i dunno y i took it up... but i still like it... :D as all do i … |
|
Hi everyone Basically I want to set-up a linux machine at home so I can do my programming here. Any recommended distros that are fairly easy to run and come with a good compiler for c++? Thanks. |
|
Hey everyone, Alright, my project requires that I write a program to demonstrate my understanding of class inheritance. Problem is the teacher wants us to use Java, something I have never used and the teacher did not even give us a crash course in. Right now I am trying to … |
|
Hi everyone, I need to write a compiler with Yacc that will basically perform minor algebraic commands. Here is the code so far for the Yacc part. [code] %token INTEGER VARIABLE READ WRITE %left '+' '-' %left '*' '/' %{ #include <stdio.h> void yyerror(char *); int yylex(void); int sym[26]; int … |
|
Hi everyone, I need to write a compiler using Yacc and I have encountered a problem. Since some of the code is C i thought I would try here. The problem occurs at one line in the following program. Once running, everything runs fine till this line is hit, then … |
|
Re:
#include <iostream.h> int main() { int ID,Choice,Addition,Subtraction,Multiplication,Division,Exit; char Firstname[10]; char Lastname[10]; cout<<"Enter your Firstname\n"; cin>>Firstname; cout<<"Enter your Lastname\n"; cin>>Lastname; cout<<"Enter your ID\n"; cin>>ID; cout<<"1. Addition\n"; cout<<"2. Subtraction\n"; cout<<"3. Multiplication\n"; cout<<"4. Division\n"; cout<<"5. Exit\n"; cout<<"Enter your Choice:\n"; cin>>Choice; while (Choice != 5) { switch(Choice) { case 1: cout<<"You have selected Addition\n";Addition;break; … |
|
Re:
hi, just a quick question i have created a program to input 6 numbers, but the problem is that i need it to subract the highest and lowest numbers then add the remaining numbers left. im new to "c" and cant figure this out i just need someone to point … |
|
I am writing a program that will build a graph and then find the lowest costs between any given vertices. I have the program building the graph just fine, but now I just started to write the part that will find lowest costs and I get a seg fault error. … |
|
Re:
How can i find out the Max and Min value from a Vector, what's the function can i use to do that? max_find() e.g. double x[]; double x_max; double x_min; x_max = max_find( x ); x_min = min_find ( x ) ; |
|
I need to set a variable to infinity or the highest possible number for the computer. But I have no idea how to do this. I did this a little while dabbling in assembly but I am unsure how to do this in C++. Thanks. |
|
Re:
sorry my bad english and maybe if u can write this source so give me ? (use a stack and tree) :cool: |
|
Re:
hi every body can any one help how to start with this project using the c++ ADT class ,write aprogram that simulates the operation of telephone system that might be found in asmall business, such as your local pizza parlor.Only one person can answer the phone(aingle server queue). but there … |
|
Re:
hello there..! can somebody help me how to call this function...the program function will appear when i select the case no 3 at swich code... however there is an error appear...bytheway is it correct i using ` "void loan_schedule ();"`..to Generate loan payment schedule coding...when i choose number 3 at … |
|
Re:
I've written programs for averaging lists of exam grades but throwing in the percent is throwing me for a loop. I don't know how to handle this information. Any help will be greatly appreciated. > //Write a program that asks the user to enter a student's midterm > //and final … |
|
Re:
#include <stdio.h> #include <string.h> int i,k,type; char buffer[100],l,line[50]; struct student { char name[20]; int age; int id; }; struct student st[2],temp,*sp; int sort(struct student *p) { *sp=st[0]; p->age; for(i=0; i<l; i++) { if(st[i].age<st[i+1].age) break; else if(st[i].age>st[i+1].age) { temp=st[i]; st[i]=st[i+1]; st[i+1]=temp; }break; } printf("\t\tsorted student information\n--------------------------\n"); printf("%d",st[i].age); return(0); } int main() … |
|
Re:
the typical question which ask user to display THIS * ** *** **** ***** ****** ******* ******** ********* ********** using a single cout<<"*" & cout " " with the help of [B]for loops ONLY[/B]. :) ive come to this this prgram but can anyone tell me where i am going … |
|
Re:
it's really frustrating to be looking in my textbook and see something like [CODE]void apd(vector& a, int j, int n) for (j = vector[a]; n > j; j--) j++; [/CODE] I would change it to something like [code] void functionName(vector& theArray, int position, n target) [/code] that way I know … |
|
Re:
This is my project: Read the data one line at a time and store them in two different arrays. Pass the first array to a function that sorts the array in ascending order using selection sort. Pass the second array to a function that sorts the array in descending order … |
|
Re:
1) Read an integer # from the file [I]balance.dat[/I] that represents the balance on your checkbook (Assume integer #'s only) 2)let the user enter an amount to write a check. 3)If there is enough balance to write teh check then display the message ([B]OK to write check[/B]) if the check … |
|
Re:
i have been asked to write a program to detect 3 classes of virus and remove them in any language of my choice but i do not have an idea how to do this and would much appreciate if some one please advise me!!!! |
|
Re:
The program is supposed to pen and read a file with student’s scores for a semester. Display a chart with the average and median scores for each section and each lab. Example: CS 111 this semester has 7 sections and 10 labs. The output will be a chart with 7 … |
|
Re:
I was wondering if anyone knew of a good community college in southern California that has a great computer science department. I have taken two courses at Los Angeles Valley College and am not impressed with their computer science department. They seem to have limited courses and their professors seem … |
|
Re:
hi, all. i have some problems to do array. i am supposed to get the average and sum in given number of array. but, i only got 1 in my all answers. please, tell me what was wrong in my program. thank you. //hw for array #include <iostream> #include <iomanip> … |
|
Hey everyone, I just started writing this program when I hit a problem with the destructor. Me and my buddies in the lab could not figure out what is going on. The error said something about symbol referencing error and refers to the destructor. The program is set in three … |
|
Re:
I've been working on this for hours I know the errors are staring me in the face but I just can't see them. Any help would be greatly appreciated. //prb01-1.cpp //This program calculates the total surface area of a pool #include <iostream.h> #include<iomanip.h> //using namespace std: int main() { const … |
|
Hey Everyone, I need to write a program where the first half builds what is basically a file directroy tree. Files and their paths will come in from file in the form... /program/file/whatever ... and be read into a string. Problem is I don't know how to manipulate strings very … |
|
Re:
I know I am missing a big part of this program but for some reason my mind is not working at all tonight. I need to: > Write a program that asks the user to enter the duration of a baseball game > by first asking for the number of … |