51,593 Topics
![]() | |
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 … | |
Okay, so I feel dumb.. I'm trying to ./configure something, but it comes up with an error saying that I don't have an acceptable C Compiler... Fair 'nuff... The question is, where do I get one, how do I install it. I've been scouring the web now for two and … | |
![]() | [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 … | |
In my program i will be taking two inputs, lets say two integers. If the number of input is more than two the program will exit. If it is two then the loop will be executed and after that it will again ask for two new inputs-- and will continue … | |
I need to submit 23 programmes in C++ in school by Monday. plz somebody provide me with only 3 programmes one on Inheritance, one on structures and one on classes... Very urgent plz. Plz post a programme that is probably of 12 to 13 lines or more... It would be … | |
Help required in files. SOME example to explain it please...........????????????? | |
I've scanned a lot of C++ sites but have not found an answer yet. In several pre written programs, I've noticed that a single brace "{" is used without being closed later in the program. It appears like it is used to go outside the program to get info. like … | |
Ok my problem is i have a struct and im tring to ready a line into the array of structs using fstream. here is the code i have its just a basic layout of what will come later on. but here it is :) [code]// file: main.cpp // author: Kyle … | |
hi, How socket programming is done in c++ for window? how to use port in c++? | |
Hello, I started learning C about 2 days ago, and now I have come to a problem that I can't figure out why I am getting the result I am getting. I bought a book, and I have proceeded quickly through it until now. The problem I was given was … | |
just need a little help wit comparing two int arrays and return the value as bool. help: #include<iostream> #include<iomanip> using namespace std; using std::setw; bool compare(int[], int[]); int main(){ const int correctarraysize=5; const int pupilarraysize=5; int resultarraysize=5; int pupilarray[pupilarraysize ]; int correctarray[correctarraysize]={1,2,3,4,1}; bool resultarray=0; cout<<"\n\nEnter pupil's results:"<<endl; for(int k=0;k<pupilarraysize;k++) cin>>pupilarray[k]; … | |
![]() | after words are been entered by the user, it saved in the file.txt as address something like 0047D123. what should i do if i want it to be appeared as in full character?? thank you! #include <iostream> #include <fstream> using namespace std; int main() { char words[50]; char *p = … ![]() |
I'm trying to use sequential binary file editing in C++. I use a temporary file. I have to make the changes in the file by storing the modified data in the temp file. Then I delete the original file and rename the temp as the original. The problem is the … | |
I want to find out how Visual C++(Windows Programming) is used to access and manipulate data in the database using ODBC. | |
Consider The Following Statements *p++=*(p++) These Two Are Equals.can Someone Explain Me How. Is Parentehsis Not Alter The Behaviour? :?: | |
What's the coolest program you've ever written in regular C++, not Visual C++? | |
can somebody give me an idea as to how do i go about developing a C++ application with capabilities of calling a number, answering calls etc. | |
![]() | based on the forum at [url="http://www.daniweb.com/techtalkforums/thread6305.html"]http://www.daniweb.com/techtalkforums/thread6305.html[/url] i tried to change the color but still only black and white screen. can anyone show me a simple example, so i could learn from there... i'm learning c++; thank you. |
i m just learning pointer in c++. and i coded a program. however the output is not wat i wanted. :?: [code] #include <iostream> using namespace std; void descending( int *, const int ); void ascending( int *, const int ); int main() { int input[10]; int *p = input; … | |
I recently bought the "Teach Yourself Game Programming In 24 Hours" and it doesn't seem to be helping me much. The book gives you code for a game but really doesn't explain it or tell you how to use it in your own game. I am attempting to make a … | |
Hi im programming a program thats going to count how how many doussins,grosses and pieces. there are if you enter a number. (just so u know ive started programming 1 week ago and havent programed alot cause school started) ok heres my problem: when i enter 502 pieces it says … | |
Sorry Inscissor, I couldnt approve the reason why you closed that thread. I think learning about viruses can be quite educational. If no one studied about viruses it would not have been possible to make anti-viruses. Learning to know how to create viruses or atleast discussing about viruses is no … | |
working on a project on c++ consol application and need to change the color of a specific letter in a text on the output screen 4 example : [COLOR=SandyBrown]V[/COLOR]Ie[COLOR=Red]w[/COLOR] pllz help thx :confused: | |
Can I create a virus with c or c++? [SIZE=5][FONT=Fixedsys]Will anyone teach me how to do it?[/FONT][/SIZE] :( :twisted: Why doesn't anyone add to my reputation? :cheesy: | |
I am using Microsoft Visual C++, and when i try and compile something i either can't or i get " Cannot compile the file in 'C\Program Files\Microsoft Visual Studio\Common\tools\H1.h'; no compile tool is associated with the file extension" I have placed it in so many different places and each time … | |
I am stuck on this problem..you are supposed to locate the error in the segment of code: char var1, ptr1; var1='X'; ptr1=&var1; Can someone please help me figure this out. It is much appreciated. |
The End.