New Posts  All Forums:Forum Nav:

C functions help

post #1 of 19
Thread Starter 
Can someone please list all the functions and what you use them for in C programming, I already know...

int - Store word or data
#include <???> - Header file
printf - Print text on screen
getch() - get character is what i heard it means
int main(void) - Don't know what it means but i know you need it.
scanf - can't remember what means but i know when to use it, kinda


and i know if,else,if,else a little bit.

And i know how to put some of those codes together (Shown below), But i am really struggling of knowing all codes and knowing where to put them.


#include <stdio.h>
#include <conio.h>

int main(void)
{
int num1;
int num2;
int sum;

printf("Enter your number:");

scanf("%d", &num1);
scanf("%d", &num2);

sum = num1 + num2;

printf("The sum is %d", sum);

getch();
}


I don't expect anyone to write out all the codes if there is too many, Just as many as possible

EDIT : oh yah, I also know how to make a certain part of text go to a new line, \

Edited by AMDrocks - 8/1/11 at 6:20am
My system (AMD)
(14 items)
 
  
CPUMotherboardGraphicsRAM
AMD Phenom II X4 955 BE "Deneb" @ 3415Mhz Gigabyte GA-MA790X-DS4 (1x) Gigabyte AMD Radeon 5770 Kingston HyperX DDR2 1066 4GB 
Hard DriveOSMonitorKeyboard
2x 500GB, 1x 1TB external Windows 7 Ultimate Deep Blue 32bit 1x Asus VE248H 24" Monitor Tt eSPORTS Challenger Gaming Keyboard 
PowerCaseMouseMouse Pad
Thermaltake 550w Aero Cool Syclone II Logitech MX518 1800DPI Red Mousepad 
Audio
Creative Headphones 
  hide details  
Reply
My system (AMD)
(14 items)
 
  
CPUMotherboardGraphicsRAM
AMD Phenom II X4 955 BE "Deneb" @ 3415Mhz Gigabyte GA-MA790X-DS4 (1x) Gigabyte AMD Radeon 5770 Kingston HyperX DDR2 1066 4GB 
Hard DriveOSMonitorKeyboard
2x 500GB, 1x 1TB external Windows 7 Ultimate Deep Blue 32bit 1x Asus VE248H 24" Monitor Tt eSPORTS Challenger Gaming Keyboard 
PowerCaseMouseMouse Pad
Thermaltake 550w Aero Cool Syclone II Logitech MX518 1800DPI Red Mousepad 
Audio
Creative Headphones 
  hide details  
Reply
post #2 of 19
Sounds like you need to take a programming class, because it doesn't seem like your grasping the basics.

No one is going to list functions / headers / variables for you for multiple reasons:

1) There are farrrrrr too many functions for someone to do that

2) They are all documented (including what each function does) all over the internet

3) It woudln't help you at all.

Just because you have a list of functions doesn't mean that you will understand the basics of programming, from object orientation to polymorphism; to the construction of basic functions.

Either take some classes or start reading in depth, cause right now it sounds like you don't quite get it.
Edited by CovertCover - 8/1/11 at 5:55am
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core i7-930 D0 3.8Ghz ASUS P6T SE PowerColor HD5870 1GB 6GB Corsair Dominator XMS3 8-8-8-20 1200Mhz 
Hard DriveOSMonitorPower
1TB Wester Digital Windows 7 Home 64bit Acer 23" XFX 850w Black Edtion 
Case
HAF 932 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core i7-930 D0 3.8Ghz ASUS P6T SE PowerColor HD5870 1GB 6GB Corsair Dominator XMS3 8-8-8-20 1200Mhz 
Hard DriveOSMonitorPower
1TB Wester Digital Windows 7 Home 64bit Acer 23" XFX 850w Black Edtion 
Case
HAF 932 
  hide details  
