15,551 Topics

Member Avatar for
Member Avatar for bobyx

Joined: 14 Mar 2010 11:05 Posts: 2 Hi.Still I have problem in my program codes.I write a program in mikroC PROV2.50 for my microcontroller(PIC 18F452) but I faced to a problem that related only to C language and compiler give me the following error messages; extern int adcvalmax[8]= {0,0,0,0,0,0,0,0};// 16 …

Member Avatar for 0x69
0
2K
Member Avatar for shaun2106

How can we [B]shift the Origin [/B]from the Top-Left corner to the Center of screen in [TEX]Turbo C Graphics Programming[/TEX]?

Member Avatar for jonsca
0
343
Member Avatar for P3druh77

Hi... i have a little problem on my code... HI open a txt that have this: LEI;7671;Maria Albertina da silva;xxxx@gmail.com; 9;8;12;9;12;11;6;15;7;11; LTCGM;6567;Artur Pereira Ribeiro;fdsdfsd@gmail.com; 6;13;14;12;11;16;14; LEI;7701;Ana Maria Carvalho;asasssas@gmail.com; 8;13;11;7;14;12;11;16;14; -------------------------------------------------------------------------------- LEI, LTCGM are the college; 7671, 6567, 7701 is student number; Maria, Artur e Ana are the students name; [email]xxxx@gmail.com[/email], …

Member Avatar for Aia
0
242
Member Avatar for Lubster

Hey all, I'm as new as it gets. My goal is to extract and store NTFS permissions (files/directories), for the purpose of restoring them on-demand (using Windows XP SP3). I read all around the subject, (specially over MSDN), and I managed to make a working code via the SDDL format. …

0
132
Member Avatar for gkaykck

--Homework-- Write a C program that codes a string which is given by keyboard so that the coded string includes characters with their number of sequential occurrences. For example, if the string to be coded is AAABBFFFRRRRZTT then the coded string must be A3B2F3R4Z1T2. You can assume that there is …

Member Avatar for gkaykck
0
200
Member Avatar for mick3339

I am trying to read a csv file and store it into a 2D array, However it give me "segmentation fault" each time I run it. Here is my code [CODE] #include <stdlib.h> int main(void) { const char filename[] = "a.txt"; FILE *file = fopen(filename, "r"); if ( file != …

Member Avatar for Salem
0
485
Member Avatar for sourabhtripathi
Member Avatar for 0x69
0
115
Member Avatar for farhanafzal

Write a C program to enter the elements of three one dimensional array A (size 5), B (size 10) and C (size 5) as an input from the keyboard. The program will find and print: • The maximum element of array A entered as an input. • The minimum element …

Member Avatar for farhanafzal
0
107
Member Avatar for aiosarem

I'm still trying to learn my way through send and recv with sockets in C. Now, I have a struct that I want to send over the socket. [CODE=c] struct myPacket { int a; double b; double c; int d; char e[80]; }; [/CODE] I have a client on a …

Member Avatar for Salem
1
6K
Member Avatar for Superfreak3

Hello all, I am in need of a dll that, if passed the shortcut/.lnk name and the Start Menu -> Programs path if needed, will return the target attribute of that shortcut. I am going to be calling this from a Lua script based application from Indigo Rose called AutoPlay …

Member Avatar for Superfreak3
0
121
Member Avatar for endritius

I'm trying to find the product of two numbers using a function which receives the values of two variables from main() and the address of the variable prd where the product will be stored. I can't get this compiling because i get the following errors from Visual Studio C++ 2010 …

Member Avatar for endritius
0
234
Member Avatar for selviManoharan
Member Avatar for Rob E

What a great site! I'm looking fo a hint. I'm new to any type of programming and this C code just doesn't seem to be working. I have attempted a program that gives the ohm value of a resistor when the color code is entered in. I am using an …

Member Avatar for Rob E
0
440
Member Avatar for skypower

Hello there. This is my first post in this forum which, by the way, I find outstanding simply because everytime I google a C problem I find an answer here. Ok so, I have a very simple problem. I use Windows 7 and recently had a major problem about my …

Member Avatar for skypower
0
143
Member Avatar for paradiseis

add $t0 $zero ,$zero loop: beq $a1,$zero,finish add $t0,$t0,$a0 //$t0=$t0+$a0 sub $a1,$a1,1 j loop finish:addi $t0,$t0,100 //a=b+100 add $v0,$zero write the equivalent c language code snippets as comments. i have tried a bit but i not the answer correct a not

