15,551 Topics

Member Avatar for
Member Avatar for panagos

I have [COLOR="Green"][B]installed NetBeans IDE 6.7.1 and installed the MinGW compiler[/B][/COLOR] for the C/C++ plugin, all was ok until [COLOR="Red"][B][U]i have to use <ncurses.h>[/U][/B][/COLOR] for a project and it doesn't exist. [COLOR="Red"][B]Can you please tell me where to get it and how to install it???[/B][/COLOR] plz...it's for a paper in …

Member Avatar for necrolin
0
258
Member Avatar for jjepoy

I dont really know how the whole program works. ?_? especially the first one. can someone tell me please. [CODE]#include<stdio.h> int dec_bin(int bin) { int x, y; x = y = 0; for(y = 7; y >= 0; y--) { x = bin / (1 << y); bin = bin …

Member Avatar for necrolin
0
134
Member Avatar for Eko

Hi guys , In Visual Studio 2005 I compiled the following code [CODE] int main() { float a; a=0.1; if(a<0.1) { printf("C\n"); } else { printf("C++\n"); } } [/CODE] I was very surprised when I saw the output C++ . I got the warning C4305 :" '=' : truncation from …

Member Avatar for dwayneb
0
5K
Member Avatar for MrNoob

hey i m reading about pe format but there something that i don't get RVA in documentation it says it just like a temp for addressing memory in other sections ok and it's just a DWORD what if there are many temperoralily variables wouldnt that overflow the that RVA value …

Member Avatar for MrNoob
0
470
Member Avatar for Samyx

Hi everyone, My program is doing what it suppose to do, except that it generates a loop with the answer. ... ERROR in uniform.discrete_uniform(): a=100 b=99 ERROR in uniform.discrete_uniform(): a=100 b=99 ERROR in uniform.discrete_uniform(): a=100 b=99 ERROR in uniform.discrete_uniform(): a=100 b=99 ERROR in uniform.discrete_uniform(): a=100 b=99 ERROR in uniform.discrete_uniform(): a=100 …

Member Avatar for Samyx
1
149
Member Avatar for ujjwalgoody2

the question is: there is no zero in the number system.there are separete characters denoting ones,tens,hundreds, thousands, ten thousands.....etc... I for one(its a vertical line and not 1) n for ten 9 for hundred 8 for thousand r for ten thousand (the actual egyptian hieroglyphys were more picturesque but followed …

Member Avatar for Tom Gunn
0
148
Member Avatar for rakeshbk402

hello. I need to know what is & where actually the usage of const static variable, const volatile variable, static volatile variable is used. thanks, with regards Rakesh.

Member Avatar for MrNoob
0
62
Member Avatar for geoffy0404

[CODE]#define ADDITION = addition #define SUBTRACTION = subtraction #define MULTIPLICATION = multiplication #define DIVISION = division #define MODULAR = modular #endif int main() { int userInput = 0; int userInput2 = 0; int userInput3 = 'A', 'S', 'M', 'D', 'Q'; int sum = 0; // modular is q while m …

Member Avatar for Gaiety
0
213
Member Avatar for sweetjhin

uhm .. Good day everyone. I would just like to ask if anyone knows what code to use in Turbo C wherein the user will input the year and the program will output the calendar for the whole year. Please help me. Thanks a lot :)

Member Avatar for sweetjhin
1
109
Member Avatar for speedy94519

Hello you guys. Im doing this one homework assignment and i really need some help. My question is, How would you write an if statement that excludes the blank space and how would you write an if statement stating that its magenta when its inside the red space with the …

Member Avatar for necrolin
0
160
Member Avatar for speedy94519

Hello you guys. Im doing this one homework assignment and i really need some help. This is the problem: In the grid below, each row/column intersection is a different color. Write an if-statement, possibly including many nested ifs and elses, to assign the right colors to each row and column. …

Member Avatar for BestJewSinceJC
-1
87
Member Avatar for Marton

Hi, I need a bit of help with this function... What I'm trying to do is call the function with a string, XOR it with value 255 and save it to the file. If I put a value of 0 to the XOR (leave as is) then it works properly, …

Member Avatar for dkalita
0
135
Member Avatar for jjepoy

can someone help me to make this program look like this. example [img]http://www.ljzsoft.com/xlcalendar/sample/calendar_one_sheet_2x6.gif[/img] because some of the year cant display. [code]#include<stdio.h> #include<conio.h> int Calendar(int daycode,int year,int leapyear); int main(void) { int year; int daycode; int leapyear; for(year=1994;year<2000;year++) { leapyear=(!(year%4)&&(year%100))||!(year%4); daycode=((year-1)*365+((year-1)/4)-((year-1)/100)+((year-1)/400)+1)%7; Calendar(daycode,year,leapyear); } } int Calendar(int daycode,int year,int leapyear) { int …

Member Avatar for WaltP
0
97
Member Avatar for hunvilr

