Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Jesse C
What does this mean? (from arabic to english i guess) And the picture too.?
Qul huwallahu ahadd# Allahusshomad# Lam yalidd wa lam yuladd, wa yakun llahuu kufuwan ahadd# (Q.S. Al-Ikhlas)
1 AnswerLanguages7 years agoEver experienced this?
I've been in several relationships, but am single now. I be only ever been in love with one girl for the past 6 years. No matter who I date I always remember her. We had a major falling out approximately a year after getting to know each other. Do you think my feelings toward her are because I've never felt closure toward her? Or do you think it is because I have an idealized perspective of who I think she is?
I really have no clue, I've tried other women, alcohol, and other things to fill this piece of me. But somehow I still feel that I love her. Should try and win her over or continue life searching for a solution which may or may not exist?
3 AnswersSingles & Dating7 years agoyahoo messaging requests?
I get quite a few of these. Does this happen to you? I'm pretty sure they are all fake though! I sometimes accept them, because if it was a real person i think it would be cool to know about them.
4 AnswersFriends8 years agoyahoo messaging requests?
I get quite a few of these. Does this happen to you? I'm pretty sure they are all fake though! I sometimes accept them, because if it was a real person i think it would be cool to know about them.
1 AnswerOther - Yahoo Messenger8 years agoI know delta power distribution systems dont require a neutral conductor, but why? please use MATH to explain.?
delta power distribution = (3 wire power distribution) obviously
2 AnswersEngineering10 years agofind apparent power per phase?
in a general sense i have seen for 3 phase systems that finding VA = IV so if im looking for the value of va per phase is it just that value /3?
and does The correct formula hold for both delta and wye configurations
2 AnswersEngineering10 years agoAnyone know where i can find a detailed writeup on makefiles(specifically targeted to beginners)?
i am using c++ idk if that makes any difference or not....
2 AnswersProgramming & Design1 decade agosince bool variables are technically a 1 or 0 can it interact with int variables?
it seems like it could because 1 and 0 are both integers. But at the same time they are conflicting data types...
2 AnswersProgramming & Design1 decade agoclass compilations in c++ general questions?
A header file for a class name AutoSales is titled AutoSales.h
It contains the function PROTOTYPES and data information. Which of course is designated public and private respectfully.
If you're functions are in a file AutoSales.cpp do you have to compile each of the files seperately?
Because that is what i am trying to do but i am getting the following error.
/usr/lib/gcc/x86_64-linux-gnu/4.3.2/../../../../lib/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status
if you can give me some sort of hint to solve this issue at least know where to start that would be a great help
1 AnswerProgramming & Design1 decade agoC++ compilation errors?
i have been trying to compile the back bone of my program(class structure) but i am having trouble with my copy constructor and the dynamic allocation of memory. I don't really know what i am doing at this point but i feel i am pretty close.
I think that these errors are linked.
The line numbers wont do you much good but I will mark the points where i am getting my errors.
I am not going to post the entire code either.
// header file AutoSales.h
#include<iostream>
#include<fstream>
#ifndef AUTO_H
#define AUTO_H
using namespace std;
class AutoSales
{
private:
struct Sold
{
double Buy_Price;
int Sales_Rep_Id;
};
struct Auto
{
Sold purchased;
int auto_id;
int Model_Yr;
int Model_Cd;
double Sell_Price;
};
fstream Autoinfo;
int MAX;
//ERROR error: expected unqualified-id before ‘auto’
//ERROR expected ‘;’ before ‘auto’
Auto *auto;
int InitNum;
int count;
public:
AutoSales(int, int, fstream); // a constructor must have a prototype of this format
AutoSales(fstream);
AutoSales(const AutoSales &);
void View();
void Update();
void Add();
~AutoSales();
};
#endif
//---------------------------------------------------------------------------------------------------------------------
//in AutoSales.cpp
#include "AutoSales.h"
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <iomanip>
using namespace std;
AutoSales::AutoSales(int max,int initnum, fstream Autoinfo)
{
Autoinfo.open("Auto.data",ios::in);
initnum = 0;
InitNum = initnum;
max = 20;
MAX = max;
//ERROR error: expected unqualified-id before ‘=’ token
auto = struct new Auto[MAX];
if(Autoinfo.good())
{
for(count = 0;!Autoinfo.eof(); count++)
{}
}
else
{
cout<< setw(30) << "Corrupt input file!"<<endl;
exit(-1);
}
Autoinfo.close();
}
//COPY Constructor
//ERROR expected `)' before ‘const
//ERROR expected unqualified-id before ‘const’
AutoSales(const AutoSales &object)
{
Autoinfo.open("Auto.data",ios::in);
initnum = 0;
InitNum = initnum;
max = 20;
MAX = max;
auto = new struct Auto[object.MAX];
if(Autoinfo.good())
{
for(count = 0;!Auto.data.eof(); count++)
{}
}
else
{
cout<< setw(30) << "Corrupt input file!"<<endl;
exit();
}
Autoinfo.close();
}
2 AnswersProgramming & Design1 decade agoprogramming c++ using arrays of structures in functions, problem i think is ifstream but not sure how to fix?
include <iostream>
#include <string>
#include <sstream>
#include <fstream>
using namespace std;
const int MAXJ = 4;
const int MAXS = 20;
const int MAXC = 6;
struct Score
{
int judge_id;
double value;
};
struct Student
{
Score judge;
int cat_val;
int stud_id, level;
double weight, avgscore;
};
void get_data(struct Student contestant[MAXS], int counta, ifstream PianoRecital)
{
while(PianoRecital && (counta < MAXS))
{
PianoRecital>> contestant[counta].cat_val
>> contestant[counta].stud_id
>> contestant[counta].level
>> contestant[counta].weight;
while(contestant[counta].judge.judge_id != -1)
{
PianoRecital>> contestant[counta].judge.judge_id
>> contestant[counta].judge.value;
}
counta++;
}
}
int main()
{
struct Student contestant[MAXS],
filler;
int counta = 0;
ifstream PianoRecital;
ofstream Report;
PianoRecital.open("PianoRecital.data");
Report.open("Report.out");
get_data(contestant, counta, PianoRecital);
PianoRecital.close();
Report.close();
return 0;
}
1 AnswerProgramming & Design1 decade agolooking for a specific manga which i forgot the name of description provided?
ok so i don't remember character names but i can give you a pretty good description of what goes on....
here goes:
okay so the main character became the head of the tribe suceeding his father the previous head of the tribe. i think they are called like the tribe of the wind or something, anyway, he becomes head of the tribe by killing a rival clans embodiment of god(buffalo) the tribe was the tribe of the plains. Also the head tribe of the wind is like in love with some chick who was apparently taken from their village and offered as a sacrifice to the death god. He is trying to get her back , but the last few chapters i remember reading the clan of wind people were destroyed by the plains people in retaliation for killing buffalo. the tribe heads best friend his is one of the few people left alive, and the god of the wind people find him and declare him to be the new head. yeah thats about all i remember sorry
2 AnswersComics & Animation1 decade agosegmentation fault C++?
im not familiar with giving the user an option to choose a file to use.
in my project, as you can see i am attempting to get the name of the file i am using pico editor
i created a file prog5 which contains my project and a data file called sewage.data
so bascially i want it to work with out a seg fault... i could have posted the entire code but i know for a fact that the error in this block of coding or either where the file is located.......
i am not wrong in thinking it should be in the same directory am i?
----------------------------------------------------------------------------------------------------------------------------
char file[MAX];
cout<<"Enter the name of the data file>";
cin>> file;
if(measurements.fail())
{
cout<<" The file doesn't exist"<< endl;
exit(0);
}
measurements.open("file", ios::in);
getData(measurements, array_data_in, count);
measurements.close();
if i get rid of of the "file" and the cin statements to which it relates to and directly write:
measurements.open("sewage.data", ios::in);
the entire program works perfectly
1 AnswerProgramming & Design1 decade agohow to copy an array of doubles to another?
i have two arrays one which contains data and another one into which i want to copy the original. And i want to do this with out a loop. isnt there some command able to do this? also if there is can you tell me the library it is in as well
2 AnswersProgramming & Design1 decade agocomputer programming error in C++, involving type conversions of int to int*(pointers)?
//first of all im not too familiar with the idea of pointers to begin with
ASSUME THAT ALL THE PROPER #include statements exist as well as, using namespace std;
CODE:----------------------------------------------------------------------------------------------------------------------------
/*
the purpose of this function is to "generate prime numbers" from 2 to n and then assign them to the
array. that array is then returned to int main.
*/
MAXSIZE = 1000;
void generate(int primes[MAXSIZE], int n, int& size)
{
int j,i, primes_2nd[MAXSIZE];
j=0;
for(i=2; i<=n; i++)
{
primes_2nd[j];
}
for(i = 0; i < sqrt(n); i++)
{
for(j = i+1; j < n && primes_2nd[i] != -1; j++)
{
if(primes_2nd[j] % primes_2nd[i] == 0)
primes_2nd[j] = -1;
}
}
for(i =0; i<n; i++)
{
if(primes_2nd[i] != -1)
primes[size] = primes[i];
size++;
}
}
int main()
{
int primes[MAXSIZE],
size = 0,
i= 0,
j = 2,
n;
cout <<"This program generates all prime numbers between 2 and n."<< endl
<< "Enter n> ";
cin>>n;
if(n > MAXSIZE)
{
cout<<"Are you kidding me? I don't feel like calculating a"<<endl
<<" number that large! Try something less than "<< MAXSIZE << ".";
exit(1);
}
generate(primes[MAXSIZE], n, size); //-----------------> ERROR invalid conversion from int to int*
// this error persists through my other functions as well but
// i figure i can fix them as soon as i find out how!
is_Prime(n);
sum(primes[MAXSIZE], size);
cout<< "The sum of" << arrayToString(primes[MAXSIZE], size);
return 0;
}
2 AnswersProgramming & Design1 decade agoPhysics and inductors should be easy?
LC oscillators have been used in circuits connected to loudspeakers to create some of the sounds of electronic music. What inductance must be used with a 7.3 µF capacitor to produce a frequency of 10 kHz, which is near the middle of the audible range of frequencies?
my attempt w = 1 / √(L•C) ------> rearrange to L = 1/( f^2 * C).
1 AnswerEngineering1 decade agocomputer science C++ easy concept question?
context: when using functions, and are passing by reference.
type func_Do_Something( type &b, type a)
{
cin>>variable;
variable = b;
}
int main()
{
//call
funct_Do_Something(x,y);
return 0;
}
i basically wanted to know when the pass by reference returned to main.
is it when the function is finished or is it immediately after the variable b gets a value.
dont worry about the program compiling. i know it wont, but i just need a concept answer thanks.
a swift response would be appreciated cus i want to go to sleep soon >_<
6 AnswersProgramming & Design1 decade agologic errors, boolean logic, if statements ONLY 120 LINES OF C++ CODE?
OKAY so basically this program is returning a false value for my boolean logic ( at least i think) the reason i say this is because the output, not matter what the input, always prints: the date entered followed by "is not a valid date." Also my print leap year commands are working how i want. I am really new to programming and our teacher never really taught us to use boolean logic well but i want to learn.
#include<iostream>
#include<iomanip>
#include<string>
using namespace std;
const int LOW_YEAR = 1582,
days_Min = 1,
days_MaxA = 31,
days_MaxB = 30,
days_MaxC = 29,
days_MaxD = 28;
main()
{
int month,
year,
day;
string month_Name;
bool valid_Value_M, valid_DaysA, valid_DaysB, valid_DaysC , valid_DaysD, leap_Year;
cout<<"Enter numeric values for month, day and year of the date.";
cin>> month >> day >> year;
if(month <= 12 && month >= 1 && year> LOW_YEAR)
valid_Value_M = true;
else valid_Value_M = false;
if (valid_Value_M)
{
if(month == 1)
month_Name = "January";
else if(month == 2)
month_Name = "February";
else if(month == 3)
month_Name = "March";
else if(month == 4)
month_Name = "April";
else if(month == 5)
month_Name = "May";
else if(month == 6)
month_Name = "June";
else if(month == 7)
month_Name = "July";
else if(month == 8)
month_Name = "August";
else if(month == 9)
month_Name = "September";
else if(month == 10)
month_Name = "October";
else if(month == 11)
month_Name = "November";
else
month_Name = "December";
}
if((month == 1 || month == 3 || month == 5 || month == 7 || month == 8 || month == 10 || month == 12) && day < days_MaxA && day >= days_Min)
valid_DaysA = true;
else valid_DaysA = false;
if((month == 4 || month == 6 || month == 9 || month ==11) && day <= days_MaxB && day >= days_Min)
valid_DaysB = true;
else valid_DaysB = false;
if( year % 400 == 0 || year % 100 != 0 && year %4 ==0)
leap_Year = true;
else !leap_Year;
if(month ==2)
{
if (leap_Year && day < days_MaxC && day >= days_Min)
valid_DaysC = true;
else valid_DaysC = false;
if(!leap_Year && day < days_MaxD && day >= days_Min)
valid_DaysD = true;
else valid_DaysD = false;
}
if(valid_Value_M == false || valid_DaysA == false || valid_DaysB == false || valid_DaysC == false || valid_DaysD == false)
{
cout << endl << setfill('0') << setw(2) << month << "/";
cout << setfill('0') << setw(2) << day << "/" << year;
cout << " is not a valid date." <<endl;
}
else cout << month_Name<< ", " << setfill('0')<< setw(2) << day << " " << year;
if(valid_Value_M == true && valid_DaysA == true && valid_DaysB == true && valid_DaysC == true && valid_DaysD == true )
{
if (leap_Year == true)
cout<< " is a date in a leap year."<<endl;
if (leap_Year == false)
cout<< " is a date in a non-leap year"<< endl;
}
}
1 AnswerProgramming & Design1 decade agoBasic Computer Programming in C++.?
So i have a few questions...
Is it possible to use combination logic (ie if ( x= 1 && y=1 || z =0) for a boolean expression?
in my case
bool true_Value, false_Value;
true_Value = month !> 12 && month !< 1 || year > 1582;
false_Value != true_Value;
i dont even know if this bool equation would work. The reason i need this is to satisfy an if statement.
if (true_Value) ect ect. ect
4 AnswersProgramming & Design1 decade agopermutations/probability/number of repeated digits?
you have five numbers: 2,4,6,8,9. which you can arrange and reuse as much as you like, to form a number. the only restriction is that the number must be 4 digits long. There are 625 total combinations i have found out.
The second part of the question is causing me a bit more trouble......How many of the 625 combinations have at least 1 digit repeated.(the answer is 505) but i have no clue how they arrived at the ans. EXPLAIN THIS PART PLEASE.
2 AnswersMathematics1 decade ago