15,551 Topics
| |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
[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 … | |
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 :) | |
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 … | |
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. … | |
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, … | |
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 … | |
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 … | |
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--) … | |
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 … | |
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 … | |
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 _ _ _ * _ _ _ _ _ * * * _ _ _ * * * * * _ _ _ … | |
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) … | |
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 … | |
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 … | |
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. … | |
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 … | |
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 … | |
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; … | |
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 … | |
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 … | |
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 … | |
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? … |
The End.