19,876 Topics

Member Avatar for
Member Avatar for nikhil91

Hello...i m nikhil i m student of comp engg. Nw we are doing work on project..but we hav some problems in it..i request u ..plz help me in my project i send u..my project nmae..plz give me fast reply...m waiting for u r reply.... MY SUBJECT QUESTION IS Que: My …

Member Avatar for matome
-4
74
Member Avatar for Sapreaver

I have been coding for a little bit in VB mostly and decided to try C right all is dandy until I try using a function I am getting a conflicting types error in function encrypt here is my beautiful code [CODE]#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) …

Member Avatar for Sapreaver
0
5K
Member Avatar for Dlearner

Hi , I want to know, how to implement vtable in C. This is achieved through virtual functions in C++. I feel we need to do what c++ compiler internally does, But i am not sure on the entire implementation. Thanks.

Member Avatar for Dlearner
0
5K
Member Avatar for NinjaLink

I am currently having problems with my getline in main. Whenever I use it, it prints out the last word in my input file twice. I do not know how to get rid of it. Any help is appreciated. [B]Input file:[/B] noon dog race car cat mom bob [B]Current Output:[/B] …

Member Avatar for NinjaLink
0
100
Member Avatar for popcorn99

I made a simple program: [CODE] #include <stdio.h> int main() { printf("Please enter a value: "); int uservalue; scanf("%d", &uservalue); printf("The value entered was: %d", uservalue); return 0; } [/CODE] As you probably already know, this program has many faults. The ones I found are: 1) The program malfunctions weirdly …

Member Avatar for dkalita
0
89
Member Avatar for indianscorpion2

hi i am having a problem with this code.for every input i am getting the same answer 32.any help would be highly appreciated [CODE]/*program to find the factorial of a given number*/ #include<stdio.h> main() { int n,fact; int facto(int ); printf("\nenter the number for which you want to find the …

Member Avatar for sanjeevtanwar
-1
395
Member Avatar for saisrk

Program to identify the colors in a picture. code can be in any language

Member Avatar for csurfer
0
49
Member Avatar for red999

I keep getting this error whenever I stop my program and I am wondering am I freeing memory right. This is my structure and I created a global array named day. [CODE]typedef struct { int hour; int minute; } Time; typedef struct { Time startTime; Time endTime; char subject[20]; char …

Member Avatar for Aia
0
281
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
263
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
137
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
479
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
152
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
150
Member Avatar for cwats124

Even though I am 8 :), I WANT to make an OS. Something to be proud of. I normaly use VB but I am now starting a bit of C++ programming. Thanks , Campbell

Member Avatar for pspwxp fan
-1
134
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
64
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
216
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
110
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
162
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
88
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
139
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
101
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
99
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
103
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
54
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
117
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
116
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
320
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
990
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
85
Member Avatar for Sphero

Hello, I created a new maskedtextbox and gave the mask property the value 000.000.000.000, which should act as an IP address box. Now, when I open my configuration panel and configure my IP address, it jumps to the next mask while pressing the . key. Is there any way to …

0
44
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
168
Member Avatar for kumar rohit
Member Avatar for gerard4143
-3
49
Member Avatar for PyroPaul2

Hi all. Could anyone give me a pointer please? I've almost finished a project I'm working on but have one last issue to resolve. I have an image on a form that I apply a colour gradient to. However, when I grab this to create a bitmap (this.DrawToBitmap(BackGroundBmp, BackGroundRect);) I …

Member Avatar for DdoubleD
0
317
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
96
Member Avatar for UmH

hi , i'm new in programming world i want to write c++ class in c it was ok .. when i change to c++ i've problems [CODE] #include <iostream> using std::cin; // using std::setprecision; using std::cout; using std::string; using std::endl; // using std::streamsize; class STD1{ int id; string name ; …

Member Avatar for dattu mhaismale
0
171
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
830
Member Avatar for shaifymehtadnn

1. Develop sigma and pie bonding and anti bonding molecular orbitals of 2s and 2p

Member Avatar for ShawnCplus
0
32
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
75
Member Avatar for pymatio

Attached is a project that lets you control a sports league. If you enter these teams: [CODE] FOO A FOO B BAR BAZ [/CODE] & the restart the program it should print out something like this: [CODE] FOO A vs BAR FOO B vs BAZ [/CODE] but it doesn't it …

0
85
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
165
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
97
Member Avatar for neithan

I'm new to C++, and i've seen some C and C++ code. I tried array[] and vector<> so i see i can use both, why should i use what way to work with vectors? Furthermore, i've seen a lot of "array[]" in this forum... so, any lead? Thank you! Oh …

Member Avatar for neithan
0
385
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
105
Member Avatar for Zohar

Hi, This is a very basic question, but I can't seem to get working, I've a set of numbers that I need to display in the following, this is a class function btw. The ouput should be something like { 1, 2, 3, 4, 5} (there are {} brackets and …

Member Avatar for Zohar
0
268
Member Avatar for prinju

can any one give me a c program for finding the length of the string and also to compare it with other strings with the help of linked list

Member Avatar for DangerDev
0
91
Member Avatar for suricata

I have this code: [code]typedef struct { unsigned short a, b, c, d, e, f, g, h; }est_; est_ est[512];[/code] I want to know if there is a way to access to a variable of est by this kind of thing: [code]var='a'; est[1].[var]=0;[/code] Yes, it doesnt work but, there is …

Member Avatar for suricata
0
261
Member Avatar for tgir

Hello, i am a final year student in engineering and my project require me to write an algorithm to solve a puzzle problem.Actually, my project is on a 3x3 warehouse space where items need to be stored and retrieved.how do i get started with writing the algorithm? i already made …

Member Avatar for tgir
-1
169
Member Avatar for froggy1976

Good evening, I am writing a program in C++ for a Tic tac toe game. Here are my directions: Create a C++ console application that allows two players to participate in a tic-tac-toe game. The program will be responsible for deciding who wins the game. The program should include the …

Member Avatar for froggy1976
0
330

The End.