The forums are retiring and are now closed for new topics and comments. The existing content will remain online and accessible through 2020 to provide everyone the opportunity to save any relevant information. In the spring of 2021, these Community forums will be taken offline.

Search for c in Topics

How to program in C/C++

Wow, I haven't been on for a long time, anyway, does anyone know how to get started in C/C++ programming? I am looking to buy a gp2x to write applications for, and these are the other languages that it will accept, Assembler CACK Fenix Pascal GLBASIC Python Ruby Sdlbasic So what should i learn first, C++ or the other ones, an if you answer could you point me to a good book or guide?

Topic by Steamdnt    |  last reply

C programming

Hey, I would like to start learning C (yes, I want to learn C, not C++, because so then I will be able to prgram the Arduino), so I wondered if any of you guys know a good tutorial or a good book on how to learn C. Sorry my english is not good, I do not live in an english speaking country. SKC

Question by Balls of Kevlar    |  last reply

C Programming Answered

Hey, I would like to start learning C (yes, I want to learn C, not C++, because so then I will be able to prgram the Arduino), so I wondered if any of you guys know a good tutorial or a good book on how to learn C. Sorry my english is not good, I do not live in an english speaking country. SKC

Question by Balls of Kevlar    |  last reply

c compilier

Where can i get a free c compilier because ive been using djggp and its has a limited source bytes i want unlimited source bytes

Topic by cris1133    |  last reply

C++ help

Hello programers i need ur help, i need c++ program that control dc motor by 2 inputs U for Up and D for Down , so once  press U cycle duty increases by 25%  until reach max and press D for decreasing 25% until stop i hope  getting replays soon thanks all

Topic by nerofromeuro    |  last reply

C Help

I'm working on an electronic project for school, and I've been trying to learn C, I have a quick question, I think the answer is a function, but I don't know and I need an example. Basically I want something where I can break up the code into sections (I'm pretty sure it's called a function) and bring them all back together in the main() for example, lets say I want to have a function to turn on an led, then I have a different function to wait for so long, and then another function to turn it off, except I can control what LED I want to turn on/off and for how long (I want to be able to input to the function) Once again, I'm pretty sure it's called a function, I just don't know how to use them.

Topic by guyfrom7up    |  last reply