Reply
post #3 of 19
just write code instead, the more you write the more you'll memorise.
Pepe Silvia
(13 items)
 
  
CPUMotherboardGraphicsRAM
255 @ 4 Ghz MSI 870-C45 GT 520 @ 1Ghz Crucial Rendition 4GB DDR3 
Hard DriveOSMonitorPower
Hitachi 1TB Win 7 19" 420W 
  hide details  
Reply
Pepe Silvia
(13 items)
 
  
CPUMotherboardGraphicsRAM
255 @ 4 Ghz MSI 870-C45 GT 520 @ 1Ghz Crucial Rendition 4GB DDR3 
Hard DriveOSMonitorPower
Hitachi 1TB Win 7 19" 420W 
  hide details  
Reply
post #4 of 19
Thread Starter 
Quote:
Originally Posted by CovertCover View Post
Sounds like you need to take a programming class, because it doesn't seem like your grasping the basics.

No one is going to list functions / headers / variables for you for multiple reasons:

1) There are farrrrrr too many functions for someone to do that

2) They are all documented (including what each function does) all over the internet

3) It woudln't help you at all.

Just because you have a list of functions doesn't mean that you will understand the basics of programming, from object orientation to polymorphism; to the construction of basic functions.

Either take some classes or start reading in depth, cause right now it sounds like you don't quite get it.
Ah right then, One of my friends told me that he knows all the functions cause he read them up or something and he reckons he can make any program now that he knows them..

I guess i will just keeping watching tutorials.

But yeah, I have onlt been programming for bout 1-2 months now, only been going by source codes i know and adding fuctions to them, but i know how to write out a calc and text, Don't know to much, But being 13 yo sounds like a great age to start programming

Thanks anyway +rep
Edited by AMDrocks - 8/1/11 at 6:30am
My system (AMD)
(14 items)
 
  
CPUMotherboardGraphicsRAM
AMD Phenom II X4 955 BE "Deneb" @ 3415Mhz Gigabyte GA-MA790X-DS4 (1x) Gigabyte AMD Radeon 5770 Kingston HyperX DDR2 1066 4GB 
Hard DriveOSMonitorKeyboard
2x 500GB, 1x 1TB external Windows 7 Ultimate Deep Blue 32bit 1x Asus VE248H 24" Monitor Tt eSPORTS Challenger Gaming Keyboard 
PowerCaseMouseMouse Pad
Thermaltake 550w Aero Cool Syclone II Logitech MX518 1800DPI Red Mousepad 
Audio
Creative Headphones 
  hide details  
Reply
My system (AMD)
(14 items)
 
  
CPUMotherboardGraphicsRAM
AMD Phenom II X4 955 BE "Deneb" @ 3415Mhz Gigabyte GA-MA790X-DS4 (1x) Gigabyte AMD Radeon 5770 Kingston HyperX DDR2 1066 4GB 
Hard DriveOSMonitorKeyboard
2x 500GB, 1x 1TB external Windows 7 Ultimate Deep Blue 32bit 1x Asus VE248H 24" Monitor Tt eSPORTS Challenger Gaming Keyboard 
PowerCaseMouseMouse Pad
Thermaltake 550w Aero Cool Syclone II Logitech MX518 1800DPI Red Mousepad 
Audio
Creative Headphones 
  hide details  
Reply
post #5 of 19
I only develop on POSIX-compliant machines, but I find myself using this resource multiple times a day.

http://pubs.opengroup.org/onlinepubs/007908799/

You'll find lists of functions, headers, general commands, etc.

As others have said, reading up on a solution before you have the problem isn't going to help much, if at all. Find a problem you need to solve, then start looking at the constructs/functions that will help you do it.
RAID0R
(14 items)
 
  
CPUMotherboardGraphicsRAM
i5 750 4.0GHz MSI P55-GD80 GTX 470 | 8800GT PhysX 2x2GB G.Skill Ripjaws 
Hard DriveOptical DriveCoolingOS
60GB Agility 2|1TB RAID0|1.5TB Pioneer DVR-217D XSPC Raystorm | XSPC RX240 Windows 7 Professional x64 
MonitorKeyboardPowerCase
27" Dell 2709W | 17" Samsung Logitech G15 Corsair HX850 Corsair 650D 
Mouse
Microsoft IntelliMouse 
  hide details  
