18,491 Topics

Member Avatar for
Member Avatar for Alexar93

Hi! I've started to write my kernel in assembly but I think its far too complicated! Instead I would like to try to write it in C/C++. I'm new to these languages but i've written alot in VB and C# so I don't think it's going to be too hard …

Member Avatar for Salem
0
220
Member Avatar for novice_33

the problem is.. a certain .dat file consists of 3 fields of data..for example...user account, password and username (gibsonML, sweetie33, Mel Gibson). How I will load it and then assign it to hash table. Thanks..

Member Avatar for Salem
0
164
Member Avatar for namasteall2000

Hi - I have a question and I know the answer too but don;t know how to explain my answer - could someone help me in explaining. Consider the two-dimensional array A: int A[][] = new int[100][100]; where A[0][0] is at location 500 in a paged memory system with pages …

Member Avatar for Salem
0
101
Member Avatar for vileoxidation

Hello there, and thank you in advance for helping me with this! I am working on a program for my class, which is supposed to perform multiple functions on a string that the user enters. I have posted the code that was given to us, as well as one of …

Member Avatar for vileoxidation
0
276
Member Avatar for namasteall2000

Hi - I have a question and I know the answer too but don;t know how to explain my answer - can someone help me in explaining. Consider the two-dimensional array A: int A[][] = new int[100][100]; where A[0][0] is at location 500 in a paged memory system with pages …

Member Avatar for William Hemsworth
-1
214
Member Avatar for nateuni

I have been bashing away at this for hours and am not making any new ground. I have to find the employee that is closest to the all the average. Originally I thought I would just see how far each value was away from the average (eg ageRemainder = averageAge …

Member Avatar for nateuni
0
104
Member Avatar for adcodingmaster

hi guys can any one tell me the difference in architecture of dual core and core-2-duo processor? which one is better? plz reply to both the questions. thnx

Member Avatar for Salem
0
376
Member Avatar for vanalex

Hello everybody! I want to write a program in c that has to open a file (a c program) and count how many char or double declarations have been made in it, so as to calculate the amount of memory that char and double data types will occupy in memory. …

Member Avatar for Protuberance
0
198
Member Avatar for evansjahja

Hi everybody I'm a newbie C programmer and an intermediate VB 6 programmer. I'm currently an 8th year student from Indonesia. (It's above Australia and below Malaysia)

0
24
Member Avatar for ivatanako

hi, i know this is a basic question and i have tried searching GOOGLE but it does not solve my problem. I have a array which is declared as [code] int frameScores[]; [/code] but when i tried to get its size after adding elements by using sizeof, i get a …

Member Avatar for Salem
0
246
Member Avatar for ANNICO

Hello, I am new the the C++ scene and to this website. Can someone assist in Pseudocode for take-home pay? Thank you.

Member Avatar for vmanes
0
30
Member Avatar for edwar

Hi every1, is there some1 how could give a code to sort a text file in c. for example, you write a text in kladblok and you write a code to to sort the text in alphabet. please if there is some1 who knows how to write the code, it'll …

Member Avatar for Ancient Dragon
0
124
Member Avatar for Nathan Campos

Hello, At this times i need to decide something that will chage my life forever, it is: Continue with C++ and the possibility to compile my programs at my HP Jornada 720(Handheld PC) and in my [b]PC only and NOT for my j720[/b], or learn C and start my mobile …

Member Avatar for Frederick2
0
381
Member Avatar for littlewonder

hi, i get an error - 'incompatible types in assignment' for the following code [CODE] #include<stdio.h> int main() { char name[10]; name="Hello"; printf("%s",name); } [/CODE] Any help will be greatly appreciated...

Member Avatar for littlewonder
0
93
Member Avatar for ubi_ct83

i have loaded the string data from file to double array.this is example: const_array[1][]=a1,b1,c3, const_array[2][]=a2,b1,c3, const_array[3][]=a3,b2,c2, const_array[4][]=a2,b3,c1, const_array[5][]=a3,b2,c1, those data need to be compared to this string: append_test_data.this is also an array and it will be changed randomly by d program.the prob is,my prog just compare to the last data …

Member Avatar for ubi_ct83
0
651
Member Avatar for AndrewWood

Hi, Came here to find an answer to a question no one wants to touch. I'm currently doing some work with debugging principles in Windows C and have found a very odd problem when spawning a process. When using CreateProcess with any of the debug flags set on my other …

Member Avatar for IanHannah
0
324
Member Avatar for katwalatapan

Hello, I tried to compile a posix mq_send and mq_receive application. The msg is sent on the queue successfully, but during the receive part, an error occurs. I have attached the send and receive part of the code, please do suggest any corrections. mq_send [code=c] #include <mqueue.h> #include <stdlib.h> #include …

Member Avatar for Protuberance
0
1K
Member Avatar for vivekarora

Hello Friends, I have a huge program having multiple malloc & free. At the end of my program, I wish to print the memory leak which has occured. There are obviously many solutions to this problem. e.g. Simplest one: 1) When you allocate the memory, keep the allocated memory pointer …

Member Avatar for vivekarora
0
300
Member Avatar for vashek

Hi All, this is my first C code in my professional life. I wanted to write a common function to retrieve file content. I do not know whether below code is upto the mark or not. any Suggestions/modifications/tips are greatly appreciated. [CODE] #include <stdio.h> #include <stdlib.h> /* Function Name: get_file_content …

Member Avatar for wildgoose
0
457
Member Avatar for enigma_arien
Member Avatar for rughead

...but in computer&programming area lots of years... Name: rughead Age: 43 Country: Finland (Northern Europe) Programming langs: mainly C/C++

Member Avatar for pythonkid
0
37
Member Avatar for pengbai

Hello, My name is Clark, and an Electrical Engineer. I am interested in Python and C Programming. I learnt a little LaTeX in university. Hope we can learn from each other and improve ourselves. Cheers!

Member Avatar for pythonkid
0
37
Member Avatar for katwalatapan

Hello everyone, I have installed Dev-C++ IDE on my system to run POSIX threads application. The program has compiled correctly. When I try to run the application, I am encountered with the following error Unable to locate component This application has failed to start because pthreadGC2.dll was not found. Re-installing …

Member Avatar for ajay.krish123
0
269
Member Avatar for octavia

Hi :) anyone can help me for my problem 1) how to convert 'unsigned char' to 'unsigned int' ... 2) need more idea about casting for embedded c after making some calculation , value from char typed array element are changed some unknown value which can't be handled. Wanna know …

