Beginners - October 2015 (Page 13)

by Winsu
Change some bits in an integer
 
Hello guys!! I'm trying to change some information with an integer, what I want to do is basically get an integer and change its most significant byte and its ...
[12 replies] Last: My first question( the first post ) was if there was a way to do opera... (by Winsu)
by LMUZZY
Getting the error "Myclass undeclared identifier" in Visual Studio when using separate class file.
 
I've created a separate class file and wrote a very simple cout function to print something to the screen, this was only to see if i could make it work. https:...
[3 replies] Last: If you want to see how the destructor works put cout << "destructor" <... (by closed account 48T7M4Gy)
recursion problem help
 
Hi, this is part of a recursion problem and after very long, I still can't figure out why the output to the 2nd part of the qn is too large. Can anyone help? Th...
[5 replies] Last: break the problem into 2 cases 1) do not choose warrior i (the recurs... (by TheIdeasMan)
How to put value in items of an array
 
Hello, Can you guys help me? Like for example I want to put a value in the items of an array. I want to put a value in each item in this array: string ...
[6 replies] Last: Hello! and array is initialized when you use it's index string items ... (by Shashank Setty)
What is the maximum value a int can make?
 
Hi, just asking as a beginner in c++, what is the maximum value you can declare in int?
[6 replies] Last: I need the truth on what's the maximum value a int can declare That'... (by Gamer2015)
array and vectors (arrayFunctions)
 
#include <iostream> #include <iomanip> using namespace std; int getScores(int , int ,int ); void printScores(const int , int ,const int ); void cou...
[1 reply] : Say studentID is 512 then score will be the score for student 512. ... (by closed account 48T7M4Gy)
Examples needed of an application
 
Could anyone give examples of an application that displays all even numbers from 2 to 100 inclusive , and that starts a new line after every multiple of 20 (20,...
[5 replies] Last: Are you only allowed to use one for and one if ? #include <iostream... (by Hardisius)
Base of pictures for kids
 
The task is to create the base of images assosiated with text words, and after entering the word or text we should get back the pictures instead of the text to ...
[1 reply] : http://www.cplusplus.com/forum/general/177019/ I assume from this spa... (by closed account 48T7M4Gy)
Help!
 
Hi guys, can I ask how can I create a C Program that will ask the user to enter 10 integer numbers and display the minimum & maximum values and the number of IN...
[1 reply] : First of all work out the maximum value. Store the index value as the ... (by closed account 48T7M4Gy)
Modifying the vector of one class in another class?
 
If I wanted to modify the vector of another class inside my second class, is it possible? I wish to tell the second class everytime I increase or decrease th...
[6 replies] Last: I'm not really sure how to use pointers yet... Would I need to use po... (by helloworld135)
by bee309
/////
 
/////
[1 reply] : please indent your code. > not all numbers show up correctly because ... (by ne555)
Sorting infile
 
I have alot of array and i want to sort it by character. Example string=model ; first i have this DS-7208HGHI-SH DS-7232HGHI-SH DS-7204HGHI-SH DS-7216HG...
[3 replies] Last: It's the C++11 range based for loop. http://en.cppreference.com/w/cpp/... (by integralfx)
by dzenis
Guess the number game
 
Hello everyone. So i made a code, the computer picks a random number between 10 and 3 and u have to guess what is that number.So my program does that, but i wa...
[2 replies] Last: Please don't triple post http://www.cplusplus.com/forum/general/1770... (by closed account 48T7M4Gy)
Reading Files
 
I can't seem to understand how to code the read file lines correctly. Can someone explain and show me how to do it properly? #include <iostream> #inclu...
[1 reply] : http://www.cplusplus.com/doc/tutorial/files/ Why not try this tutoria... (by closed account 48T7M4Gy)
by st4evr
For Nested Loop Number Set Pattern
 
Hello, Beginner C++ student here, first ever programming class. The program I am working on will ask the user for input and output a number pattern for that ...
[2 replies] Last: Thank you!!! The second advised function worked. Working code: vo... (by st4evr)
Help with calculator
 
everything compiles. my question is that when a,b is 0 by using equation / or %, it tries to solve now i tried everything i can think off to stop from solving. ...
[2 replies] Last: thank you very much (by palagano1989)
Reading a huge number from a file one digit at a time
 
Hi, I have a huge continuous number (thousands of digits long) in a .txt file and I need to store it a digit at a time in a vector. This is what I have so far: ...
[4 replies] Last: Thank you, works perfectly! (by DDomjosa)
by haz94
Some vectors help.
 
Hey, stuck using vectors again, could use some help. I have a class called collectableHandler which creates multiple instances of class 'Collectable' in a vec...
[3 replies] Last: Line 28 makes no sense. You're comparing two variables to themselves... (by haz94)
writing cstr functions from scratch
 
So I need to write many cstr functions from scratch and I'm running into trouble with my constructor that uses strcpy to construct a string. class String ...
[7 replies] Last: Thanks for the replies. Yeah it doesn't crash on me any more since I'v... (by omega4relay)
by NHaku
Question regarding class instances
 
I made a small program in order to understand how class instances work at runtime. So I have this: #include <iostream> #include <string> class TestCl...
[5 replies] Last: I think I get it. If I call the default operator, by default it copies... (by NHaku)
October 2015 Pages: 1... 1112131415... 57
  Archived months: [sep2015] [nov2015]

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