48,985 Topics

Member Avatar for
Member Avatar for iamhe

This is giving me a headache...can someone please tell me why these statements ARE NOT equivalent? Statement 1.) if(running_result && shell[8 * (x - 1) + (y - 1)].input_val) running_result = true; else running_result = false; Statement 2.) running_result &= shell[8 * (x - 1) + (y - 1)].input_val; ------------------------- …

Member Avatar for iamhe
2
162
Member Avatar for majuti

Need an up to date tutorial for using C++. It has been a few years since I've had my last C++ class and since I don't use it on a daily basis, I forgot a lot that I had learned before. Need basic information and some beyond for programming. I …

Member Avatar for vijay choudhari
1
119
Member Avatar for beezybeem

1st time trying to do C++. I need direction of how to write this program. Thank you. Specification: Follow the coding style guide lines of codingStyle.doc A small postal system ships packages within your state. Acceptance of parcels is subject to the following constraints: 1. Parcels weight <= 50 pounds …

0
76
Member Avatar for talk_positive

Hi, I'm Anoop. I am doing my masters in computer application degree. In our course we learn computer science subjects and C, C++ & Java prog languages. I am also keenly interested in music and am playing keyboard for the past 4 years. I still have 1 and a half …

0
77
Member Avatar for damionspencer

Dear God, I've been trying to write this program that is suppose to read in a text file manipulate in and give the following out put infact here is the question Implement a program that uses a form-letter template to generate form letters. Your program should read in a form-letter …

Member Avatar for soniprafull
0
153
Member Avatar for Transworld

Would I have to go about doing the math manually and make my own function? Is there some built in function I can use to be lazy? Is there some totally easier way that I am oblivious to?

Member Avatar for Transworld
0
646
Member Avatar for sonu_saini_76

Please give me any idea about how to download a web page from https sites using VC++. ie how it generates url and open that page.Its very urgent for me...... Regards SAINI ;)

0
46
Member Avatar for mister-fett

(I have already posted this in code snippets, but I am posting it here to because some people may not read the post in code snippets because they are not interested in code snippets. Main point: I posted it here so more people would see it. ;) ) I would …

0
58
Member Avatar for mister-fett

I would like to get into two dimensional game programming, and have even taken the time to outline the game: I AM NOT ASKING FOR THE WHOLE CODE. I simply want to know :?: The commands that allow this kind of object based manipulation of graphics and text, as well …

0
93
Member Avatar for Mahen

hi everyone, am sorry but i have to bother you again. Here is my question. Firstly I want to know how to include asm programming in C. Secondly, is there a way to convert hex into asm in C. Thanks for all your responses. :)

Member Avatar for Chainsaw
0
96
Member Avatar for paul niten

I WANT OT KNOW HOW TO WRITE APROGRAM WHICH IS GIVEN ONE OR MORE STRING AS COMMAND LINE PARAMETER AND WHICH BUILDS A LINKED LIST HOLDING COPIES OF THOSE STRING (I.E EACH NODE IN THE LIST SHOULD CONTAIN A STRING AND A POINTER TO THE NEXT NODE). tHE ORDER IN …

Member Avatar for FireNet
0
158
Member Avatar for Francisco

Hi buddies! I need help with this(don't worry 'bout the bad tittle!) Write a program that inputs the years in the range 1994 to 2004 and uses the for-loop repetition to produce a neatly printed out calendar. NB. Watch out for leap years. Hint: To calculate the start date use …

Member Avatar for frrossk
0
137
Member Avatar for big buc's fan

This might be a oversight by me but when I compile and the programs runs I get this error:park.cpp(11) : error C2065:'hours' : undeclared identifier [B]if (hours<=3)[/B] this is code from my program park.cpp(34) : error C2447: missing function header (old-style formal list?) What is this------->(old-style formal list?) Maybe I'm …

Member Avatar for frrossk
2
448
Member Avatar for Mannix16

Hey guys, Quick question about strings. Check out this piece of code: #define compare_them(x,y) ((x) > (y) ? (x) : (y)) main() { cout<<compare_them('A','B')<<'\n'; cout<<compare_them("X","Y")<<'\n'; return 0; } The output is B, X. Obviously B has a higher ASCII value than A so it is larger. However when it comes …

0
82
Member Avatar for raar

hi all, i'm an intermediate programmer in c++ and vc++ i know little in mfc . this year is my last year in collage and i must decide a graduation project. can anyone help me by suggesting any ideas for a project thx nd sorry for time :lol:

Member Avatar for FireNet
0
106
Member Avatar for A Monkeys Uncle

