Search:

Type: Posts; User: Structure

Page 1 of 16 1 2 3 4

Search: Search took 0.01 seconds.

  1. char alphabet[27] =...

    char alphabet[27] = "abcdefghijklmnopqrstuvwxyz\0";
  2. [/COLOR] #include #include...

    [/COLOR]

    #include <stdio.h>
    #include <string.h>

    char alphabet[26] = "abcdefghijklmnopqrstuvwxyz";

    int main( int argc, char *argv[] ) {

    char userinput[256];
  3. Replies
    5
    Views
    575

    #include #define ub(x)...

    #include <stdio.h>

    #define ub(x) sizeof(x)/sizeof(x[0])

    void selectionsort( int array[], int arraySize ) {

    for (int j=0; j<arraySize; j++) {

    int smallest = 0, selection = 0;
    int...
  4. Thread: atoi & scanf

    by Structure
    Replies
    7
    Views
    614

    #include #include int...

    #include <stdio.h>
    #include <stdlib.h>

    int main( int argc, char *argv[] ) {

    char number[128];

    printf( "Enter Number: ");
    scanf( "%s", number);
  5. Replies
    5
    Views
    575

    #include #define ub(x)...

    #include <stdio.h>

    #define ub(x) sizeof(x)/sizeof(x[0])

    int arr[] = { 64, 25, 12, 4, 101, 22, 11 };
    int smallest = 0, selection = 0;

    void getSmallest() {
    smallest = 0;
    for (int y=0;...
  6. Thread: atoi & scanf

    by Structure
    Replies
    7
    Views
    614

    #include #include #include...

    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>

    int main( int argc, char *argv[] ) {

    char input[100];

    printf( "String: " ); scanf( "%s", input );
  7. Replies
    1
    Views
    1,497

    int main( void )...

    <stdio.h, stdlib.h, string.h>

    int main( void ) {

    char *string = "Line: "

    for (int x=0; x<10; x++) {

    ink [s]string [i]x "\n"
  8. #include #define ARRAY_ROW 3 #define...

    #include <stdio.h>
    #define ARRAY_ROW 3
    #define ARRAY_COL 3

    void WriteArray(int piData[ARRAY_ROW][ARRAY_COL]) {
    for(int iRow = 0; iRow<ARRAY_ROW; iRow++) {
    for(int iCol = 0;...
  9. Replies
    1
    Views
    1,497

    dragon compiler

    Dragon Compiler to .c for linux



    <stdio.h>

    @{
    char *world = "World"
    ink "Hello " [s]world
    }
  10. #include "stdio.h" int main (int argc, char...

    #include "stdio.h"

    int main (int argc, char *argv[]) {

    char *webTitle = "Web Site";

    printf( "<!DOCTYPE html> \n" );
    printf( "<html lang='en-us'> \n" );
    printf(...
  11. Replies
    2
    Views
    420

    #include int i, p; char letter_a...

    #include <stdio.h>

    int i, p;
    char letter_a = 'X';

    int main (void) {

    int start = 5, finish = 15;

    for (i = start; i <= finish; ++i) {
  12. Replies
    5
    Views
    661

    fp2 = fopen( "con2.txt", "a" );

    fp2 = fopen( "con2.txt", "a" );
  13. Replies
    4
    Views
    645

    #include #define maxSize 64 int...

    #include <stdio.h>

    #define maxSize 64

    int number[maxSize];

    void display() {
    for (int i=0; i<maxSize; i++) {
    if (number[i] != 0) {
    printf( "%i, ", number[i] );
  14. Replies
    7
    Views
    816

    #include int main() { int...

    #include <stdio.h>

    int main() {

    int cansRequired = 0;
    float height = 0, area = 0;
    float length = 0, width = 0;
    float litersNeeded = 0.0;

    float literCovers = 150;
  15. Replies
    5
    Views
    703

    #include #include int...

    #include <stdio.h>
    #include <string.h>

    int revstrcmp(char *string1, char *string2 ) {
    if (strlen(string1) != strlen(string2)) return 0;
    for (int i=strlen(string1); i>0; i--) {
    ...
  16. Replies
    2
    Views
    769

    #include #include void...

    #include <stdio.h>
    #include <stdlib.h>

    void write_report(int *num_set);

    int main() {
    int num_set[101] = {0};

    for (int i = 0; i < 101; i++) {
    num_set[i] = i;
  17. Thread: DD to DMS

    by Structure
    Replies
    5
    Views
    717

    #include double DD = 0.0, seconds,...

    #include <stdio.h>


    double DD = 0.0, seconds, remain ;
    int degrees = 0, minutes = 0;


    int main() {

    DD = 13.5423;
  18. #include #include char...

    #include <stdio.h>
    #include <string.h>

    char gene[128][256], genecount = 0;

    void splitgenes( char *string ) {
    int which = 0, count = 0;
    for (int i=0; i<strlen(string);i++) {
    if (...
  19. Replies
    2
    Views
    609

    #include #include ...

    #include <stdio.h>
    #include <string.h>

    struct record
    {
    char name[30], lat_dir[30], lon_dir[30];//declare city name as name
    int pop; //declare...
  20. Replies
    4
    Views
    1,244

    GLEW (http://glew.sourceforge.net/install.html)...

    GLEW && GLFW
  21. int stringLength(char *string) { int i = 0;...

    int stringLength(char *string) {
    int i = 0;
    while (string[i] != '\0') i++;
    return i;
    };
  22. Card Game { War }

    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <time.h>

    char CARD[52][128] = {
    "AH","AC","AS","AD","2H","2C","2S","2D",
    "3H","3C","3S","3D","4H","4C","4S","4D",
    ...
  23. #include #include #include...

    #include <stdio.h>
    #include <stdlib.h>
    #include <time.h>

    char CARD[52][128] = {
    "1H","1C","1S","1D","2H","2C","2S","2D",
    "3H","3C","3S","3D","4H","4C","4S","4D",
    ...
  24. Replies
    4
    Views
    1,124

    Debug

    line 98||99 else with no open bracket {
    line 99 line not ended with semicolon ;




    }
    else
    printf("PLEASE ENTER A CORRECT PIN NUMBER")
  25. Replies
    4
    Views
    1,193

    #include int value = 0 ; void...

    #include <stdio.h>

    int value = 0 ;

    void printValue() {
    if (value) printf( "TRUE" );
    if (!value) printf( "FALSE" );
    printf( "\n" );
    }
Results 1 to 25 of 379
Page 1 of 16 1 2 3 4