Search Results

Search: Posts Made By: chacko193
Forum: Programming 04-17-2014
2,183
Posted By chacko193
but i am only passing a number to it. But i was...
but i am only passing a number to it. But i was just too lazy to add a default condition. Mea culpa
Forum: Programming 04-14-2014
2,183
Posted By chacko193
Try this: #include <iostream> #include...
Try this:

#include <iostream>
#include <string>

using namespace std;

//Function to convert a character to an integer.
int my_atoi(char chr) {
int ret;
switch(chr) {
case '0'...
Forum: Programming 04-14-2014
2,183
Posted By chacko193
This worked for me in C. I am starting to learn...
This worked for me in C. I am starting to learn C, so there mights be some bugs. Anyway this compiled with no warnings for me.


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

...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 07:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy