Click here to Skip to main content
15,916,835 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionevent handler Pin
Member 1249901728-Jun-18 8:21
Member 1249901728-Jun-18 8:21 
AnswerRe: event handler Pin
Victor Nijegorodov28-Jun-18 8:59
Victor Nijegorodov28-Jun-18 8:59 
AnswerRe: event handler Pin
«_Superman_»1-Jul-18 18:20
professional«_Superman_»1-Jul-18 18:20 
Question#import <somedll.dll> no_namespace Pin
Sakthiu28-Jun-18 5:03
Sakthiu28-Jun-18 5:03 
AnswerRe: #import <somedll.dll> no_namespace Pin
Joe Woodbury28-Jun-18 5:46
professionalJoe Woodbury28-Jun-18 5:46 
AnswerRe: #import <somedll.dll> no_namespace Pin
Victor Nijegorodov28-Jun-18 8:46
Victor Nijegorodov28-Jun-18 8:46 
AnswerRe: #import <somedll.dll> no_namespace Pin
«_Superman_»1-Jul-18 18:25
professional«_Superman_»1-Jul-18 18:25 
QuestionC++ Run Time Error "Stack around the variable 'Student' was corrupted." Pin
Umad Ahmad27-Jun-18 1:45
Umad Ahmad27-Jun-18 1:45 
C++
AnyOne Please Guide Me on my This Error <
    "Stack around the variable 'Student' was corrupted."
    
    I Receives it when I copy Members of Structure  "StudentInfo" into Structure "FailStudents" 
    using  
    list[i].FullName  =  Student[i].FullName ;
    list[i].RollNo = Student[i].RollNo;
    
    Here list is Structure Variable of Structure "FailStudents" and Student is Structure Variable of Structure "StudentInfo"
    
    
    
    /*
    An array stores details of 5 students (rollno, name, marks in three subject).
    Write a program to create such an array and print out a list of students who have failed in more than one subject.
    */
    #include<iostream>
    #include<string>
    using namespace std;
    
    const int No_Of_Students = 5;
    
    void main()
    {
    	struct StudentInfo
    	{
    		int RollNo;
    		string FullName;
    		int marks[2];
    	};
    	StudentInfo Student[No_Of_Students];
    	struct FailStudents
    	{
    		int RollNo;
    		string FullName;
    		int marks[2];
    	};
    	FailStudents list[No_Of_Students];
    	int NoOfFailStudents = 0;
    	for (int i = 0; i < No_Of_Students; i++)
    	{
    		cout << "Enter Student NO " << i + 1 << \" FullName : \t";
    		cin >> Student[i].FullName;
    		cout << "Enter Student NO " << i + 1 << " Roll Number : \t";
    		cin >> Student[i].RollNo;
    		int failSubjects = 0;
    
    		// Subjects Marks Input 
    		for (int k = 0; k <= 2; k++) {
    			cout << "Enter Student NO " << i + 1 << " Subject " << k + 1 << " Marks : \t";
    			cin >> Student[i].marks[k];
    
    			if ((Student[i].marks[k]) < 40)
    			{
    				failSubjects++;
    			}
    		}
    		if (failSubjects > 1)
    		{
    			NoOfFailStudents++;
    			list[i].FullName = Student[i].FullName;
    
    			list[i].RollNo = Student[i].RollNo;
    			cout << "Student Name "<< list[i].FullName << "is fail"<< endl;
    			cout << "Having Rol Number  " << list[i].RollNo << endl;
    			// list[i].marks = Student[i].marks;
    		}
    		cout << "\n \n ";
    	}
    
    	system("pause");

}
AnswerRe: C++ Run Time Error "Stack around the variable 'Student' was corrupted." Pin
Richard MacCutchan27-Jun-18 2:36
mveRichard MacCutchan27-Jun-18 2:36 
QuestionConvert C++ code to python Pin
Megha Bhamare27-Jun-18 1:26
Megha Bhamare27-Jun-18 1:26 
AnswerRe: Convert C++ code to python Pin
Richard MacCutchan27-Jun-18 2:30
mveRichard MacCutchan27-Jun-18 2:30 
QuestionHow to call a 'C' program function from VB code ? Pin
Sakthiu26-Jun-18 3:31
Sakthiu26-Jun-18 3:31 
AnswerRe: How to call a 'C' program function from VB code ? Pin
Victor Nijegorodov26-Jun-18 4:04
Victor Nijegorodov26-Jun-18 4:04 
GeneralRe: How to call a 'C' program function from VB code ? Pin
Sakthiu26-Jun-18 4:08
Sakthiu26-Jun-18 4:08 
QuestionRe: How to call a 'C' program function from VB code ? Pin
David Crow26-Jun-18 4:38
David Crow26-Jun-18 4:38 
AnswerRe: How to call a 'C' program function from VB code ? Pin
Sakthiu26-Jun-18 4:44
Sakthiu26-Jun-18 4:44 
AnswerRe: How to call a 'C' program function from VB code ? Pin
David Crow26-Jun-18 4:49
David Crow26-Jun-18 4:49 
AnswerRe: How to call a 'C' program function from VB code ? Pin
Randor 26-Jun-18 5:44
professional Randor 26-Jun-18 5:44 
PraiseRe: How to call a 'C' program function from VB code ? Pin
«_Superman_»1-Jul-18 18:28
professional«_Superman_»1-Jul-18 18:28 
QuestionDIALOG WITH MULTIPLE THREADS Pin
Member 1142662425-Jun-18 7:52
Member 1142662425-Jun-18 7:52 
AnswerRe: DIALOG WITH MULTIPLE THREADS Pin
Randor 25-Jun-18 8:22
professional Randor 25-Jun-18 8:22 
AnswerRe: DIALOG WITH MULTIPLE THREADS Pin
Victor Nijegorodov25-Jun-18 8:52
Victor Nijegorodov25-Jun-18 8:52 
QuestionCan't automate Excel from Windows 10 Pin
garyflet21-Jun-18 8:39
garyflet21-Jun-18 8:39 
AnswerRe: Can't automate Excel from Windows 10 Pin
Victor Nijegorodov21-Jun-18 20:59
Victor Nijegorodov21-Jun-18 20:59 
AnswerRe: Can't automate Excel from Windows 10 Pin
_Flaviu21-Jun-18 22:43
_Flaviu21-Jun-18 22:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.