This is similar to my other topic, but I think it's worth a new topicmy company will be called electroni-C (pronounced electroni-see)I came up with cool marketing groups and product names, such as:electroni-CHIPSflavors: original (a bunch of generic boards that makes breadboarding easier, such as a 555 board, potentiometers that actually work with bread boards, a couple of mini powersupplies, jumpers, breadboard to aligator adapters, etcspicy: A lot of power stuff, like powersupplies, not just for breadboards, but for real finished projects, such as a circuit similar to mintyboost (but not the same, it'll be like a DIP package)optical (better name needs to be thought of) various LEDs, led drivers, optical sensors, and some logic to make everything useful. LED displays with integrated resistors for 5 volt (useful for less solder joints and less mess on a breadboard.caffine: motors, H-bridges, relays w/ saftey diode, servos, etc.Electroni-COOKIESNames are TBD, but here's what they are. They are called cookies because they are bigger and come in a box (oppose to a bag like electron-CHIPSdecade resistor control boxdecade capacitor control boxdecade inductor boxa big power supplyelectroni-CUSTOMIZEcustom PCB and plexi etchingelectroni-CASEcustom enclosures (basically a generic enclosure that has holes and squares cut out specifically where you want them)electroni-KITS (better name that begins with C needs to be found)H-bridge12volt regulated powersupply9volt regulated powersupply5volt regulated powersupply3.3volt regulated powersupplyR/C equipmentpulsing music LEDsthe resonator (just you wait!)lucid dream machinethe diode calculator (using thousands of diodes and switches for input, you can make a calculator, plus some resistors for the LED display)I will also carry some basic components such as resistors, LEDs, capacitors, etc..suggestions are appreciated!EDIT: website is in development.. uhhh.. by mehere's the site, all pictures were done by meI would like my own URL, but eh, wacha gunna do for free

Topic by guyfrom7up    |  last reply

C++ programming...?

Hi all. i know a bit of c++. And I want to make a simple program that calculates Pi. Now, I want it to have the user input the number of decimal point thingies... and let it do the rest. BUT, it must be stoppable no matter how HUGE a number the put in... and im 12, so please try to make it as easy as possible. THANKS!

Question by sci4me    |  last reply

C++ audio

Where can I learn about how to program audio in C++? I already know many of the the basics of C++, but I really want to get into audio programming.

Topic by 8bit  

C++ Keylogger

Im posting this forum to find out what you people think about posting a instructable about a kelogger..... any ideas?

Topic by B.F.L.M    |  last reply


Hi, I'm making plans for a remote control car from scratch, and have a few questions. Are hobby motors able to go backwards, how do you control that? Any ideas on making a wireless usb cord for a webcam? Do you know of any small things (like motors) that could move a switch remotely for the steering mechanism? Any other ideas?

Topic by Weissensteinburg    |  last reply

How to learn C and C on a Mac? Answered

Is there any other compiler other than xCode because i lost my starting disk. or is there a way to download xcode?

Question by mac_is_awesome    |  last reply

whats the difference between C++ and C#?

Thats C plus plus and C sharp. my computer science teacher asked us and im just curious

Question by 2fst4u    |  last reply

C&C RA2 lags in Linux

I have C&C; Red Alert2 installed via WINE, and it played fine but suddenly began lagging unbelievably after a LAN match.

Question by S1ko_shadoe    |  last reply

C# button on a form Answered

I'm trying to make a form i have the form and the about box made i just need to assign the about box to the about button on the form does anybody know how to do that

Question by hightekrednek2396    |  last reply

Progress Bar in C#?

I am making a C# program that loads a web page.  I would like to make a progress bar on the status bar to tell the web page's loading progress.  Any Help? Thanks in advance.

Question by drmjj55    |  last reply

c++ code hElp?

This is the code for mobile operated robot found from this site can somebody explain this code i didnt understand  the line which is Italic and Bold like this (DDRD=0xff;  DDRB=0×00) somebody plz tell me what the lines are CODE /* DTMF Controlled Robot PORTD pin 0,1,2,3 goes to motor driver l293d PORTB pin 0,1,2,3 is connected to output of CM8870 DTMF decoder IC */ #include #include int main(void) { DDRD=0xff; DDRB=0×00; while(1) { switch(PINB&0b00001111) { case 0b0010://Key 2 { PORTD=0x0A ;      //1010 both motor front continue; } case 0b0100://Key 4 { PORTD=0×02;    //0010 right motor front continue; } case 0b0101://Key 5 { PORTD=0x0F;//1111 SUDDEN STOP continue; } case 0b0110://Key 6 { PORTD=0×08;  //1000 left motor front continue; } case 0b1000://Key 8 { PORTD=0×05; continue; } default: continue; } }//end of switch return 0; } // // // //

Question by agent555  

R/C Car

Hi, I had this r/c car, but I had lost the top, can anyone help vme figure out what to do with it? how can I make a top with plastic? And sorry, but the pics were a little blurry, (the camera was out of focus) but you can still see the basic shape

Topic by zack247    |  last reply

R/C Sailboat

I want to make a R/C sailboat, so far I have 4x32x1/4 inch balsa wood planks and they should last me the entire project. This weekend I'm going to visit a hobby store and get: waterproof wood glue, waterproofer for the wood. Then go to target and get a rotary tool. The boat will be 3 inches tall with a 1 inch keel (keeps the boat from tipping) 5 inches wide and 15 inches tall. I will get a cheap multi directional R/C car and use the steering mechanism to move the rudder and the drive motor to turn the sail. Once I make the boat I'll fill the gaps with wood paste and water proof everything hopefuly with a silicon based sealant. Any tips or flaws with my plans, please see the attached sketch.

Topic by acer73    |  last reply

R/C planes

Have any of you flown any R/C planes gas or electric?

Topic by Superninjacamper941    |  last reply

K'Nex C' Bows

Hey I have a question... what you think 'bout my C' Bow? I'll put up an Instructable for it soon! =)

Topic by ThaJuzz    |  last reply

C voice lessons?

Hiya! I just got a new Sansa fuze for Xmas (8 gigs, Installed Rockbox, IT ROCKS!!!) and I wana start learning C. I actually already started, But I best process info when I hear it. Where can I find simple English (Russian or Hebrew also welcome) lessons of the C programming language? I have learned the basics of both C# and VB 5.0, So it don't have to be THAT easy... any help?

Question by netbus  

USB type C

Greetings, USB type c please? So I have spent alot of time researching different ways to light small ornament designs. I have considered EL lighting and LED, yet, in order for these lighting techniques to work sufficiently, you need 12v of power. There are Instructables to power these lightning methods per USB, however this ofcourse only provides the lightning with 5v. What I find quite surprising however is that there are no tutorials whatsoever with the new usb type: USB-C. Since USB-C can apparently provide 20v I wonder why there is little to no information available concerning these subjects. Are there technical limitations I dont know about? If not: would anyone please help me make usb-c powered led strips ^^

Topic by zeepjes    |  last reply

PIC C compiler

I'm planning on getting started with PICs this christmas. I've aquiered everything i need to get started, and done some reading on assembler language. But I have yet to find any free C compilers for the PIC microcontroller. Could some experienced PIC users please give me some pointers?

Topic by chr    |  last reply

A/C Wireing Problem

I need a A/C 120v wireing diagram that show the best way to wire a Router, Blower & Saw so would run as follows. (1)Router & Blower at the same time. (2)Saw & Blower at the same time. (3)All off at the same time,can this be done using a Double Pole Throw Switch ? if so PLEASE send wireing diagram. :o)