Reply
RAID0R
(14 items)
 
  
CPUMotherboardGraphicsRAM
i5 750 4.0GHz MSI P55-GD80 GTX 470 | 8800GT PhysX 2x2GB G.Skill Ripjaws 
Hard DriveOptical DriveCoolingOS
60GB Agility 2|1TB RAID0|1.5TB Pioneer DVR-217D XSPC Raystorm | XSPC RX240 Windows 7 Professional x64 
MonitorKeyboardPowerCase
27" Dell 2709W | 17" Samsung Logitech G15 Corsair HX850 Corsair 650D 
Mouse
Microsoft IntelliMouse 
  hide details  
Reply
post #6 of 19
Quote:
Originally Posted by AMDrocks View Post
Ah right then, One of my friends told me that he knows all the functions cause he read them up or something and he reckons he can make any program now that he knows them..

I guess i will just keeping watching tutorials.

But yeah, I have onlt been programming for bout 1-2 months now, only been going by source codes i know and adding fuctions to them, but i know how to write out a calc and text, Don't know to much, But being 13 yo sounds like a great age to start programming

Thanks anyway +rep
It is a pretty good time, I started around 15, but I started in Java; and I recommend that you do the same. It's much easier to learn in depth than C or C++ is.

It's easy to learn the basic syntax, and because it is an object oriented language (which C isn't), it's easier to write extensible, flexible programs; due to class reuse.

Either way, just a suggestion.
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core i7-930 D0 3.8Ghz ASUS P6T SE PowerColor HD5870 1GB 6GB Corsair Dominator XMS3 8-8-8-20 1200Mhz 
Hard DriveOSMonitorPower
1TB Wester Digital Windows 7 Home 64bit Acer 23" XFX 850w Black Edtion 
Case
HAF 932 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core i7-930 D0 3.8Ghz ASUS P6T SE PowerColor HD5870 1GB 6GB Corsair Dominator XMS3 8-8-8-20 1200Mhz 
Hard DriveOSMonitorPower
1TB Wester Digital Windows 7 Home 64bit Acer 23" XFX 850w Black Edtion 
Case
HAF 932 
  hide details  
Reply
post #7 of 19
Quote:
Originally Posted by CovertCover View Post
It is a pretty good time, I started around 15, but I started in Java; and I recommend that you do the same. It's much easier to learn in depth than C or C++ is.

It's easy to learn the basic syntax, and because it is an object oriented language (which C isn't), it's easier to write extensible, flexible programs; due to class reuse.

Either way, just a suggestion.
Agreed.

I went C -> C++ -> Java

Pretty sure i would have had an easier time of it had i started with Java.
Smoke and Mirrors
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Q6600 (B3) @ 3.0ghz Gigabyte GA-EP43-DS3l Powercolor 1gb 4870 4gb Team Dark DDR2 1066 
Hard DriveOSMonitorKeyboard
64GB Crucial SSD, 3.8TB data storage Windows 7 64Bit Dell U2311H, Samsung 19" Microsoft X4 
PowerCaseMouseMouse Pad
Corsair HX-650 Antec P182SE Logitech G9 Steelseries QCK Thick 
  hide details  
Reply
Smoke and Mirrors
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Q6600 (B3) @ 3.0ghz Gigabyte GA-EP43-DS3l Powercolor 1gb 4870 4gb Team Dark DDR2 1066 
Hard DriveOSMonitorKeyboard
64GB Crucial SSD, 3.8TB data storage Windows 7 64Bit Dell U2311H, Samsung 19" Microsoft X4 
PowerCaseMouseMouse Pad
Corsair HX-650 Antec P182SE Logitech G9 Steelseries QCK Thick 
  hide details  
Reply
post #8 of 19
OP,

you are 13...and are already diving into it which I think is great. Most great programmers start early and learn on their own...with no formal instruction.

