49,761 Topics
| |
Student Problem: "I am trying to get the code below to compile which is from my textbook [I]"C++ How To Program (6th Edition)"[/I] Fig. 4.9. However, I keep getting the "Fatal Error LNK1561: Entry Point Must Be Defined" every time I try to build the code." What I Know So … | |
Hi, I am trying to use strings, and even a simple program like this doesn't work. [CODE]#include <iostream> #include <string> int main() { string Hello; Hello = "Hello world!"; cout << Hello; cin.get(); }[/CODE] I am using Borland C++ 5.0, and it gives me this error. "String does not name … | |
In my c++ book they give a program that finds the prime numbers between 1 and 100. The problem I am having trouble understanding is the logic of the second for loop. I know what it does but not how, if that makes any sense. [CODE] #include <iostream> using namespace … | |
Hi, I've been writing a program that encrypts and stores passwords (it's for uni, I'm a newbie), and I'm having a problem with some misbehaving variables. I hope someone can shed some light on it for me. :) I have a function which takes a string as a parameter and … | |
Hi, I'm looking for help writing a program to check an input file for errors in its pattern. Basically, I've got a file of thousands of lines like this: "70 20000731 210202 19 36005 354 55.369 -37.207 -54 0.847 491 0.981 0.985 278977" I have no trouble opening the file … | |
Hello, I've attached my code, I keep getting the Debug Assertion failed, Expression: string subscript out of range error I can't find any errors in my logic and code for the functions, but obviously something is wrong, no matter where I put breaks, i still get the error when debugging. … | |
hi all i need some help with time.h for in the following: i want to make a programme in which while time is 12:00 PM, It prints a Web-page USING time.h thx,,,, kim00000 | |
I have an assignment to write a program using 1D and 2D parallel arrays with input coming from a .data file given to us. I am nearly a complete novice with writing code and right now I am having a very hard time getting my program to write any values … | |
I AM HAVING A HARD TIME WITH STRINGS. I DO NOT FULLY UNDERSTAND IT. THIS IS FROM A BASIC INTRO C++ CLASS HW PLEASE HELP THIS IS THE QUESTION Write a program that uses cin to read a given name (like Louis) and a family name (like Armstrong) into two … | |
aslmolikum im new member here, hope u ppl ll welcum me warmly, i m student of MIT, im having problems in C++ so i want to learn from here, plz help me out,..... | |
I have a 10x10 matrix.basically this matrix is a square of 50 cm.and In this square we cut circles of diameter 5 cm each.The x and y co-ordinates are specified.I need to fill the martix depending on the circle it represents(with the help of given x and y co-ordinates). I … | |
Hi, I am Rahul. We have a complete software written out (with n other shared libraries maintained by various other teams). The shared libraries are loaded at run time by the main executable depending upon what feature user wants to run. All across our code, we are using printf and … | |
Hi I have a pointer generated in a method. And this pointer is input to another object. So at what point I have to delete this pointer? [CODE] method() { TEnemyCharacter *tenemyCharacter = new TEnemyCharacter(this); } [/CODE] So how to delete this tenemyCharacter. I cannot use delete tenemyCharacter; at the … | |
Ok, I have a given template class code the only thing we are to implement is inserting an item so that the template array list is still in ascending order my template passes the parameter of another class, this classes contains overloaded operators < > == based upon the win … | |
HI, Today im tying to build a game program,im not really stuck on the coding aspect but its the concept of the 2 players in the game that is confusing me. For a starters, the game has 2 players.Player one goes first,after their go its player twos turn and so … | |
i want a code to store a decimal number as a string i'm working on a progeam to convert a binarry number which entered as a string from user to decimal number stored as string. i have done the converting from binary number to decimal integer but i couldn't store … | |
I have a dynamic array and i am trying to create a iterator class to support the list. I am adding begin and end. As well as a new class. error C2146: syntax error : missing ';' before identifier 'begin' Error 7 error C2146: syntax error : missing ';' before … | |
How would i use the find function in splay tree for the following code? I want to be able to see if that node is in the tree, and if it is not, then i would want to be able to return false. here's the link to the splay tree … | |
i've writtn a c++ code, and i like to count the output,i mean 1 --- 2 3 like that, the code is good just the counter, everytime when i run the program i got this kind of error ISO C++ forbids comparison between pointer and integer i really don't know … | |
What I am trying to do is redirect all my cout to a file, rather than a console. I am using a gcc complier to run my program. It works well when I do ./a.out > output.txt. But i was wondering is there a way i can do the same … | |
hi, i want to ask.. is it can to get an input from the user by only call the class object? here's the code : #include <iostream> class Time{ private: int time; int minute; int sec; ... }; void main(){ Time t; cin >> t; cout << "The time is … | |
Hi! I can compile the following code, but when I try to run it with the line [B]a.out File1.txt[/B], my programming partner get a seg fault, and I get this error: [INDENT]a.out: relocation error: a.out: symbol __cxa_allocate_exception, version XXABI_1.3 not defined in file libstdc++.so.6 with link time reference[/INDENT] I found … | |
I am reading a line of text from a file and need to split it into tokens. [QUOTE]This is a test and test number is: test(001)[/QUOTE] I need the tokens to be [QUOTE]This is a test and test number is : test ( 001 )[/QUOTE] How do i split a … | |
i have an assignment to write a program in which conversion of decimal digit into binary, octal and hexadecimal take place using if, switch, do-while, nested-if or nested-if-else statements.... can you help me plzzzz...... i m new comer in i.t and simply have no information about C++ :icon_sad: | |
How can a make a directory in by writing c++ code and transfer files made by me in c++ to that directory | |
Hi! I'm getting this error when compiling: $ g++ index.cpp index.cpp:85: error: 'friend' used outside of class index.cpp: In function 'std::ostream& operator<<(std::ostream&, const GrabStuff&)': index.cpp:88: error: 'myLineNumbers' was not declared in this scope Links to included files: [URL="http://users.cs.fiu.edu/~weiss/dsaa_c++/Code/mystring.h"]mystring.h[/URL] [URL="http://users.cs.fiu.edu/~weiss/dsaa_c++/Code/string.cpp"]string.cpp[/URL] [URL="http://users.cs.fiu.edu/~weiss/dsaa_c++/Code/SplayTree.h"]SplayTree.h[/URL] [URL="http://users.cs.fiu.edu/~weiss/dsaa_c++/Code/QueueAr.h"]QueueAr.h[/URL] And for fun: [URL="http://users.cs.fiu.edu/~weiss/dsaa_c++/Code/SplayTree.cpp"]SplayTree.cpp[/URL] [URL="http://users.cs.fiu.edu/~weiss/dsaa_c++/Code/QueueAr.cpp"]QueueAr.cpp[/URL] [CODE]#include <iostream> #include <fstream> … | |
welcome :icon_smile: I am searching about books (PDF) that talks about Analysis of Algorithms in C++ step by step ........................................... | |
Plz guys i have a problem in my c++ simple calculator, I made everything great but i just need an important hint for my assignment that i can't figure it out. for example when i add two numbers(2+4) the result is (6)... i need the number (6) to be stored … | |
Im trying to write to the list box "Win_1" with SendMessage() but im doing something wrong. Thanks in advance! [CODE] #include <windows.h> #include <tchar.h> #include <string> #include <iostream> #include <richedit.h> #pragma comment(lib,"user32.lib") #pragma comment(lib,"Gdi32.lib") using namespace std; #define IDB_TEXT2 101 #define IDB_TEXT3 102 #define GetF 103 HWND hwnd, Win_1, Win_2, … | |
I previously asked how to install the CC compiler earlier, I decide to share my knowledge of how this compiler instead of g++ I installed this compiler because the CC compiler can handle separate template class files. I hope this is useful to some when looking for a separate C … |
The End.