Discover the world's scientific knowledge
With 135+ million publication pages, 20+ million researchers and 1+ million questions, this is where everyone can access science
You can use AND, OR, NOT, "" and () to specify your search.
In a switch construct, why doesn't the compiler show any error and skips the statements written within the cases like for example I write printf("hello"); in between case 1 and case 2, so why is there no error in this and how come the compiler skips this step?
For example I write
case 1: int a=9; break;
case 2 : int y =98;
So here when parsing is done either the compiler should throw any error because of the printf statement or it must print the statement which is written between the two cases but it skips it. Why does it happen?
I want to implement elliptical low pass filter in C.
But i am finding difficulty in it.
Can any one please guide me how i can implement it?
Looking forward for your reply.
i need to do a task in c++ and i am asked to write a c++ program to get n number (as string because they are big numbers) and calculate n operation on them
something like this: 2542585 * 12555 - 1257 + 45458 / 487525
and also it is necessary to prefix,infix and postfix be concluded in the program .
would you please help me?
thanks the best
Hello everyone, I am working with c++ codes and I want to know if there are any techniques and examples that I can use and understand to show the way of analyzing the dependence between loops.
I am familiar with topics like classes, pointers, templates and all the basics. But I am unable to do any project using these.
I have made a program to read pdb protein structures in C++. The problem now is I have 230 such protein structures (in pdb format similar to txt). The program works fine for 1 pdb file (inFile.open("1F56.pdb");). The pdb IDs for 230 protein structures are random. e.g like 1CYX.pdb, 3UW1.pdb etc.
I want my program to read those 230 pdb files one by one and print the output in a text file.
Google results are confusing me.
I have data in 512 by 512 (type double ). I want select 30 or 40 percentage of total data randomly. I can split data in x:y ratio. But in this method I can divide only from first to given range. Ex. 1 to 30 from 1 to 100. I want to use 30% of total data (ex. select 30 data randomly from 100). Please give me idea or link for code in opencv.
The question was,
In Bouboun University's information systems 3 arrays are used to store student details,
1. Stud_Names (array of strings) holds the name of 100 Students
2. Stud_Map (array of strings) hold the ids of the 100 students (whose details are stored in Stud_Name)
3. Stud_Marks_Mod1 (array of floats) holds the grades of grades of each of the 100 students in Module1
4. Stud_Marks_Mod2 (array of floats) holds the grades of grades of each of the 100 students in Module2
5. Stud_Marks_Mod3 (array of floats) holds the grades of grades of each of the 100 students in Module3
Write a program in C which computes the average marks for each student and displays the highest average.
Problem: When I enter details for the first student it is correct but when I enter the second student details I cannot enter the name. It skip it and student ID come in its place. Any advice on how to correct the codes?
const int MAXLENGTH = 100;
printf("Enter student %d name: ", b);
printf("Enter student %d ID: ", b);
printf("Enter student %d marks for module 1: ", b);
printf("Enter student %d marks for module 2: ", b);
printf("Enter student %d marks for module 3: ", b);
sum = Stud_Marks_Mod1[i] + Stud_Marks_Mod2[i] + Stud_Marks_Mod3[i];
printf("Average of student %d mark is %.2f \n",i+1,avg1);
printf("Highest average mark is %.2f ", avg1);