Click here to Skip to main content
15,914,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Why the controls do not show? Pin
Eugen Podsypalnikov4-Dec-10 1:08
Eugen Podsypalnikov4-Dec-10 1:08 
QuestionRe: Why the controls do not show? Pin
David Crow4-Dec-10 17:42
David Crow4-Dec-10 17:42 
AnswerRe: Why the controls do not show? Pin
yu-jian8-Dec-10 2:22
yu-jian8-Dec-10 2:22 
QuestionRe: Why the controls do not show? Pin
David Crow8-Dec-10 4:14
David Crow8-Dec-10 4:14 
AnswerRe: Why the controls do not show? Pin
yu-jian9-Dec-10 0:52
yu-jian9-Dec-10 0:52 
QuestionHow can identify click on hashbutton or item label in Tree Ctrel? Pin
Le@rner3-Dec-10 23:00
Le@rner3-Dec-10 23:00 
AnswerRe: How can identify click on hashbutton or item label in Tree Ctrel? Pin
User 74293383-Dec-10 23:38
professionalUser 74293383-Dec-10 23:38 
Questionhow to input into array from keyboard Pin
atoivan3-Dec-10 16:20
atoivan3-Dec-10 16:20 
i want to write a a program that will accept student name and grades and output it.use an array data structure in the implementation this program and implement the following

write method that will traverses the array and allow the user to perform the following processes

a) search for a particular student and his or her marks
b)find the average of all the student in the class
c)find all student with a mark below 50 and output them.

i started off with this codes in Java .But the thing is if i can do it in java i can do it in C and C++

import java.util.Scanner;
//import java.lang.String;
public class Main {
public static int n;
//public static String names;
//private static String[] nameS;
//private static String[] nameS;
/**
* @param args the command line arguments
*/

public static void main(String[] args/*,String[] nameS*/) {
Scanner in=new Scanner(System.in);
int Da=0;
int num []=new int[n];
//int x=0;


System.out.printf("%s\n","Enter the Number of student taking This Couse");
n=in.nextInt();
String name[]=new String [n];
System.out.printf("%s %s \n", "index","value");
for (; Da < name.length; Da++ )/*Da 4 Display array*/ {
System.out.printf( "%5d%8d\n", Da, name[Da] );
}
System.out.println("Enter the names of the student");
String names;
names=in.nextLine();
name[n] = new String(names);
for (; Da < name.length; Da++ ){
System.out.printf( "%5d%8d\n", Da, name[Da] );
}




}
}

i can not input the names into the array( name) i created
pls help me
AnswerRe: how to input into array from keyboard Pin
Dr.Walt Fair, PE3-Dec-10 16:36
professionalDr.Walt Fair, PE3-Dec-10 16:36 
AnswerRe: how to input into array from keyboard Pin
Luc Pattyn3-Dec-10 17:20
sitebuilderLuc Pattyn3-Dec-10 17:20 
AnswerRe: how to input into array from keyboard [modified] Pin
Alain Rist3-Dec-10 23:55
Alain Rist3-Dec-10 23:55 
QuestionC++ Drink Machine Simulator Can anyone tell what I am doing wrong with this? Pin
Cachel3-Dec-10 15:00
Cachel3-Dec-10 15:00 
AnswerRe: C++ Drink Machine Simulator Can anyone tell what I am doing wrong with this? Pin
Dr.Walt Fair, PE3-Dec-10 16:26
professionalDr.Walt Fair, PE3-Dec-10 16:26 
GeneralRe: C++ Drink Machine Simulator Can anyone tell what I am doing wrong with this? Pin
Cachel3-Dec-10 19:34
Cachel3-Dec-10 19:34 
GeneralRe: C++ Drink Machine Simulator Can anyone tell what I am doing wrong with this? [modified] Pin
User 74293383-Dec-10 22:24
professionalUser 74293383-Dec-10 22:24 
GeneralRe: C++ Drink Machine Simulator Can anyone tell what I am doing wrong with this? Pin
Maximilien4-Dec-10 7:22
Maximilien4-Dec-10 7:22 
QuestionRead data using assembly Pin
MKC0023-Dec-10 2:39
MKC0023-Dec-10 2:39 
AnswerRe: Read data using assembly Pin
Rajesh R Subramanian3-Dec-10 2:50
professionalRajesh R Subramanian3-Dec-10 2:50 
GeneralRe: Read data using assembly Pin
MKC0023-Dec-10 3:45
MKC0023-Dec-10 3:45 
GeneralRe: Read data using assembly Pin
Rajesh R Subramanian3-Dec-10 3:53
professionalRajesh R Subramanian3-Dec-10 3:53 
GeneralRe: Read data using assembly Pin
MKC0023-Dec-10 22:09
MKC0023-Dec-10 22:09 
AnswerRe: Read data using assembly Pin
Aescleal3-Dec-10 6:17
Aescleal3-Dec-10 6:17 
GeneralRe: Read data using assembly Pin
MKC0023-Dec-10 22:10
MKC0023-Dec-10 22:10 
GeneralRe: Read data using assembly Pin
Emilio Garavaglia4-Dec-10 10:22
Emilio Garavaglia4-Dec-10 10:22 
JokeRe: Read data using assembly Pin
Luc Pattyn4-Dec-10 12:02
sitebuilderLuc Pattyn4-Dec-10 12:02 

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.