Beginners - March 2015 (Page 39)

by VVS
postfix and prefix modes
 
I'm a little confused about the ++ and -- expressions... this is one of my questions that i'm trying to understand... What is printed by the following code? do...
[2 replies] Last: i thought answer would be 1,2,3.. which isn't an option so is it A? ... (by Peter87)
Linked List Question!
 
So i'm fairly new to pointers. What I'm trying to figure out is how can I be able to assign 2 different values such as a coefficient and an Exponent to a single...
[2 replies] Last: You can actually figuring out a pointer using postman and address conc... (by quisite)
need help!
 
I have to write a program for this homework below, but I'm stuck.I am fairly new to programming, so please help me to find a simpler way. You are burning mus...
[2 replies] Last: I second putting your code in tags. Regarding the error you're... (by fg109)
Coin flip issue
 
I'm trying to determine the probability of a coin flip. However my coin flip to determine the # of heads is not working out well. It only alternates between 0 a...
[4 replies] Last: because after tossing 1000 times You toss it only once, then run loop... (by MiiNiPaa)
been coding for a week how is this looking?
 
just wanted some feedback from some seasoned programmer i have only been at this for about a week i am teaching myself i think im getting a good understanding o...
[3 replies] Last: thank you guys for the detailed explanations they helped a lot much ap... (by stickypurple27)
Printing number of lines, words, char, etc in a string
 
Hello everyone. I've been assigned to create a program to print out the number of lines, words, characters, unique lines(lines that dont repeat), and unique wor...
[2 replies] Last: Hello everyone. After many tutorials online, readings, etc. I've got i... (by TheCoolest2)
by Nol45
University Homework Help
 
My assignment is to: Write a complete C++ program that read in from the key board a string and convert all letters in the string to upper cases. You are not ...
[4 replies] Last: @Shamieh that was just given that students to know how toupper(); fu... (by ButchCavendish)
by Sym8
loop issue
 
so this is a checkout program. Hers my problem: the user enters 1 to enter checkout and then enters the PLU code followed by the weight of it or unit, then they...
[5 replies] Last: what? That doesn't even make sense. You want to tell the user to enter... (by shamieh)
Tracking Binary Search Comparisons
 
Hi everyone. I'm working with binary search. I need to track the actual number of comparisons made when I run binary search. Right now I have something that wor...
[5 replies] Last: Solutions are always so obvious when you finally get to see it :-/ (by thomaselder84)
Generating 4 columns of numbers - need help
 
Hi everyone, I need to generate four columns of numbers which are 1) NUMBER: Odd numbers from 5 to 49 (inclusive) 2) SUMSQ: The sum of the squares of the ...
[13 replies] Last: Line 61, put endl outside of the if block. Ah, I see the problem. I... (by Arslan7041)
can someone help me fix this code, please? Beginner
 
So basically I have 2 arrays, int A and bool B . What I need to do is to read from a file 48 numbers and put them in the array. Till there everything is fin...
[2 replies] Last: Your formatting makes your code hard to read, especially since you're ... (by fg109)
Program won't follow loop parameters....?
 
...
[5 replies] Last: That's exactly what the problem was. Didn't realize that I needed to c... (by ChillMick)
4 integer in ascending order
 
Hi guys, So let me start off by saying that I saw the old archived post on this topic, but I found it not really helpful, and there was no way to add more to ...
[8 replies] Last: [quote=rokujohaven]why would you have multiple (b < a) statements? Th... (by fg109)
Help finding most frequent co-occuring words?
 
Hi. I am writing psuedocode as an exercise. If I am given an article and need to find the most frequent co-occurring word, how would I go about this? co-occurri...
[1 reply] : I would use a std::map<std::set<std::string>, std::size_t> - the inn... (by LB)
Using combination algorithm to generate pairs of strings
 
Hello, I am looking to write all possible combinations of strings stored in a data structure. Here is what I've implemented so far, but I'd like to make it more...
[4 replies] Last: You can use std::accumulate : http://www.cplusplus.com/reference/nume... (by LB)
by Cooper
Displaying a .txt File with a While loop and the .substr() function
 
Hey guys, my first post here. I'm working on an assignment that basically has a list of Mail records (Name, address following the name) and need to figure ou...
[4 replies] Last: This is extremely helpful, thank you so much!! (by Cooper)
overloading operator- power operator
 
i created a fraction class and now im trying to create an overload operator for the power function to take a fraction to the "n" power, but Im getting an identi...
[2 replies] Last: @obscure, ahhh thank you. much clearer now (by nevadarain)
Node.h run error in language c
 
i have to use fuction node.h for program me. run error here==> newNode = (struct Node *)malloc(sizeof(struct Node)); #include<stdio.h> #include<stdLib.h> /...
[2 replies] Last: i do program already. but it Inconclusive. it' to error position ne... (by bankzab176 91)
Need help with bubble sort program--how to change it to take from a text file?
 
I am new to programming and for a class project, we are to create a bubble sort program. This program works right now by asking the user to enter in the number...
[1 reply] : ./bubblesort 10 < text.txt would redirect std::cin to read from t... (by LB)
March 2015 Pages: 1... 3738394041... 51
  Archived months: [feb2015] [apr2015]

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