Hi, This is an existing code from a website which is supposed to find a desired string in the file and replaces it on its occurance. I tried compiling this code n it doesn't seem to append the string Replacetext(Help) in the FILE fp. But however it does write into …

Member Avatar for WaltP
-1
97
Member Avatar for jjepoy

it keeps on saying '{' token error. did I put something wrong that the program keeps on saying '{' token error? [code] #include <stdio.h> #include <math.h> int Calendar(int daycode,int year,int leapyear); void dec_bin(int bin) { int x, y; x = y = 0; for(y = 7; y >= 0; y--) …

Member Avatar for jjepoy
0
101
Member Avatar for rhine2

Hello I am trying to develop a small program that will periodically (say every 6 hrs) calculate my ISP broadband speed (both up and dn stream) and display on my router GUI's WAN page. I am thinking of say, start a Linux timer, start down/uploading a file of a known …

0
50
Member Avatar for shahab.burki

Hi, I am newbie to network programming in C. I want to implement a file transfer program in C on a Linux environment . I am sending the file name to the server and tries to print it on the server. But the server doesn't print it. I think I …

Member Avatar for Dave Sinkula
0
111
Member Avatar for Grn Xtrm

Hello friends. I'm trying to write a program that accepts an odd number from 1-9 and outputs the diamond of asterisks as follows [code] user enters 5 _ _ _ * _ _ _ _ _ * * * _ _ _ * * * * * _ _ _ …

Member Avatar for Dave Sinkula
0
4K
Member Avatar for hcredence

Basic structure of main.c: int main () { Open the file data.txt and obtain the file handler fh; Create a thread my_thread using pthread_create; pass fh to my_thread; Wait until my_thread terminates, using pthread_join; Print out how many lines exist in data.txt. } Basic structure of thread_function.c: void *count_lines(void *arg) …

Member Avatar for Arcaiz
0
113
Member Avatar for MrNoob

hi i m sorry for this noob question but there something i don't get i was reading abt File format like PE for example i was wondering how is C unverisal on MAC win and unix since they use diffrent file format does C takes care of each file format …

Member Avatar for MrNoob
0
288
Member Avatar for sara_84

i found this code in C++ but i can't convert it from C++ to C, help me please i don't know C++. [code=cplusplus] #include <iostream> #include<stack> #include<stdio.h> #include <string.h> using namespace std; #define MAX 10000 /*class node{ int */ unsigned int graph[MAX][MAX];// = { { 0, 1 },// 0 1 …

Member Avatar for reyatata
0
974
Member Avatar for MadSkyrim

I am making client and a server program. The server pulses out a packet of information and the client is supposed to receive it. This works fine so long as the programs are running on the same machine. I need it to work on any machine in a given network. …

0
83
Member Avatar for dkalita

hi I want to retrieve the contents (including the tables) from a .doc file using C in linux. If I can get the representation of the .doc file, then also I can proceed. I have though done that but it has some bugs because I am using a logic which …

Member Avatar for dkalita
0
161
Member Avatar for kumar rohit
Member Avatar for gerard4143
-3
48
Member Avatar for MadSkyrim

I have an assignment due in 2 days and I've hit a bit of a wall. I have a client program which receives parts of a file from multiple servers and combines them into the original file. The client can receive the files without a problem but wont combine them …

Member Avatar for MadSkyrim
0
95
Member Avatar for jrkeller27

I am writing a sample chat-like function to learn how to use sockets in unix. I am using gcc. To send between clients of a tcp connection I need to encapsulate a bunch of different data: [code=c] typedef struct { short type; int messageID1; int messageID2; short messageID3; int ipAddr; …

Member Avatar for gerard4143
0
776
Member Avatar for ekun

i'm using turbo c++ 4.5,, now i have structure like this : [CODE] struct name{ char firstName[15]; char lastName[15]; }; struct student{ char id[11]; name n; float ipk; char major[15]; }; struct student s[5]; [/CODE] how to make function to fill and to printf the s[]? thanks alot for helping …

Member Avatar for Ancient Dragon
0
73
Member Avatar for MrNoob

hey i m here supposed to extend calculator of K&R to support getline i made it but i dunno everytime i keep getting 0 poped not the numbers itself i debuged it i couldn't find where the bug is so hopefully someone will tell me what i m doing wrong …

Member Avatar for MrNoob
0
163
Member Avatar for allensmith

I have to manipulate strings so that, we need to check if a string needs to be combined with another string. Need to use a library function for this. Suppose, we have S1. This is an apple s2. apple is sweet so, the combined line should be: This is an …

Member Avatar for c coder
0
87
Member Avatar for M Arifur Rahman

I want to get the reverse of the 5 digit number but i'm not getting it. I don't know where is the problem.I'm a beginer.In my book book there is a similar kind of problem where it's mentioned that the input value should be less than 32767.my question is why? …

Member Avatar for c coder
0
103

The End.