Member Avatar for Salem
0
84
Member Avatar for gaurav2729

hi I m student of B.tech . I have an error in my c program ( [B]unable to open TV.LIB, Linking error [/B]).pls help me to remove this linking error .

Member Avatar for chirag64
-1
126
Member Avatar for appunu

ALl i need to find is the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6).I have coded with some logic and i could able to find the sum til this part 12345=>1+2+3+4+5=15 but i couldn able to carry on after that plz …

Member Avatar for appunu
0
171
Member Avatar for moroccanplaya

i want it to print out 4 is larger than 2 but it prints out 2 is larger than 2293572 [CODE] #include <stdio.h> #include <stdlib.h> void largest(int num1, int num2, int *larger) { if(num1 > num2) { *larger = num1; } else{ *larger = num2; } } int main() { …

Member Avatar for jephthah
0
117
Member Avatar for aiosarem

Hi, I'm trying to learn the in's and out's of using the send and recv functions of a socket in C and I've hit a bit of a road block! I'm trying to send an integer from one system to another, however one system is big endian (the client) and …

Member Avatar for aiosarem
0
6K
Member Avatar for appunu

hello people am new here.. and i started off coding.. i have few doubts. I want to roundoff a float value with no elements after the decimal point without using a lib function. For example 16.25 = 16.00 :) i tried printf("%.0f,16.25); and it prints 17.. If i know the …

Member Avatar for WaltP
0
423
Member Avatar for tquiva

Hi everyone. I just finished creating a program similar to minesweeper, but it's called miensfeld. The rule of the game are stated in the intro of the program. I was just wondering if anyone would mind checking it out for me? I just can't seem to compile it. But please …

Member Avatar for jephthah
-1
612
Member Avatar for tquiva

when I try to compile a program, an error of the following comes up: cc -Aa -g -c -o main.o main.c <command-line>: error: missing '(' after predicate make: *** [main.o] Error 1 it indicate no line of where the error is located. has anyone ever came across this type of …

Member Avatar for jephthah
0
3K
Member Avatar for wackozacko

Ok, so I'm trying to write an emulator for a simple processor architecture and I've ran into a strange problem. I decided to read the input code once through to see how many lines there were, then set up an array of that length, and then go through the file …

Member Avatar for Aia
0
2K
Member Avatar for koved

i want to know what is the code written in header files.(how a functions works) is that possible for e.g. i created my own version of [U]sqrt[/U] function in .C now i want to know the difference b/w my code and sqrt function code. i want to check how efficiently …

Member Avatar for 0x69
0
80
Member Avatar for johndoe444

I just copied and pasted all the things that has been happening from the shell here: [CODE]lin309-05:~/workspace/acm$ gdb a.out GNU gdb (GDB) 7.1-ubuntu Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute …

Member Avatar for johndoe444
0
5K
Member Avatar for BLUEC0RE

Hey guys, I am having a problem. When loadPref is executed, it opens, reads, and saves properly. But it crashes shortly after when the system call system("cls") happens. I do not understand why, any help? I removed most of the code that is not involved. Tests / Outcomes Removing loadPref …

Member Avatar for BLUEC0RE
0
650
Member Avatar for sourabhtripathi

[CODE]void main() { int a; char b; scanf("%d%c",&a,&b); /// char not taken ?? } // problem with buffer or stack [/CODE] i know this can be avoid by using fflush(stdin); or giving "\n" or space inbetween ; i need exact answer plzz help !!! thanks

Member Avatar for Xufyan
0
95
Member Avatar for moroccanplaya

hi i just started c programming and i am stuck on a question Write a void C function called largest that takes two integers passed by value and returns the larger of the two using a third integer parameter which is passed by reference. this is what i came up …

Member Avatar for Nick Evan
0
130
Member Avatar for wxy_3

Hi; i have a problem about that i have two long strings of non-negative integers and i wanna denote adddition.How should i do this?

Member Avatar for sourabhtripathi
0
69
Member Avatar for johndoe444

If the string is input from stdin: [CODE]scanf(" %s %d", R, &n);[/CODE] then is it possible to get the length of R as a by product from scanf as it already has scanned through the input? As you can see there can be spaces in front and after words and …

Member Avatar for sourabhtripathi
0
336

The End.