Beginners - January 2014 (Page 26)

Help? Program to find words in text
 
Hey guys :) I'm a beginner with C++ and there's this class that I'm taking, for beginners, but the professor is a bit crazy and he's giving us pretty difficult...
[1 reply] : You can use std::getline to read in an entire line into a std::stri... (by LB)
Array Assignment in Constructor
 
Given an example class: class foo { public: foo(); ~foo(); private: int myArray ; }; I want to assign values ...
[5 replies] Last: [quote=fatirishman53]The array has to be a class member, and if the ar... (by LB)
Diff between Object Code and Binaries
 
Newbie here: I read and hear the terms object code (.o) and binaries. Are they referring to the same files? Thanks.
[2 replies] Last: In the context of programming, "binaries" contain compiled code for a ... (by LB)
by Nebur
Doubt about sort syntax
 
Hey everybody i have a quick question about the sort() command. I know that when i want to sort the whole vector from the beginning to the end i have to writ...
[2 replies] Last: Sort just the sub-range [position i, position j) : std::sort( vec.be... (by JLBorges)
CS160 lab help
 
So for my CS140 class a UTK we need to write a function to convert a decimal to a binary. This is what I came up with (not we are provided with the shell, we a...
[10 replies] Last: I really appreciate your help. Using your suggestions I was able to g... (by heroicJ)
by Mishu
reversing doubly linked list
 
.exe has stopped working...what is the problem with my last while loop? #include <iostream> using namespace std; struct node { struct node *prev...
[1 reply] : It's not your last while loop causing the issue, it's the penultimate ... (by MrHutch)
Searching a text file and showing data spread over several lines
 
I was writing a simple program of railway reservation ( you may call it so ) when I chanced upon this problem. My program creates a file with all the details o...
[3 replies] Last: You can either store the information as an array in a file set to use ... (by Zepth)
Need help in calculating a car’s gas mileage
 
Hello everyone, my question is that I have to write a program that calculates a car’s gas mileage. The program should ask the user to enter the number of gall...
[7 replies] Last: Thank you Jaybob66 and Dput. Jaybob66, I will try the float and I will... (by Hassan88)
by enemy
compound interests-RECURSIVE FUNCTION!!!
 
Hello! month intersts compound rate ar=12% r is monthly compound rate 1/100 If The sum I borrow from bank is 1000 how to make functin result returning t...
[8 replies] Last: That's exactly what it is. We are technically making a loop with heaps... (by closed account j3Rz8vqX)
So confused when programming
 
I get so confused when programming anything other than basic stuff. Most especially when using functions. Is it because i'm going too fast or something else...
[17 replies] Last: Think of functions as code written elsewhere. int main() { //The... (by closed account j3Rz8vqX)
Using Boolean in loops
 
Hello, I just wanted to ask on how should I go about using Boolean in loops like something along the lines of: while (true) { . ...
[7 replies] Last: [quote=jetkeynature]This for loop does exactly the same and its easier... (by MrHutch)
array help
 
Hello guys, I need to create an array of variables holding initial parameters. When i try to compile the full code, i'm getting an error saying 'inital' was not...
[4 replies] Last: @bcs96: You should create your own thread. The thread was solved alre... (by closed account j3Rz8vqX)
Is askNumber() part of C++ Functions?
 
Hi I'm seeing askNumber() in many instances but I can't trace it back to a clear-cut definition or locate it in a Glossary or reference list. I can't find it ...
[2 replies] Last: Most likely you were taught how to write the function yourself early i... (by LB)
Text-based game characters (types)
 
I am currently in the process of learning how to make my first text-based game. I was wondering how to make different types of characters, i.e warrior, stealth,...
[2 replies] Last: Are you talking about characters as in ascii/images or characters as i... (by closed account j3Rz8vqX)
by add147
Best complier for a newbie that is 14 years old
 
Hello All, I used to program some but its been about 20 years ago. I used the old Borland's 4.5 complier so that probably tells you how long its been s...
[6 replies] Last: Python is an easier language to get hang of the syntax faster than c++... (by Smac89)
Program showing no output on console.
 
Hi all, I am trying a program with friend function(max) which is common to 2 classes(XYZ and ABC). Here though compilation doesn't show any error/warning, I ...
[10 replies] Last: Thank you all for your informative and wonderful replies. @TheIdeasMa... (by patkipramod)
initz dat 2d array
 
Basically I am having a problem initializing a 2d array. int compare = { { 4, 9, 2}, {3, 5, 7}, {8, 1, 6} }; ...
[3 replies] Last: Sure thing. I'm still learning about vectors myself, although I unders... (by CplusplusAcolyte)
Apple Mach-O Linker (Id) Error
 
I have this program almost complete, however when I included function calls in the line_specs function and made necessary adjustments to parameters, I got two e...
[2 replies] Last: Thanks, that did it. (by ldelsignore)
When inputting '*' password...a char comes already.....
 
Its menu driven prog. When It asks for inputting a char of choice option 'a'/'b'/'c'.... A char comes already before inputting (statment: cin>>ch;) I first r...
[2 replies] Last: THANKS MATTHEW ROCK....LET ME THINK ...that how should i PUT this.... (by smartm13)
Question about storing?
 
Write your question here. For anyone who has a graphing calculator, there is a store function on the sto key. What it does is store a number as a letter. I was...
[10 replies] Last: Why are you trying to make an array? Why is it only one element? I th... (by LB)
January 2014 Pages: 1... 2425262728... 44
  Archived months: [dec2013] [feb2014]

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