User Profile
Collapse
-
nothingfights replied to Program that diplays corresponding ASCII code for the numbers 0-127, 16 per line.in CI eventually figured that out. Thank you. -
nothingfights started a topic Program that diplays corresponding ASCII code for the numbers 0-127, 16 per line.in CProgram that diplays corresponding ASCII code for the numbers 0-127, 16 per line.
this continue to stop at 10 and 13. Need Help!
Code:# include <iostream> using namespace std; int main() { char k; for(int i=0; i<127; i++) { cout << (char)i; k= (i+1)%16; if (k == 0) cout << "\n"; } cout << "\n"; return 0; } -
i completed the program.
[CODE=cpp]
cout << "Enter in the number of students in the class: \n";
cin >> students;
while (students < 1 || students > 25)
{
cout << "Enter in a number that is no less than 1 and no more than 25: ";
cin >> students;
}
for (int i = 1; i <= students; i++)
{
...Leave a comment:
-
-
i have this to show so far.
...Code:#include <iostream> #include <iomanip> #include <cstring> using namespace std; int main() { int students, cout << "Enter in the number of students in the class: \n"; cin >> students; while (students < 1 || studentsLeave a comment:
-
We have yet to learn the get version you have showed me, so i do not believe that i can use it on this.Leave a comment:
-
I fixed the probem but now i need aid in arranging it in alphebetical order and displaying the student in the front and he student in the ...Code:for (int count = 1; count <= students; count++) { const int SIZE = 25; char names[SIZE]; cout << "Enter in name " << count << ": \n"; cin.getline(names, SIZE); cin.get(); }Leave a comment:
-
I did the cin.getline and now it askes all but the first nameLeave a comment:
-
I have this for the part about asking for names. The problem is it only allows the user to enter in the first name.Code:for (int count = 1; count <= students; count++) { char names; cout << "Enter in name " << count << ": \n"; cin >> names; }Leave a comment:
-
nothingfights started a topic Program that diplays corresponding ASCII code for the numbers 0-127, 16 per line.in CProgram that diplays corresponding ASCII code for the numbers 0-127, 16 per line.
i need this to display ASCII characters for numbers 0-127, with 16 on each...Code:# include <iostream> using namespace std; int main() { char k; for(int i=0; i<127; i++) { cout << ((char) i); k= (i+1)%16; if (k == 0) cout << "\n"; } cout << "\n"; return 0; } -
the challenge also does not seem to mention entering in any names it just asked for a class size number to be enteredLeave a comment:
-
I used the while loop in the begining because the number cannot be less than 1 or greater than 25.Leave a comment:
-
so far i have..
#include <iostream>
using namespace std;
int main()
{
int students;
cout << "Enter in the number of students in the class: \n";
cin >> students;
while (students <= 1 || students >= 25)
{
cout << "Enter in a number that is no less than 1 and no more than 25: ";
cin >>...Leave a comment:
-
Student Line up
I NEED HELP GETTING THIS STARTED.
A teacher has asked all her students to line up in a single file according to first name. Write a program that asks the user to enter the number of sudents in the class, and then loops to read in that many names. Once all the names have been read in it reports which student would be at the front and which student would be at the end. Assume no two students have the same name.
No activity results to display
Show More
Leave a comment: