Forum: C Nov 19th, 2004 |
| Replies: 5 Views: 1,847 NVM, i got it kinda.
#include <stdio.h>
#include <string.h>
int i,k,j,type;
char buffer[100],l,line[50];
struct student /*structure*/
{
char name[20]; |
Forum: C Nov 19th, 2004 |
| Replies: 5 Views: 1,847 My bad, whats going to happen is the user is going to be prompted to input the information for three students, inlucing: their name, age, and id. After they havfe inputed all that data, they are... |
Forum: C Nov 19th, 2004 |
| Replies: 5 Views: 1,847 ok, that makes sense, but im still lost on what i need to do. |
Forum: C Nov 18th, 2004 |
| Replies: 5 Views: 1,847 struct student
{
char name[20];
int age;
int id;
};
struct student *sp, st[3],temp
;
void sort(struct student *p) |
Forum: C Nov 15th, 2004 |
| Replies: 7 Views: 2,107 what is a segmentation error? |
Forum: C Nov 15th, 2004 |
| Replies: 7 Views: 2,107 |
Forum: C Nov 15th, 2004 |
| Replies: 7 Views: 2,107 i really have no idea what u mean by debugging, i dont know where the problem is occuring b/c all it says is segmentation fault, and i dont really know what that is, where do i get records of sorting? |
Forum: C Nov 15th, 2004 |
| Replies: 7 Views: 2,107 #include <stdio.h>
#include <string.h>
int i,k,type;
char buffer[100],l,line[50];
struct student
{
char name[20];
int age; |
Forum: C Nov 4th, 2004 |
| Replies: 1 Views: 2,619 int ans, guess, random, type, counter, num, i;
char option[20], numb[10], input[5];
int power(int num)
{
ans=2;
if(num==0)
{
return(1); |
Forum: C++ Nov 4th, 2004 |
| Replies: 1 Views: 2,458 #include <stdio.h>
int i,type;
int buffer[100],line[50];
struct student
{
char name[20];
int age;
int id; |
Forum: C Oct 14th, 2004 |
| Replies: 1 Views: 1,779 i am suppose to multiply the two matrices together using a for loop, but the only way i can figure it out is by using printf( a[0][0] * b[0][0] + a[0][1] * b[1][0]) 4 times to find each piece.... |
Forum: C Oct 14th, 2004 |
| Replies: 4 Views: 1,522 |
Forum: C Oct 14th, 2004 |
| Replies: 4 Views: 1,522 whats the reason for defining s1 and s2 as constants? |
Forum: C Oct 13th, 2004 |
| Replies: 4 Views: 1,522 write a function begins(string1, string2) that reurns true if string1 begins string2. Write a program to test the function. program:
#include<stdio.h>
#include<string.h>
char... |
Forum: C Oct 12th, 2004 |
| Replies: 21 Views: 25,877 thanks, i think i figured it out. |
Forum: C Oct 12th, 2004 |
| Replies: 21 Views: 25,877 I am kinda new to world of c programming, and i have been assigned a problem that is written as follows: Write a procedure that counts the number or words in a string. Write a program to test your... |