19,876 Topics

Member Avatar for
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
245
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
140
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
204
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
491
Member Avatar for sourabhtripathi
Member Avatar for 0x69
0
116
Member Avatar for ShahdaaD

[COLOR=#555555][B][I]hi guys, I am a Beginer Programmer.[/I][/B] :confused: [/COLOR] [COLOR=#555555][B][I]I Like to Learn about C# and i started from a week ago.[/I][/B][/COLOR] [COLOR=#555555][B][I]I Searched in google to find a froum to get some help about C#.[/I][/B][/COLOR] [COLOR=#555555][B][I]and i found this website.i hope i can find some friend to get help.[/I][/B][/COLOR] …

Member Avatar for kvprajapati
0
172
Member Avatar for jellybeannn

I've got this code that creates a Table and a graph, the values have to be int for the graph. But in the table I want t display the values as... 1,000,000 How can I do this?? [code] public partial class output : System.Web.UI.Page { int max = 0; int …

Member Avatar for finito
-1
110
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
111
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
124
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
236
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
447
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
147
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
86
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
129
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
174
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
120
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
426
Member Avatar for passionatecoder

Dear All, I am very new to programming and really appreciate if you can help. I am using XCode as editor My code is below: [CODE] int main (int argc, char * const argv[]) { char a[10][25]; char *ptr_a; ptr_a = (char *)a[10][25]; for (int index = 1; index < …

Member Avatar for Fbody
0
654
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
617
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
81
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 SteveyD

Greetings again I have a small utility that reports which printer port has been selected. Its returning the correct data, but in binary, LPT 1 = 0x378 = 888 Right now its reports in the message box "Printer Port 888" I would like to change that to read "Printer Port …

Member Avatar for kvprajapati
0
126
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
653
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
97
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
133
Member Avatar for harshareddy75

Hi guys, Do you know of any C++ libraries can can generate SOAP messages using the WSDL. I am writing a C++ client application and am looking for such a library. I however cannot use gSoap and wsdlpull. SOAP Client library (SQLData Systems) looks like another library which could help …

0
32
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
71
Member Avatar for nsutton

I have a little background in Python, but I want to move on to learning C# (Im not giving up on Python, I'm still coding in it). I choose C# so I can make games to submit to [URL="http://creators.xna.com/en-US/"]XNA[/URL], so I can get some games on XBLA. Anyway every tutorial …

Member Avatar for kvprajapati
0
70
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
338
Member Avatar for Xufyan

sorting in array, i'm stuck understand that why we've used a 'j' loop here ? can anybody explain ? and why we are checking this condition ? [iCODE] if(num[i]>num[j])[/iCODE] [CODE]int main(void) { int num[5],temp; int i,j; for(i=0;i<5;i++) { printf("Enter Value for %d",i); scanf("%d",&num[i]); } for(i=0;i<5;i++) { for (j=0;j<5;j++) { if(num[i]>num[j]) …

Member Avatar for sourabhtripathi
0
100
Member Avatar for rafikul

[code=c] #include<stdio.h> #include<conio.h> void main() { int a[] = {10,20,30,40,50},j,*p; clrscr(); for(j=0;j<5;j++) { printf("%d",*a); a++;/*here compiler error "lvalue required"*/ } p=a; for(j=0;j<5;j++) { printf("%d",*p); p++; } getch(); } [/code] i used turbo c++ compiler.and save this programme as abc.c why this type of errors occur?

Member Avatar for peter_budo
0
183
Member Avatar for ghost_from_sa

hey guys, Im doing an assignment for tech... the tutor is somewhat useless I need to make an array that can loop 10 random numbers and then display them, pass that to a function and then have that display all the numbers in ascending order using for, while and if …

Member Avatar for ghost_from_sa
0
105
Member Avatar for bryann

Hi i know this may sound a bit silly but i have looked through some websites but can't really find exactly what the difference is between "=" and "==" For example [CODE]if(x==0) execl(“/bin/ps”, “ps”,”-eal”,NULL)[/CODE] how is that different from [CODE]if(x=0) execl(“/bin/ps”, “ps”,”-eal”,NULL)[/CODE] thanks

Member Avatar for bryann
0
111
Member Avatar for farhanafzal

Write a C program using do while to find and print the average of three exam results of a student that will entered as an input from the keyboard. It repeats as many times as the user wishes. The program will ask for entering new entry (student grades) confirmation and …

Member Avatar for jephthah
0
91
Member Avatar for md3258

I am trying to read a file and place the contents in various arrays. The fields are seperated by commas. I have fields that are strings, doubles, and integers. The string fields may contain characters such as ",&:. The double fields may not all be populated but I need to …

Member Avatar for jephthah
0
99
Member Avatar for speedy94519

Hey is their a standard library that gives false and true values or something or are you suppose to assign them?? Im writing a function that suppose to return true or false. And i also tried replacing the words true and false by !0 (true) and 0 (false) but my …

Member Avatar for jephthah
0
118
Member Avatar for nick22

I am very much a beginner and trying to create a linked list, asking the "user" to input 5 or 6 values. My problem is that I don't know the correct terminology or how to store the user's input so that I can create my pointer to the next value …

Member Avatar for WaltP
0
1K
Member Avatar for smoothe19

How do I do the following? I am beyond lost. Just inform me of whatever you can. I know noone will do it all Here is what problem 21 states: If A is an n x n adjacency matrix for a directed graph, then the entry in the ith row …

Member Avatar for smoothe19
0
310
Member Avatar for adxer

how do I go about adding a row to a column in simple code? and then printing out the results.

Member Avatar for WaltP
-2
57
Member Avatar for 3cats

I think I understand functions but maybe not. I am getting an error on my open files function. I looked around a bit and didn't find any answers. The compile dies on line 36 'char' should be preceded by ')' I don't know whats wrong. Any help would be appreciated. …

Member Avatar for 3cats
0
223
Member Avatar for Ain_ee

i am using linux and C as programming language. I want to display list of time zones to the user. How can i have list of all time zones in C. Also how can i get time zone of my system?

Member Avatar for Narue
0
36
Member Avatar for manish.ranjan

How to connect c++ and oracle ? i am working on a project Multiplex management system using c++.... but it really tedious task to store and handle all data in file... please help me with the procedure...!!

Member Avatar for manish.ranjan
0
84
Member Avatar for nath.sai1234

Why the compiler is generating the sentence, Lvalue required. what is the meaning

Member Avatar for Banfa
-1
105
Member Avatar for tquiva

I am trying to create a game and tried compiling my program with my makefile, but I keep getting an error stating that there is something wrong in main. I can't seem to find the error, but this is how my main looks like: [CODE]#include "tfdef.h" #include "movement.h" #include "game_utils.h" …

Member Avatar for Banfa
0
2K
Member Avatar for harshareddy75

Hi all, I want to know if there are any C++ libraries which allow me to make JAX WS calls for a web service to a server. (Mainly the SOAP message part - the serialization and de-serialization of SOAP message) Thanks, Harsha

0
32

The End.