Beginners - November 2016 (Page 34)

7-17 Name Search. NEED HELP WITH CODE
 
I need help with a code. I am new to C++ and need help with this code so I can better understand the language. I have been stuck on this code and any help would...
[10 replies] Last: My final code. It seems to check to see if the name entered is on the ... (by svtHeisenbergB4l)
Loops
 
I have to write a code that has a user guess the random number generated. Then it is suppose to ask them if they want to play again. If they say no the program ...
[2 replies] Last: Hi there, How about adding a bool into your while loop, an... (by tibrado)
[Homework] Could I get some help with this?
 
I'm not quite sure how to go on from here. This is what I have so far. Here is the question : http://i.imgur.com/qJlJpjg.png
[3 replies] Last: You don't know how to get started? (by Boxbird)
by ISO101
Replacing C with C++
 
Question from professor: Write a C++ program that will create a new output file that is a replica of the input file but has all occurrences of C replaced with...
[8 replies] Last: Thank you everyone for your input. I understand what I thought I was ... (by ISO101)
How to find the element number of a vector<string>?
 
Hello, Imagine I have a vector as such... vector<string> vec = {"alpha", "beta", "gamma", "delta"}; and I wanted to output "gamma", I would use; ...
[3 replies] Last: #include <iostream> #include <string> #include <vector> enum class ... (by integralfx)
explicit in class
 
i was reading a source and hit to following syntax in a class class Hello { public: explicit Hello(){} }; why the person who has written this clas...
[2 replies] Last: It's useless because there are no parameters to the default constructo... (by mbozzi)
Is this the best way to iterate over 2 singly linked lists of different size and a static array?
 
I'm trying to use only C++11 standard code and I have 2 structs like this: struct ExampleObject{ string name; int somethingElse; }; struct Nod...
[no replies]
School job FAST HELP!
 
Hello! So im noob at this c++ stuff and i need to program output like this: Write number: -2 // im writing number in Runing program Write number: ...
[2 replies] Last: The code might be a bit advanced, you can choose to adapt the code to ... (by Boxbird)
HELP: error C3861 identifier not found
 
I have been working on this assignment of my for some time now and not once have I encountered this error before as it makes no sense to me, for some reason the...
[1 reply] : Without any code there is not much we can do to help. Usually, this is... (by rghrist23)
The summation of digits
 
My teacher gave a study guide with the problem, "Int x is loaded with some numbers (how many is irrelevant.) Show the code that will sum the digits of x." ...
[3 replies] Last: No problem and if you wanted to shorten it, you could use accum as ... (by rghrist23)
undefined reference to - own library
 
Hi, I tried make simple library with one function but I already have problem with error undefined reference to `hello' and I dont know why. main.c #inclu...
[1 reply] : How are you linking it? (by koothkeeper)
String help
 
How can I read a string starting at the second letter until the end of the string? I tried something like stringname[1,stringname.length()] but that didn't work...
[2 replies] Last: As a follow-up see http://www.cplusplus.com/reference/string/string/su... (by rghrist23)
finding rank of the elements(vectors) in reverse way
 
problem : "To rank in every possible elements of the set {1,2, ..., n} so that the numbers i, i + 1, ..., i + k to be one after the other and in this order(i=1,...
[no replies]
by MMe24
Need some help on drawing a shape
 
Hi, so I was wondering if someone could take a look at my code and help me out, I know it's far from perfect but I tried it best as I could. I made three constr...
[3 replies] Last: You're assigning color to vertexThreeColor, etc so it should be vertex... (by gunnerfunner)
Request for member '...' in '...' which is of non-class type
 
So I am just starting Object oriented programming and I am still a bit shakey on a few things. The biggest is ths error: "request for member ‘setRadius’ in ...
[2 replies] Last: That was the simplest solution to a stupid problem thanks a bunch! (by jigantie)
Prime Numbers List
 
I'm having trouble with this program trying to write prime numbers to a txt file. I just get a long list of -2147483647 #include <iostream> #include <ioman...
[15 replies] Last: I did a quick benchmark and found that the "Sieve of Eratosthenes" is ... (by Boxbird)
sorting nos in an array and recognising nos that are the same
 
I'm trying to sort arrays. The problem whenever it was working was that if my crawl times were the same it would just take one number rather than giving both nu...
[no replies]
Deciphering the Code
 
What does this code mean?I am a little confused about the toupper(item) part thx int place(char item) { char temp = toupper(item); int index = (int)t...
[5 replies] Last: #include <iostream> int place(char item) { char temp = toupper(i... (by closed account 48T7M4Gy)
by Grimes
If value is on Left side of Binary tree
 
I don't understand what value I'm supposed to be checking against so that the function checks whether it's there or not. My question is what do i need to compar...
[6 replies] Last: although you lost me on A temporary binary tree is created that uses ... (by coder777)
reading login data file line per line
 
i'm new to c++ and doing my project about login system. i have a text file named loginData.txt which contain the username, password, and ID. the format is li...
[6 replies] Last: case closed, i finally get the solution, thanks for u sakura for savin... (by hooman90)
November 2016 Pages: 1... 3233343536... 44
  Archived months: [oct2016] [dec2016]

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