Topic by kngokngo    |  last reply

C/C++ (CPP or C Plus Plus) Programs -- Will Write, money is used to goto College

Hi, I am writing programs for people in C or C++ to earn money for College. I have been programming for many years and have a good amount of experience. If you would like something made, please private message me or leave a comment below. I will try to get back to you as soon as possible. Thanks  

Topic by Ebay  

how to generate a signal (pulse) with c# using usb port

For my application , I need to generate a signal wich contains 2 pulses , 1 of 150 ms and the other of 427 ms , seperated with a duration of X ms , using the usb port of my computer and c#

Question by isalhi    |  last reply

hi i'm new, i wana code arduino led interface in C#?anyone hlp plzzz?

I want to code ov arduino in C#, i dn have idea about C#!! i need help urgntly :(

Question by s_mehak    |  last reply

Atmel ICE basic?

Hey I got Atmel ICE basic, 6 pin wire and atmega1248. I try to sent  program code, but there comes error message. How I should connect  pins?

Question by mattilaniko    |  last reply

Is There Any C++ Client For Mac? Answered

Aside from dashcode, is there any c++ client similar to visual c++ studio 2008 express for mac osx

Question by robots199    |  last reply

r/c and arduino communications

How do I check to see if my values for my reciever match the values in the r/c lawnmower code. It says if they don't to change them. But, I don't know how to check them.

Topic by mfm5024    |  last reply

Things to do with C Batteries?

For a while my wife had to use this special medical machine that ran on c batteries.  every week the hospital would send us a box batteries even tho they were lasting about a month.  We kept telling them that we didn't need more but they said that they were required to send them anyway.  Now that she's off the machine I have all these batteries and nothing that uses them.  Everything that i've found on Amazon is very expensive.    I'm into woodworking and no absolutely nothing about electrical stuff or I'd design something myself.    anybody have any cool projects using c batteries? as one project idea, I have several of these lantern flashlights that run on d's.  it would be cool to convert those to run on c's.

Topic by dimtick    |  last reply

C# key word list? Answered

I'm looking for a list of keywords used in c# that also includes there definitions. I'd like it so i can print it out

Question by hightekrednek2396    |  last reply

Microcontroller inputs in C language?

