Beginners - March 2015 (Page 22)

Compare two values from two classes
 
Hi guys, First and most important, I thank you for your time and knowledge. I don't want any code, ...
[1 reply] : Your variables obj and val are declared in main() . You try to a... (by fg109)
Pointer Help Please
 
What exactly is the difference between these two? If I try to cout each one I get 0 and 5 respectabl...
[1 reply] : I'm new to C++ and VERY new to pointers... but I'll take a stab at it.... (by pearlyman)
two-dimensional array
 
Hello, someone can write this program for me? Given two-dimensional array T(m,n), that element val...
[3 replies] Last: primary data is stored in a text file. If it's stored in a text file... (by pearlyman)
PLEASE I NEED HELP! SOME CODES WOULD DO!
 
It should have a password authentication before it display the main program (use IF ELSE) 1. Passwo...
[2 replies] Last: You mean like... function name(){ for (int x=0;x<4;x++){ cout - ent... (by pearlyman)
std::vector erase seg fault
 
I tried a few times to create an example program to show the problem I'm having, but they all worked...
[1 reply] : you are missing a proper assignment operator for the `component' class (by ne555)
Code won't edit/overwrite the text file, even though everything appears to be working correctly.
 
edit: ignore this initial post. Check my latest comment - the issue below is resolved. Hello all....
[7 replies] Last: I hate to bump, but I'm going to bump. This is due tonight and my teac... (by catpokemon)
by Orval
toupper help
 
#include <iostream> #include <string> #include <ctime> #include <cstdlib> #include <vector> ...
[2 replies] Last: That makes sense, but still confused on how to use toupper's statement... (by Orval)
Problems with overloading operator
 
I am getting an error on line 104. This line is suppose to add the coefficients of two polynomials. ...
[3 replies] Last: the file name was "ADT". I'm guessing when I include the header file, ... (by welcometomyworld)
Input into a String
 
Hello, I'm curious as to the internal workings of strings as it relates to input. When a user types...
[3 replies] Last: how do strings allocate just enough space for the internal character ... (by Yanson)
by abc456
Please help me fix this program?
 
I'm extremely confused on this assignment I've been working on. I'm completely stuck on how to get p...
[no replies]
by abc456
How can I fix this code so the function countChars accepts a character as parameter?
 
I'm not really sure what my professor wants this character to do? This is the instructions: Write a ...
[3 replies] Last: Smac89 I understand most of what you said. only I'm unsure what to mak... (by abc456)
by KickAz
CLASSES - ISO C++ forbids in-class initialization of non-const static member 'pi'
 
Hello I have a little problem I don't undestand what the problem is can someone explain to me? er...
[2 replies] Last: Prior to C++ 11, in order to initialize a variable in your class, you ... (by Aaron Vienneau)
help with backtracking
 
read n numbers and a number a .generate all possible numbers from numbers n lesser than a example...
[4 replies] Last: ty for help i did it :D #include<iostream> using namespace std; int ... (by closed account E3h7X9L8)
tokenizing strings
 
i need a hand here, a got this function that is supposed to tokenize pipe "|" dilimited words from ...
[2 replies] Last: Straight from heaven , that's what i needed thank you very much @fg109... (by closed account SECMoG1T)
Algorithms for 2D arrays
 
Hello. Would you recommend me some good sources of algorithms for 2D arrays (merging, rotating, dele...
[4 replies] Last: And same for vectors? (by mighty asker)
Linked Lists(Nodes)
 
I want to add a node in the beginning. Sample Program: 1. Create Lists 2. Add at the beginning ...
[2 replies] Last: hey your data is not going to linked list. it is being stored in array... (by amarjit86255)
Create Lists(Nodes)
 
I want to input nodes and it's on void create() but it won't output on void display() It gives a m...
[3 replies] Last: here ... struct Node { Node(int i) : info(i), next(nullptr)... (by closed account SECMoG1T)
How exactly does const* char work?
 
Why, exactly, does code like the following work? #include <iostream> struct Candybar { ...
[3 replies] Last: This always trips me up, so I thought I'd ask so I had a reference at ... (by Aaron Vienneau)
trouble when changing from c++ to c
 
this is the code from the question of poj1760~but i dont know how to changing to C program http://po...
[5 replies] Last: The algorithm is using std::map because it's convenient in C++. Creati... (by dhayden)
by hmlwin
Wrote program to sum terms, but can't get it to give me the correct summation...
 
I wrote this program to sum a user-defined number of terms for the series 1-1/2+1/3-1/4+1/5-... But ...
[3 replies] Last: To solve a problem like this, it's often helpful to look at easy input... (by dhayden)
March 2015 Pages: 1... 2021222324... 51
  Archived months: [feb2015] [apr2015]

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