Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
33% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
1 Commented Post
0 Endorsements
Ranked #2K
~9K People Reached
Favorite Tags
Member Avatar for ohnbabygal

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

Member Avatar for cnplane
-1
160
Member Avatar for jasweb2002

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

Member Avatar for Jean <Brasil>
0
381
Member Avatar for deusieeee

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 …

Member Avatar for omeralper
0
609
Member Avatar for Darko

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 …

Member Avatar for jkertel
0
155
Member Avatar for jasweb2002

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.

Member Avatar for Paul.Esson
0
320
Member Avatar for jasweb2002

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 …

Member Avatar for paradox814
0
146
Member Avatar for jasweb2002

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 …

Member Avatar for vegaseat
0
126
Member Avatar for jasweb2002

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 …

Member Avatar for jasweb2002
0
81
Member Avatar for shermili

#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; …

Member Avatar for alc6379
-1
226
Member Avatar for rangers10

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 …

Member Avatar for alc6379
0
158
Member Avatar for jasweb2002

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

Member Avatar for Dave Sinkula
0
240
Member Avatar for see_moonlight

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 ) ;

Member Avatar for britt_boy
0
877
Member Avatar for jasweb2002

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.

Member Avatar for Dave Sinkula
0
105
Member Avatar for nowmn

sorry my bad english and maybe if u can write this source so give me ? (use a stack and tree) :cool:

Member Avatar for alc6379
0
87
Member Avatar for sweety engineer

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 …

Member Avatar for jasweb2002
0
138
Member Avatar for five2nd

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 …

Member Avatar for jasweb2002
-1
182
Member Avatar for old lady

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 …

Member Avatar for jwenting
0
158
Member Avatar for Alfy

#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() …

Member Avatar for jwenting
0
162
Member Avatar for Der_sed

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 …

Member Avatar for Der_sed
0
107
Member Avatar for SelArom

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 …

Member Avatar for Chainsaw
1
159
Member Avatar for toadie2004

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 …

Member Avatar for jasweb2002
0
98
Member Avatar for Intro2Prog

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 …

Member Avatar for Narue
0
109
Member Avatar for Programming sta

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!!!!

Member Avatar for jasweb2002
0
76
Member Avatar for dontcare

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 …

Member Avatar for jasweb2002
0
109
Member Avatar for hill0ster

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 …

Member Avatar for Dani
0
166
Member Avatar for sweetbaby

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

Member Avatar for jasweb2002
-1
113
Member Avatar for jasweb2002

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 …

Member Avatar for jasweb2002
-1
77
Member Avatar for lost_c++_dude

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 …

Member Avatar for frrossk
0
412
Member Avatar for jasweb2002

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 …

Member Avatar for frrossk
0
94
Member Avatar for lost_c++_dude

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 …

Member Avatar for jasweb2002
0
136