48,985 Topics
|
|
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; ------------------------- … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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? |
|
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 ;) |
|
(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 … |
|
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 … |
|
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. :) |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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: |
|
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 … |
|
|
[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 … |
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 != … |
|
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 … |
|
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 … |
|
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 … |
|
on other programming languages, but none on c++, do you know any free ebooks out there on C++?? (no ebooks are not illegal) |
|
Hi i want to convert my C project to C++. so does anyone knows any tool that converts a C program to C++ |
|
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 … |
|
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. |
|
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 … |
|
[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. … |
|
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 … |
|
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 |
|
[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 … |
The End.