General C++ Programming - November 2013 (Page 16)

Pointer Arithmetic
 
My code is working correctly using array notation, but I'm not allowed to use it in this program. I have to use pointer arithmetic. I have an array called yearE...
[6 replies] Last: int xs = { 7, 8, 9 }; // array of integers int* p = &x[ 0 ]; //... (by Duthomhas)
Rectangle Class
 
Design a class. RectangleType, that can store the length and width of a rectangle. Provide appropriate functions for setting and getting the length and width as...
[1 reply] : recWidth and recLenght (sic) are private in RectangleType, therefore, ... (by tipaye)
by cjj
template template class
 
This is a note I made after revisiting template template class. Hope it helps others out there too. Here goes the code: #include <iostream> using namespace...
[3 replies] Last: Thanks for a good summary. 1) Type: that are preceded by the clas... (by cjj)
by Julio
Homework List & Node Help
 
Create a List class with the following interface (at a minimum): List::addItem //add an item to the list List::getLargestValue //find the largest value sto...
[no replies]
Class to manage pointers better: some errors
 
I wrote a class to manage pointers better (because I am making a large program and don't want to call a constructor on somthing that was already deleted... etc...
[19 replies] Last: oooh... Hmm... Thanks. I'm trying to emplement a different approach... (by IWishIKnew)
by p8er
Enable/Disable MenuItem
 
This topic seems to have cropped up regularly over a decade or more. I have ploughed through the exchanges in all the forums, yet I still cannot make it work. ...
[8 replies] Last: OK Mike. I'll try that. Thanks, Peter (by p8er)
How to know if a word is before another
 
Hi, I would like to know how I can know if a word is before another in a string. Here's my current code. (I have some code after that, that's there's so man...
[9 replies] Last: Thank you for all your help, you gived me a good start. (by closed account GywfSL3A)
Flowchart
 
so this is my code how, would i go about it to create a flowchart for it #include <iostream> #include <string> #include <sstream> using namespace std; st...
[no replies]
c++ automatic conversion for function parameters: when and where does it happen?
 
So I'm writing a data structure from scratch as part of a university assignment in c++, and I have to write an iterator for it. The problem involves comparison ...
[9 replies] Last: @doug4: in that case the error would be `undefined reference' @OP > s... (by ne555)
Boolean function not working
 
So here it is I am learning C++ from scratch, things seemed to go alright till now but now i have decided to use Boolean function to check user input and its no...
[5 replies] Last: Easily done. :-) (by MrHutch)
Compling PodoFo library on MingW using CMake
 
I am trying to build PoDoFo Library on my Windows Platform (for use as an API) . It is done using CMake . The 'ReadMe' file says the following. Unfortunatel...
[no replies]
convert to hexadecimal and hex addition
 
#include <iostream> #include <iomanip> #include <string> #include <sstream> using namespace std; string m ;string ye;ostringstream wa; string momo; //pass...
[3 replies] Last: hexadecimal is not a number, but a number representation. if you have... (by tath)
Help with my programm!
 
So here is what I am trying to do i made a program thet finds the right password (for now the password is contained only with intengers, later im planing to do ...
[3 replies] Last: I think you really are Beginners do you really think the second code n... (by sanddy1911)
Can I use 'fstream::app' to input text into a .txt file?
 
This command fstream::app says: All output operations are performed at the end of the file, appending the content to the current content of the file. This flag ...
[1 reply] : http://www.cplusplus.com/forum/beginner/117227/#msg639506 (by JLBorges)
Help!
 
So here is what i need i need a way i can add 3 variables one after the other example: int a = 1; int b = 2; int c = 3; //Here comes my problem int d...
[4 replies] Last: Chriscpp ty (by Zoran1994)
can i change line directly in c++? fstream
 
i want to write a proggram that keeps tracking of pays and stuff i want to know is there anyway to like tell my program to go line number 10 (i dont know how lo...
[5 replies] Last: ok!! i will forgot about it:((( i didnt really understand what u mean... (by kam hagh)
Binary Search Tree(Help)
 
I am unable to implement the insert function properly,everytime i run the program i just get the first value and name,i am not getting other Id's and name.Pleas...
[4 replies] Last: [code firstline=18] current = current->left; //same in line 62 curren... (by ne555)
make a diamond
 
I was just curious but how to make a program that would display this in c++ using iostream and "name space std;" (i replaced the spaces(" ") with a "_") ...
[1 reply] : is there a more efficient way of doing this or would i just need to u... (by Catfish666)
PLEASE help with an assignment
 
I have to make a rock, paper, scissors program. It is basically done, but it doesn't tell the user which selection the cpu picked. How do I return the selecti...
[2 replies] Last: You coding style isn't correct but after that i made it at least to r... (by sanddy1911)
Call by value and call by reference
 
I need to change the swap and main function of the exercise 2 code so that the two parameters value1 and value2 are passed by reference instead of being passed ...
[4 replies] Last: What's wrong with line 49? It's useless. It's a line of code doing ... (by Catfish666)
November 2013 Pages: 1... 1415161718... 46
  Archived months: [oct2013] [dec2013]

This is an archived page. To post a new message, go to the current page.