Skip to content

Instantly share code, notes, and snippets.

$ gcc simpleString.c -o simpleString
simpleString.c: In function ‘main’:
simpleString.c:7:3: warning: ‘gets’ is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gets(theArray);
^
/tmp/ccqY3Yef.o: In function `main':
simpleString.c:(.text+0x1a): warning: the `gets' function is dangerous and should not be used.
#include <stdio.h>
void main(){
char theArray[80], searchChar;
int index=0, count=0;
printf("\n Enter the phrase.\n\n");
gets(theArray);
printf("\n What character do you want to find: ");
scanf(" %c", &searchChar);
#include <stdio.h>
void main(){
char theArray[80], searchChar; //Step 1
int wordSize=0; //Step 2
int repitions=0; //Step 4
int index=0; //Step 5
int palindromeCounter; //Step 6
@Technicus
Technicus / fstab
Last active August 29, 2015 13:56
//server/TBHS /run/media/Technician/Expansion/TBHS/Server cifs forceuid,forcegid,gid=spiriticus,uid=Technician,credentials=/run/media/Technician/Expansion/TBHS/Utility/sambacreds,workgroup=everyone,ip=192.168.1.110 0 0
/*****************
* Embedded Programming
* Practice: Empty menu
* Files: menu.c
* Felix Gardner
* 2014.03.10
* ***************/
//#include <conio.h>
#include <stdio.h>
package com.pinball.ghostscanner;
import java.util.Locale;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.ActionBar;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.support.v4.app.FragmentPagerAdapter;
private static final int REQUEST_ENABLE_BT = 1;
private Button onBtn;
private Button offBtn;
private Button listBtn;
private Button findBtn;
private TextView text;
private BluetoothAdapter myBluetoothAdapter;
private Set<BluetoothDevice> pairedDevices;
private ListView myListView;
private ArrayAdapter<String> BTArrayAdapter;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.os.Bundle;
import android.app.Activity;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.content.BroadcastReceiver;
Error:Execution failed for task ':Ghost Scanner:compileDebugJava'.
> Compilation failed; see the compiler error output for details.
/run/media/Technician/Expansion/Programming/Android_01/GhostScanner/Ghost Scanner/src/main/java/heck/pinball/ghostscanner/BluetoothFragment.java
Error:(68, 20) error: onCreate(Bundle) in BluetoothFragment cannot override onCreate(Bundle) in Fragment
attempting to assign weaker access privileges; was public
Error:(70, 9) error: cannot find symbol method setContentView(int)
Error:(71, 22) error: cannot find symbol method findViewById(int)
Error:(72, 23) error: cannot find symbol method findViewById(int)
Error:(73, 27) error: cannot find symbol method findViewById(int)
Error:(74, 24) error: cannot find symbol method findViewById(int)
package heck.pinball.ghostscanner;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
/*
import android.os.Bundle;
import android.app.Activity;