Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
50% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
Ranked #4K
~8K People Reached
Favorite Forums
Favorite Tags
Member Avatar for tensity

This is the first program for a class that I am taking. I am having trouble creating the classes. We were only taught briefly on the subject and then told to complete this project. I guess my first question is how should I set my class "deck" and "card" up? …

Member Avatar for Hunter_2
0
2K
Member Avatar for tensity

I am trying to use the getParent method of the File library. Here is the code I am working with, but I am getting a null string: public class MyCode { public static void main (String[] args) { File f = new File(""); String name = f.getParent(); System.out.println(name); } } …

Member Avatar for JamesCherrill
0
508
Member Avatar for mahabelg

i'm trying to enter a string phrase and store its last word in an Array, if the word is palindrom then a message will showit

Member Avatar for iamthwee
0
313
Member Avatar for klika

So i have to write a c++ program for the Graeffe's square root method I have am stuck here when i have this formula transform into c++ code, the formula is on the link The code works particulary, the (elem[j-1]*elem[j+i]) doesn't work, it's beeing ignored and i don't know why... …

Member Avatar for tensity
0
1K
Member Avatar for tensity

I am creating a doubly linked list in fortran. Pretty much everything is working correctly. Although, I am having one issue... I build the list properly, but when printed to the screen, I get jumble for the first and last lines. Here is my code DO WHILE (.NOT. quit .AND. …

Member Avatar for tensity
0
460
Member Avatar for tensity

I am trying to create a text based graphing program and I am running in to some trouble. My trouble isn't so much with the programming its with one particular algorithm in creating the points. So, here is sample of what the graph will look like with points included. (y …

Member Avatar for tensity
0
310
Member Avatar for kamalashraf

#include<iostream> using namespace std; void getdata (int a[], int size); int main () { int size=10; int a[size]; getdata (a[], size); return 0; } void getdata (int a[], int size) { for (int i=0; i<size; i++) cin>>a[i]; }

Member Avatar for deceptikon
0
144
Member Avatar for tensity

I am trying to force the user to input a polynomial in the following format: (num)x^2+or-(num)x+or-(num) I have labeled my error messages with 1 2 3 and 4. When I input something like 3204723094823094823094829, I do not get an error and I should, due to not finding "x^2" in the …

Member Avatar for Moschops
0
111
Member Avatar for tensity

I am having trouble trying to get my code to work. If I pick selection 1 or 2 the cout statements execute but it does not wait for the cin and the program closes. #include <iostream> #include <cstdlib> #include <string> #include "poly.h" using namespace std; void enterPoly1(Polynomial&); void enterPoly2(Polynomial&); void …

Member Avatar for tensity
0
249
Member Avatar for tensity

I was wondering how one might go about the following: I am reading in data from a file using `getline(inputFile, tempString)`. Some of this information has to stay in string format, and other information must be converted to floats, ints, etc. I anticipate there being a problem if there is …

Member Avatar for deceptikon
0
153
Member Avatar for xNeverLetGo

I'm new to C++ and I'm having so much trouble with this problem. I honestly don't know what I'm doing wrong, I've tried everything but I still can't seem to make the program work. This is the problem: Write a program that reads in ten whole numbers and that outputsthe …

Member Avatar for xNeverLetGo
0
1K
Member Avatar for tensity

I am trying to populate a vector of strings and then remove any duplicates within that vector. Here is what I have so far. I am getting an error saying: Error 2 error C2064: term does not evaluate to a function taking 2 arguments . void removeDup() { vector <string> …

Member Avatar for vijayan121
0
318
Member Avatar for tensity

My objective is to read in a line from a text file, then search that line for a particular set of characters/numbers, and finally, if the line contains the particulars, write the line to another file. I am fine with all of the coding, except the part of searching the …

Member Avatar for Ancient Dragon
0
99
Member Avatar for tensity

Hello, I am trying to read text from a simple text file. The text file contains a list of emails and zipcodes, formated as follows: email@site.com;zipcode where zipcode is 5 integers. I am having an issue with the getline function, my error is "no instance of overloaded function". Could someone …

Member Avatar for tensity
0
212
Member Avatar for tensity

#include <iostream> #include <cmath> #include <iomanip> using namespace std; int main() { float annualIntRate, principle, monthlyPayment, monthlyIntRate, totalAmt, intPaid; int yearsBorrowed, numPayments; cout << "This program computes information associated with a loan" << endl; cout << "Please input the Annual Interest Rate:" << endl; cin >> annualIntRate; cout << "Pleast …

Member Avatar for tensity
0
123