Ok, I'll be taking a C++ course soon, and I want to use a class (in college) that was very difficult for me to get an idea of what I'm looking at since browsing around C++ looks very complicated. In comparison to a college level calculus class how does it …

Member Avatar for Killer_Typo
1
2K
Member Avatar for kohkohkoh

[color=blue]I've just wrote this program and when i compile, there is an error at the red color fonts.[/color] [color=blue]Can i know what's the error?[/color] [color=#0000ff]thank you.[/color] char quest; char words[50]; int count; int z; ofstream file; file.open("WORDS.txt" , ios::app); file.close(); cin.ignore(50,'\n'); cout << "\n\n Please enter the word that need …

Member Avatar for gusano79
0
143
Member Avatar for shouvik

help. this programme shows linking error!!! :cry: :cry: :cry: #include "diction.h" int Dictionary::find_word(char *s) { char word[81]; for (int i = 0; i < nwords; ++i) if (stricmp(words.get_word(word),s) == 0) return i; return -1; } void Dictionary::add_def(char *word, char **def) { if (nwords < Maxwords) { words[nwords].put_word(word); while (*def != …

Member Avatar for Pietro
0
226
Member Avatar for XianBin

the book "Effective C++" have a item introduce cosnt,but a question i dont understand clearly. [code] class GamePlayer { private: static const int NUM_TURNS = 5; // constant eclaration int scores[NUM_TURNS]; // use of constant ... }; const int GamePlayer::NUM_TURNS; // mandatory definition; // goes in class impl.file [/code] why …

Member Avatar for FireNet
1
219
Member Avatar for iamboredguy

Since no one cared to answer my thread posted earlier, :mad: I'm posting the question again. I have this project to do and I want to use coloured text and some simple shapes, etc. But the problem is that my compiler does not support graphics.h or dos.h. Even my tclite …

Member Avatar for fishman
0
145
Member Avatar for xxraveteddyxx

were do i start? i just want to find a text template write code and then compile and learn c++ were do i go about starting on this compiler..i write basic code to start off but it wont let me pick "compile" and i want to know were the hell …

Member Avatar for Chainsaw
1
111
Member Avatar for Sphyenx

on other programming languages, but none on c++, do you know any free ebooks out there on C++?? (no ebooks are not illegal)

Member Avatar for Asif_NSU
0
172
Member Avatar for vivekgalatage

Hi i want to convert my C project to C++. so does anyone knows any tool that converts a C program to C++

Member Avatar for Chainsaw
1
193
Member Avatar for jwilcox

Could some one help me with writing this code in C++. I'm taking a course called PSP, personal software process. The program i have to write is : store and retrieve a series of n real numbers into and from a file. On entry, the program should accept integer or …

Member Avatar for jwilcox
1
185
Member Avatar for Sukhbir

1. int *f() { int *m=(int *)malloc(2); return m; } WHY THIS POINTER TO INT TREATED AS A GLOBAL VARIABLE. 2.can a pointer points to another pointer like that int *p,i=2; int *q; p=&i; q=p; IS IT RIGHT.

Member Avatar for let us c
1
147
Member Avatar for fyrphnx

I'm trying to write a program in complex arithmatic for my math class. The text I have gives me the following for addition: typedef struct FCOMPLEX {float r,i;} fcomplex; fcomplex Cadd(fcomplex a, fcomplex b) { fcomplex c; c.r=a.r+b.r; c.i=a.i+b.i; return c; } but my compiler refuses to accept it. it …

Member Avatar for fyrphnx
1
103
Member Avatar for Mr.PinkBunny

[COLOR=Magenta]Everytime I open up a project that I ever made, and try to build it, it keeps complieing all of these other files that i've never seen before, and it gives me about 300 errors. I don't know what to do. I can't even use it, everthing has these files. …

Member Avatar for Chainsaw
1
91
Member Avatar for Sandra John

Hello ! I am using Turbo C++ compiler and I am trying to implement Dictionary using arrays. All my menu options work perfectly but finally when I give exit option the program comes out of Turbo C++ and gives a window saying "The program tried to execute an invalid instruction …

Member Avatar for Chainsaw
0
85
Member Avatar for Sphyenx

im nto a programmer, and i wanna start im gonna pick the book up tommorow, i need a good book, i mean a good book that wil build the back bone to my future!/ lol. i mean a simple book for non programmers

Member Avatar for XianBin
0
109
Member Avatar for Mr.PinkBunny

[COLOR=Blue]I've been studying VC++ for about 2 months, and I was working on my first game from a book (Game Programming All In One) The game is 'Craps', it's a dice game. Anyways, I've had a few prolems with the codeing, can someone help me? (Windows 32 Console) Here is …

0
62

The End.