I want the loop to keep executing till
cnt = 1 and remainder = 0
I am trying to do this .. suppose the user enteres a number 765
I will add up .. each digit .. 7 + 6 + 5 = 18
then again...
Type: Posts; User: datainjector
I want the loop to keep executing till
cnt = 1 and remainder = 0
I am trying to do this .. suppose the user enteres a number 765
I will add up .. each digit .. 7 + 6 + 5 = 18
then again...
The while loop in the program dosnt seem to execute ?
#include "stdio.h";
int main ()
{
int num , remainder , quo, cnt , sum;
cnt = num = remainder = quo = sum = 0;
wont you like need something called a flowchart Flowchartand you could use Pseudocode
i use pseudo code alot and it helps very much .. Flowcharts will be if benefit to ..thou i havnt worke much...
ASCII MAGIC
learn to make your code look clean and smooth .. try smoking a blunt and being extra carefull with those identions
sometimes you need to run to learn how to walk
string "12345" into arrayStr[5]
now ..i want to convert this into decimal ..
STRLEN arrayStr gives 5
arrayInt[5] = arrayStr[5] - 48
LOOP AGAIN
I think you need to look up the Truth tabels for A?ND , OR and is there an XOR ?
well .. it seems that ..
if i entered 11 and 1
then your code should stop asking right ?
I once also did such a thing .. After having had enought pills .. i wasnt satified as being a normal human ..so instead of proving to my self that the medication which makes me a zombie .. might not...
wish i had the older Deital Deital files on line ..wait i might have it on here..thou dont expect it to be amything fancy ..it was code writting way back when i was much younger ..
...
nope ..i cant sorry
if you want to know how actually you C code is compiled and works with the processor ..
I would study assembly language and also some digital logic to get the feell of how its all working ...
...
after each shift and mask ..store the values in an array .. so if you get a decimal 10 .. use it as an Index into
arrayHex[15] = {1,2,3,4...a,b,c ,d,e,f}
then store that into another array .....
After reading that site i am more inspired to learn LISP .. i heard you could do about anything in LISP and the first time i tried out Scheme ..I was really impressed with the new way of programming...
I really would like to get into AI development .I think its a promisssing field ..i hear alot of people talk about LISP And Prolog for serious AI experiment and development..
what do you think ? i...
thanks alot .. I need to getting used to correcting my ability to spot miniture things .. thanks again
#include "stdio.h";
int main()
{
int arrayA[10][10];
int arrayB[10][10];
int row , col , arrayB_row_cnt , arrayB_col_cnt, arrayA_row_cnt , arrayA_col_cnt, size_cnt ;
nope that dosnt seem like the problem
....
I am looking for APIS that would allow me to use C and the certain API to take complete controll of the Window OS Vista Volume manager ..
be able to meddle with Master volume , mic volume , Wave...
I notice the silly mistake .. Its been a while since i did any C so i guess i am sort of rusty ..
thou even after using the index for the array .. the buttons dont display ..
#include...
Hi , I am new to windows API using C to implement this API ..
Here is the code i will explain the problem right after this :
#include <windows.h>
#define ID_EDIT 9000
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*
*
*/
int main(void ) {
char stringEnteredVar[8];
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*
*
*/
int main(void ) {
char stringEnteredVar[8];
Yes . Now I included a a while loop that would throw away all the buffered data .
while( getchar() != '\n' ) ;
Here is my new code
#include <stdio.h>
int main( void )
{
#include <stdio.h>
int main( void )
{
int Ivar;
printf( "Enter:" );
scanf( "%c", &Ivar ) ;
Well i dis agree .. Yes byte Code(java) and MSIL(C#,VB.net,C++.net) are using the same concepts but the jvm and JIT compiler arnt the same ...
The JIT compiles the managed code into native code...