Beginners - January 2016 (Page 24)

help with removing duplicate words C++
 
I am working on an assignment, it is to read a file, sort it and remove duplicate words and display. I got all the parts expect the removing duplicating part. ...
[4 replies] Last: Thanks a lot for this !! (by priya331)
The right approach. struct?
 
So lets say I wanted to have 100+ variables preassigned. So that when we want to call it we can just do something like item.value; Below would work but would...
[4 replies] Last: Yes that is what I meant or an array even (by Stalker)
heap
 
dynamic allocated memory normally stored in heap?
[2 replies] Last: That's a very unique question there. Only this forum could have answer... (by TarikNeaj)
big O notation check
 
So I've been trying to understand this big o notation thing. I've read about it and watched videos on it However since I'm very new to this stuff I just want to...
[1 reply] : Well it's O(bad) now because on line 21 it should be foo , not foo ... (by dhayden)
Question on how to fix my code
 
I have a program that asks for your username then asks for your password, when i compile it, it gives me both options of the password being correct and wrong ho...
[3 replies] Last: Hi, how could i prevent it from giving me an error saying that else... (by TheIdeasMan)
by GonlyG
"Zero" output in mortgage calculator
 
Any explanations for "0" output? (the program asks for a loan increasing by an annual interest rate each month, and how much the man must pay on average monthly...
[14 replies] Last: how intriguing.. the other guy's problem solved it... I guess I must h... (by GonlyG)
by GonlyG
Checksum after sorted array
 
After completing the bubble sort array problem (how difficult!) I moved on to a similar problem, wanting me to get the checksum after I sort the array. However,...
[17 replies] Last: hmm... I got 1299500 with that. Not sure if right or wrong. I have no... (by GonlyG)
by GonlyG
Errors in Fibonacci Sequence
 
Basically, it's fibonacci sequence reversed: which number in the sequence (1 to 1000) is a number in the fibonacci sequence? (As far as I'm concerned you're gua...
[18 replies] Last: huzzah! #include <iostream> #include <vector> #include <complex> #in... (by GonlyG)
Sum of even numbers in 2D array
 
I am trying to sum only even numbers in a 2D array. But I get the sum = 0, what's wrong with my code? why is my for loops not doing anything? #include <iostre...
[5 replies] Last: You can use at line 18: sum += arr ; (by elaleph)
Are my systems thingys in c++ or binary I'm confused
 
Can I open programs on my HD from my operating system and see them? Are they written in code or no binary only I'mm confused lol! Brain fart sorta, even though ...
[3 replies] Last: There's simply no way to just crack open many programs, especially if ... (by Austin J)
Graph
 
Hello. I've got a problem here... So yea, this time i have to make a "tree" and compare few things in it. The problem is, its not a binary tree. Each parent c...
[1 reply] : struct node; struct link// Here's the problem. { int LinkID; ... (by cire)
For and if loop problem
 
I want this code to execute so I get This is working and it seems pretty straight forward to me. When it runs, however, I'm caught in an infinite loop o...
[4 replies] Last: You are essentially asking if (i can be assigned the value of 1); this... (by JayBari)
Sorting integers in a text file.
 
Hi! I'm trying to create a program which reads a text file which contains multiple names of students and their scores, so something like this: Adam - 20 Bob - ...
[3 replies] Last: Hm... my last reply disappeared into the ether. I would use a struct ... (by booradley60)
Help me out with this program!
 
- solved - - Brandon
[3 replies] Last: Thanks so much, it's a great start to go off of! (by Concordev)
Why my code doesn't work ?
 
Hi! I needed to write out all perfect cube numbers from interval. So I wrote the following code for (int i=m;i<=n;i++) // the interval is from m to n { if...
[5 replies] Last: Ok thank you ! I will try to find better solution. (by MagicKriss)
Help me fix this
 
I want to fix this code. I want to know how to use user's input as a condition in the for loop. #include <iostream> #include <cmath> int main() { ...
[4 replies] Last: And how to print out a list that shows every year's interest? ex. 1--... (by code writer)
What is the function of "f"
 
In the code below, In the 8th row, printf ("The Total is %f",f); what is the function of third "f" which is wrriten at the end of the line ie. ,f); ...
[2 replies] Last: I think you're actually confused about the %f in the first parameter t... (by dhayden)
Insight for soon-future project connecting robot's parts to the code
 
Hi. Well, born on Earth, and learning c++ (had to figure out what's the best language and has biggest arsenal), and wanting to build a AI code, in a real rob...
[10 replies] Last: Well that's the hard part isn't it? Look up dynamic memory allocation... (by dhayden)
how to use BOOST_FOREACH for map container
 
Hello every one, I would like to know how I can use BOOST_FOREACH for map container. if the map format is like : std::map< std::string, std::set<int> > how I c...
[7 replies] Last: however the below code works too. Yes. It works.. if you want to m... (by cire)
by daym
Some questions
 
Hello, I'm a beginner, I'm fairly 14 years old, almost 15. I've started to learn C++ lately and yeah, no doubt I find a lot of difficulties I'm pretty noobish a...
[1 reply] : The windows operating system is something you can talk to in your code... (by Moschops)
January 2016 Pages: 1... 2223242526... 29
  Archived months: [dec2015] [feb2016]

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