Member Avatar for ithelp
0
185
Member Avatar for pk09
Member Avatar for 9868
-1
132
Member Avatar for veenaramkrishna

i'm Veena , an engineering graduate passed out in 2001. have a knowledge of C but not in touch with the subject since long time. wana brush up things in C

0
14
Member Avatar for littlewonder
Member Avatar for snprime

Hey guys, I a new CS student taking a class on C and I have a question about passing by reference. I have a problem in which I am trying to open a file called reportFile. The problem is that when I try to do this using a function, as …

Member Avatar for snprime
0
140
Member Avatar for ivatanako

this is a java code, i need to convert it into C. [CODE] private void addFrame (int toAdd) { int[ ] frameScores = new int[0]; totalScore = totalScore + toAdd; if (frameScores.length < lastFrameNumber) { int [ ] temp = new int [frameScores.length+1]; for (int k=0; k<frameScores.length; k++) { temp[k] …

Member Avatar for ivatanako
0
165
Member Avatar for pdwivedi

[code=C]#include<stdio.h> struct book { char name[25] ; char author[25] ; int callno ; } ; int main() { struct book b1={ "Let us C", "YPK", 101 } ; printf("name=%s",b1.name); printf("\nname=%s",&b1.name); return 0; } [/code] can someone explain me why i am getting the same output while i am using two …

Member Avatar for Salem
0
98
Member Avatar for Nathan Campos

Hello, Because of my new and the most of the future projects, i'm needing to learn C and use Windows, but because of this, i don't know how to use the Windows API, then i'm asking for an example of using DeleteFile function. Thanks, Nathan Paulino Campos

Member Avatar for marco93
0
159
Member Avatar for anne_lise

hi i am trying to use incbet.c alone . it is presently availabe as library (with its makefile) as given below . i wanted to know all the files used by incbet.c . i dont know details about make file . i tried to to look at GNU tutorial on …

Member Avatar for Salem
0
212
Member Avatar for hoke

Hullo. I would be very nearly eternally grateful if someone would explain how to convert a void pointer's target (eg 0xda9f000) into a string in C. Both my own brain and google have failed me on this one. I can do this in printf using the wonderfully inelegant line: printf("Value:'%p' …

Member Avatar for Nathan Campos
0
6K
Member Avatar for ksan

[LEFT]i have an assignment to make a bus reservation system that will return in main 35 times and increase the ticket number,using function arrays,and looping and can anyone help me ive been doing this assignment for 3 weeks now and i cant do it. [/LEFT]

Member Avatar for MrNoob
0
187
Member Avatar for D.JOHN

Dear experts, I am new to the subject of bitwise operator. I know some of the basics like the gates and how the gates function eg. and gate, or gate, exclusive nor gates. And also how to change decimal numbers to binary numbers. But I am not quite sure about …

Member Avatar for D.JOHN
0
804
Member Avatar for priyairani00

what will b the coding of a program.. "program to swap two no. using third variable"

Member Avatar for priyairani00
0
106
Member Avatar for katwalatapan

Hello, I would like to work on POSIX thread programming using TC v3.0. The required libraries for its development are STL (that's what I got from some online research). Could anyone please let me know: 1.) Where to download STL libraries. 2.) How to configure them with TC v3.0 3.) …

Member Avatar for Ancient Dragon
0
150
Member Avatar for Dave Sinkula

Many years ago I was wandering through some SNMP code trying to port it to a Rabbit 2000. I'd guess that not many are familiar with this device -- it's an 8-bitter, and I had no operating system or dynamic memory. So there were several issues in addition to the …

Member Avatar for Dave Sinkula
0
189
Member Avatar for oualioualou

Hi everybody, I'm new here, I develop in C, C++, VB.Net , C#.net . I hope that I can help some of you and you helping me sometimes ;) See you soon on one of the threads !!

Member Avatar for edhardy
0
20
Member Avatar for MrNoob
Member Avatar for kyumi419

guys.. i hope you could help me out here.. we are currently in iterative and conditional statements.. problem is making a [I]pyramid[/I] using asterisks. for example, if the user input 6, that would be the height of the pyramid, while the body starts at 1 and increases by 2 each …

Member Avatar for kyumi419
0
157
Member Avatar for chixm8_49

Good day everyone! I would like to ask some problem about the program I am currently working (hangman to be specific). Since I am just a beginner, there are many things I would like to clarify. I would like to ask your help so that I can enable more to …

Member Avatar for codeguru_2009
0
200
Member Avatar for Moonbaby

Can anyone help me solve this word equation it is for a simple homework assignment and the professor was having problems with his computer and now I am left in the cold. I need a detailed answer and the formula.. Thanks so much and I may not even been in …

Member Avatar for Ancient Dragon
0
97
Member Avatar for anujsharma

Hi, I urgently need some help on system date and time.Here's the code [code=c] #include<stdio.h> #include<time.h> main() { time_t rawtime; struct tm *timeinfo; time(&rawtime); timeinfo=localtime(&rawtime); int hour2; int minute2; int seconds2; char end1[5]; int end=0; char diff[5]; char start[5]; int i=0; char ch[5]; char ch1[5]; FILE *fp2; FILE *fp1; FILE …

Member Avatar for anujsharma
0
144
Member Avatar for furqankhyraj

i want to make a program in which if we input 98765 than it give output as 9 8 7 6 5 please help me

Member Avatar for Ancient Dragon
0
106
Member Avatar for azn_sweet

[code] /*Output Section */ printf ("\nThat height is equivalent to " "%1f" " feet and " "%2f" " inch(es).\n"); scanf ("%f", &FEET); scanf ("%f", &INCHES); [/code]

Member Avatar for Aia
0
100
Member Avatar for azn_sweet

I need help with this assignment for my computer programming class..... I honestly have no idea what Im doing!!!! Convert a person's height from meters into feet and inches (rounded to the nearest whole numbers) and display the result on the screen. The height must be entered by the user …

Member Avatar for Salem
0
161
Member Avatar for furqankhyraj

[code]#inclxude<conio.h> #include<stdio.h> #include<stdlib.h> max(int a,int b,int c); void main (void) { clrscr(); int a,b,c,max; long z; printf("input three numbers by giving space"); scanf("%d %d %d",&a,&b,&c); z=max(a,b,c); printf("Max value is %lb",z); getch(); } void max(int a ,int b,int c ) { if(a>b&&a>c) return(a); if(b>c&&b>a) return(b); return(c); }[/code] i make that program …

Member Avatar for yellowSnow
-2
102
Member Avatar for katwalatapan

Hello, I am trying to work learn thread programming in C. I have my turbo C installed and its working fine. I tried to get the library "pthread.h" and relater STLport package by searching online and managed to get them and copied them in my include directory. But while compiling …

Member Avatar for Salem
0
164
Member Avatar for rakesh_01

Guys I'm supposed to write a program that displays the date and time using C along with username and password inputs I came up with the following code [code] #include <stdio.h> #include <termios.h> #include <unistd.h> #include <time.h> #include <curses.h> #define PASS_LEN 25 int current_getch; int doloop = 1; static WINDOW …

Member Avatar for Salem
0
172

The End.