First of all...I would recommend picking up a c tutorial book and start to program the exercizes they provide...you have to learn by doing. good luck!
Black Silence
(15 items)
 
  
CPUMotherboardRAMHard Drive
i5 3570k @ 4.5 GHz Asus P8Z77-M Pro Kingston HyperX Genesis 8 GB - 1600 MHz Seagate Barracuda 250 GB 
Optical DriveCoolingOSMonitor
Samsung WriteMaster Noctua NH-D14 Windows 10 ASUS VS24AH-P 
KeyboardPowerCaseMouse
Logitech Navigator Enermax Infiniti 650W Fractal R3 Black Pearl Razer Death Adder 
Mouse PadAudio
SteelSeries QcK Mass Altec Lansing FX4021 
  hide details  
Reply
Black Silence
(15 items)
 
  
CPUMotherboardRAMHard Drive
i5 3570k @ 4.5 GHz Asus P8Z77-M Pro Kingston HyperX Genesis 8 GB - 1600 MHz Seagate Barracuda 250 GB 
Optical DriveCoolingOSMonitor
Samsung WriteMaster Noctua NH-D14 Windows 10 ASUS VS24AH-P 
KeyboardPowerCaseMouse
Logitech Navigator Enermax Infiniti 650W Fractal R3 Black Pearl Razer Death Adder 
Mouse PadAudio
SteelSeries QcK Mass Altec Lansing FX4021 
  hide details  
Reply
post #9 of 19
Thread Starter 
Thanks all!! +rep to you guys.
I might look into Java then, I tried before but could not get compiler to work, Will try again.
I was also looking into Assembly, Should i learn Assembly?? Would assembly be easy to learn?

Could someone please give me a good tutorial to start on for Java please?
and a good compiler.
Edited by AMDrocks - 8/1/11 at 11:18pm
My system (AMD)
(14 items)
 
  
CPUMotherboardGraphicsRAM
AMD Phenom II X4 955 BE "Deneb" @ 3415Mhz Gigabyte GA-MA790X-DS4 (1x) Gigabyte AMD Radeon 5770 Kingston HyperX DDR2 1066 4GB 
Hard DriveOSMonitorKeyboard
2x 500GB, 1x 1TB external Windows 7 Ultimate Deep Blue 32bit 1x Asus VE248H 24" Monitor Tt eSPORTS Challenger Gaming Keyboard 
PowerCaseMouseMouse Pad
Thermaltake 550w Aero Cool Syclone II Logitech MX518 1800DPI Red Mousepad 
Audio
Creative Headphones 
  hide details  
Reply
My system (AMD)
(14 items)
 
  
CPUMotherboardGraphicsRAM
AMD Phenom II X4 955 BE "Deneb" @ 3415Mhz Gigabyte GA-MA790X-DS4 (1x) Gigabyte AMD Radeon 5770 Kingston HyperX DDR2 1066 4GB 
Hard DriveOSMonitorKeyboard
2x 500GB, 1x 1TB external Windows 7 Ultimate Deep Blue 32bit 1x Asus VE248H 24" Monitor Tt eSPORTS Challenger Gaming Keyboard 
PowerCaseMouseMouse Pad
Thermaltake 550w Aero Cool Syclone II Logitech MX518 1800DPI Red Mousepad 
Audio
Creative Headphones 
  hide details  
Reply
post #10 of 19
assembly is probably the hardest thing you can learn.
Pepe Silvia
(13 items)
 
  
CPUMotherboardGraphicsRAM
255 @ 4 Ghz MSI 870-C45 GT 520 @ 1Ghz Crucial Rendition 4GB DDR3 
Hard DriveOSMonitorPower
Hitachi 1TB Win 7 19" 420W 
  hide details  
Reply
Pepe Silvia
(13 items)
 
  
CPUMotherboardGraphicsRAM
255 @ 4 Ghz MSI 870-C45 GT 520 @ 1Ghz Crucial Rendition 4GB DDR3 
Hard DriveOSMonitorPower
Hitachi 1TB Win 7 19" 420W 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Coding and Programming