Beginners - November 2018 (Page 13)

Simple string problem
 
This is a homework assignment, but I have almost finished it completely. My problem is that we have to change his code to where the user inputs data. I did that...
[6 replies] Last: I figured it out, I didn't realize I had to put the cin.ignore before ... (by XboxOne2019)
c++ array
 
Hey guys i need some help with a c++ array.Thats my task : Input a dimensionality from the keybpard (with a correction check) and array elements of whole numbe...
[3 replies] Last: Maybe "numbers that can be divided by 6 without residue" means multipl... (by Manga)
by snew18
Draw box based on user input.
 
No idea what I'm doing here. I need to ask for the width of the box and if the box should be solid or not (output is 'y' or 'n') #include <iostream> #inclu...
[6 replies] Last: Hello snew18, I found myself in error earlier when I was thinking the... (by Handy Andy)
C-strings
 
Help pls with this task. Input a string and output ANSI-codes of digits in this string
[11 replies] Last: [quote=Nwb]I thought 'string literal' was singular and 'string' was pl... (by lastchance)
Student Grade input.txt file red underline
 
Write your question here. Hi Using Visual Studio for a C++ homework Ch 9 PE 2 Malik. I can't see how to get the red lined input and output txt files to allow ...
[7 replies] Last: Hello serenitytek, PLEASE ALWAYS USE CODE TAGS (the <> formatting but... (by Handy Andy)
by H00G0
How do you read from binary file without knowing size of data you're reading
 
Hello guys! I'm challenging myself to write a program that encrypts a text file with a key and the program requests the user, before running, for a password. ...
[9 replies] Last: #include <iostream> #include <iomanip> #include <fstream> #include <... (by tpb)
Does vector calls multiple constructor or makes copies?
 
Hello all, I've a class that generates object with some features: X-Y position, is_fellony, is_player.. I've different contructors: Elementi::Elementi(...
[4 replies] Last: Wow - a double-ninja :) (by MikeyBoy)
by RahRah
Accumulated Interest
 
When Bongis new baby sipho was born she opened a savings account with R1000.on each birthday starting with the first,the bank added interest of 4.5%OF THE BALAN...
[6 replies] Last: ok thank you so much for you assisstance (by RahRah)
Word Count
 
Hi, I have to create a simple program that can compute the number of words, bytes, and lines that are represented in a string. I have a bit of a problem because...
[1 reply] : Double post: http://www.cplusplus.com/forum/general/245883/ (by Thomas1965)
<iomanip> format with setw(#)
 
I'm having trouble with getting the formatting to work with setw(). I've spent 2 hours on this.. and I thought it would be a simple task.. I'm just trying to g...
[2 replies] Last: @tpb Ahh okay. Thank you! (by PiggiesGoSqueal)
How to input file information an assign them to struct values?
 
I have to take information from a text file and input it and assign the values to values inside a structure. I just learned some basics to structs. How do I get...
[2 replies] Last: Thanks a lot man this should help a lot. (by quincyq)
Conditional Jump
 
Hi I'm working on this tree based map implementation and I'm getting a conditional jump error in my find() method. I know this means I'm accessing uninitialized...
[6 replies] Last: You've implemented the Iterator operator== and operator!= incorrectly.... (by tpb)
[Solved] Error: *Exception thrown: write access violation. _Left was 0xCCCCCCCC.
 
When I try to run my C++ code, it does not work. It says: Exception thrown: write access violation. **_Left** was 0xCCCCCCCC. Could you please tell me...
[2 replies] Last: @Browni3141 Ohh okay. I was just thinking there are 6 types (fname, ln... (by PiggiesGoSqueal)
by Musica
pass by reference vs pass by value
 
I am just wondering why in a copy constructor or to any other similar function, we use pass by reference instead of pass by value. I get it that we set it to co...
[4 replies] Last: Ok, thanks for the responses. @ne555 In eclipse, it does not allow m... (by Musica)
Psychic Program
 
What are my issues here? I've double checked an am not sure what to do. Here's the link to the directions. (Exercise 4) http://www.cs.csi.cuny.edu/~zelikovi/...
[1 reply] : I like that you seeded srand() with the user's number choice. You nee... (by Browni3141)
Libraries, working smarter not harder.
 
I wasted a lot of time this summer just working on the boiler plate necessary to get a text based game working. I want something prefabricated for interactive t...
[no replies]
Pointers
 
I'm having trouble figuring out how to implement pointers that give the names of those who scored points along with the points that they scored. This is what I ...
[2 replies] Last: Thanks for the guidance. The only reason I wanted to use a pointer was... (by Jack599)
Template fields not being initailized by field list in constructor
 
I tried this test to see if I could supply default values in a template argument. The code below compiles without any issues. However, _1 and _2 are not being...
[3 replies] Last: In C# you can't take the address of a value, so you can't tell where a... (by helios)
whats wrong with my code?
 
https://www.codechef.com/NOV18B/problems/HMAPPY1 long int n,q,k,x,prev=-1,arr ={0},last=400000,first,i; string str; cin>>n>>q>>k; for(i=0;i<n;...
[6 replies] Last: Woah @ne555 thats what I was missing, thanks buddy (by qwertmen)
public bool default value?
 
Hi guys, can you tell me what would happen, if I created an instance of a class without initializing a boolean class variable? class tracer { private: do...
[4 replies] Last: You should always make sure "all variables" are properly initialized p... (by jlb)
November 2018 Pages: 1... 1112131415... 24
  Archived months: [oct2018] [dec2018]

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