I'm having problems finding and figuring how to do inputs with mirocontrollers VIA button press >> led goes on.(I have a ATTINY2313)Outputs are as simple as PORTB = 0x10 (being hex for pin 16). Keep in mind I'm very new to micros and C. The most I've done was fast-slow blink patterns. How can i do inputs though? SIMPLE code sample is welcomed!

Topic by Killa-X    |  last reply

A/C Compressor Lubrication Help? Answered

I am almost completed an A/C compressor compressor.  I wanted an air compressor, and I decided to build one from an A/C compressor.  Before I finish it up, do I need to have some oil being fed through the system and separated before the tank, or can I run it straight with just air coming in and no oil? Thanks

Question by Electric Spectre1    |  last reply

Replace r/c batteries

Hi, does anyone know how to replace r/c car batteries with normal AA cells (or pp3 or whatever)? This is really annoying me coz I have an old r/c car (pretty good one actually) but the battery has died and I was wondering how to replace it (or 'refresh' it if this is possible, which I don't think it is...). It would also be helpful to know a technique for finding out the voltage/amperage of the old batteries so I can fix it without blowing the electronics. Pictures would be attached but the uploader isn't working right now; I'll get them up as soon as possible. Thanks guys,

Topic by TurboSnail  

COSMOS and Visual C# issues...?

Alrighty, so i'm workin with COSMOS. So I have VS2010 and it says that the new version works with that. And its express BTW. So of course it gives me an error. Well, I tried it with 2008 on another pc and got no errors. The problem is, I cannot install 2008 b/c it thinks it's already installed. And its not! It used to be but I un-installed it! :P WTF??? Any ideas? Wehn I try 2 install it, it lets me uninstall or reinstall/repair. Well, if I uninstall it, it still wont lemme install it and if i re-install/repair, it doesnt even do anything. Any ideas?

Question by sci4me  

RIP Arthur C Clarke

PAssed away, aged 90 :-(

Topic by Kiteman    |  last reply

Are the TIP31 and TIP31B or C interchangable?

I  want to make a version of but I have found three types of the TIB31.  A B and C.  Are they interchangable?

Topic by finfan7    |  last reply

R/C WebCam(W.I.P)

I(Edible_Death) am designing a little toy for those who seek time to waste and utterly no reason to design such a fun toy or whatever this item by be.R/C Webcam. Items:4AA Battery pack,Small r/c car,soldering gun,Webcam

Topic by Edible_Death  

Convert "C" code in to hex

Hello I want to built this binary watch but the code is in "C" here is code and i dont know to programm with this kind of code,cam someone convert the code in to hex please,and the micrchip is PIC16F688.

Question by macobt    |  last reply

Convert C code into hex?

 I need some to convet this code into hex,The microchip is PIC16F688 and for more information i want to built this project.

Question by macobt    |  last reply

Battery Power Capability (C)

I'm trying to understand a little bit more about batteries. I've learnt so far: "Volts,  amps, and  watts measure electricity. Volts measure the “pressure” under which electricity flows. Amps measure the amount of electric current. Watts measure the amount of work done by a certain amount of current at a certain pressure or voltage." Now I'm interested in knowing the maximum amount of energy you can draw from a battery at any one time. I presume you can't instantly drain a batteries full energy capacity at any one time. I have read that: "The way the power capability is measured is in C's. A C is the Amp-hour capacity divided by 1 hour. So the C of a 2Ah battery is 2A. The amount of current a battery 'likes' to have drawn from it is measured in C. The higher the C the more current you can draw from the battery without exhausting it prematurely. Lead acid batteries can have very high C values (10C or higher) , and lithium coin cells have very low ones (0.01C)" Am I write in saying a 1.2V 1200mAh has a power capability of 1.2C? In which case I should only ever draw 1.2C or less to preserve the battery? How do I increase this amount when using 2 batteries, if I wire two batteries together does the power capability increase to 2.4C for the above example batteries? If so do I have to wire them in parallel or series for this to work? Thank you.

Topic by jakespikey    |  last reply

Mod a mini R/C?

Hey all, I recently started looking into modding some of the stuff i have lying around and I came across an old mini r/c car that are only about an inch long. (see photos) Anyways i got down into it, but I really don't know what I'm doing, i was just wondering if anyone could come up with a mod for it. so far I've managed to hook the little r/c car to a plug so that it had a constant electric supply, which kinda defeats it's purpose, but was good to figure out anyways I thought. Thanks! (despite the fact I googled for the image and took one of the first 5, this actually is the exact model I have. surprisingly convenient, thanks google!)

Topic by Gonazar    |  last reply

Requesting R/C mod

Hey all, I recently started looking into modding some of the stuff i have lying around and i came across an old mini r/c car that are only about an inch long. (see photos) Anyways i got down into it, but i really don't know what i'm doing, i was just wondering if anyone could come up with a mod for it. so far i've managed to hook the little r/c car to a plug so that it had a constant electric supply, which kinda defeats it's purpose, but was good to figure out anyways i thought. Thanks! (despite the fact i googled for the image and took one of the first 5, this actually is the exact model i have. surprisingly convenient, thanks google!)

Topic by Gonazar    |  last reply


I am new to led lights. I want to make some lamps that run off ac power. My qt is what do I need to run a dc led on ac. Simple I know but I still need help. Thanks

Topic by rdy2sail    |  last reply

A/C a room with Peltier units.? Answered

 Would building an array of peltier units in a windows frame work to cool down a room? This way hot air would stay outside and the inside "windows" would be cold. Either using heatsink and multiples computer fans to throw air in room or pumping water in pipes then on the units then to a big fan. Also, could this run on solar cells placed on the outside?

Question by gazoutg    |  last reply

R/C Car Robot

I have an old rc car that i wanted to make into a robot for my graduation project. I want it to be able to sense a possible threat (wall, tree, person, other car) and be able to drive without help of a remote control. I have a NXT Intelligent Brick (meant for Legos) it has a 32-bit ARM7 microprocessor. Support for Bluetooth wireless communication. 1 USB 2.0 port. 4 input ports. 3 output ports. Powered by 6 AA (1.5v) Batteries, not included, or lithium Rechargeable Battery (#9798), sold separately. Up to three NXT Bricks can be connected at the same time; however, you can only communicate with one NXT Brick at a time. This is the individual component, and does not include any sensors, motors, cords, software or other accessories; for the complete LEGO® MINDSTORMS® NXT set, please see item #8527. Do you think it is possible to get it to work? Also if you have ideas please tell me.

Topic by Pat Sowers    |  last reply

Convert A/C to Battery Pack?

Ok here is what i wanna do, and your all gonna think I am crazy, but this is mostly for my little girl.  I want to take a very cheap dvd player and another cheap video screen, (the kind you find for the back of auto head rests) and glue them together, make a battery pack, and wire the two together to the pack and, the point is I have the devices and they both are rather low energy draw devices, so i just need to know if I can make a battery pack or perhapse a radioshack project battery holder and how many batts I would need etc.. I will admit the math is a bit confusing for me. but here it is, the dvd player is rated as AC 120 v, and it says it has a draw of 10w, which if I am not mistaken is very low drain and awesome for an ac device.  the monitor is DC with an adapter but can also have an optional car adapter (which I don't have, but I would just use the transformer's cord/jack to wire it in.)  The back of the monitor says it's DC output is 1.2A and again 12v and the transformer itself says it's input is 24w.  So if my math is right, I am looking to make a battery supply to support a total of 34 watts and then I will use both cords to wire them parallel to a battery pack that I need to make, so where I need the help is what kind of a batt pack do I need to make or is it even possible? 

Question by blackmagickfox    |  last reply

Shuld I take lessons on C or Embedded C to programme arduino ?

Hi folks, I want to learn arduino programming..but I don't have any programming experiences.I'm thinking about taking some C language lessons.will C help me to programme arduino?  and I also heard that there is another language called Embedded C.I'm confused which C language should I learn to programme arduinos?

Question by mzee233    |  last reply