Beginners - December 2015 (Page 15)

by nct
reading file and performing linear interpolation
 
hey guys i have a text file having 7 columns "x","z","p","v","w","av","aw" of numeric values at different time steps.So i want a c++ code to store these values...
[2 replies] Last: this post is different from the previous one.........here i need to re... (by nct)
How would I replace array elements with user entry?
 
My assignment for c++ class is to create a hangman type game in which the user is given 20 chances to guess the letters of a 10 character word. I have two char ...
[2 replies] Last: // declarations and other things up here w_size = sizeof(word); // ... (by leBOB)
Really need help on this project
 
This wont compile because it says getDollarAmt must return a value. Also getCurrencySelection must return a value. Please help. #include <iostream> using n...
[2 replies] Last: As @codewalker said, any function that has a type, except void, must r... (by YFGHNG)
by sharms
HELP with getline (string) !!
 
I have my program working perfectly but my professor just told me that I needed to use getline for the user to input their full name. I can't use cin>>x>>y>>z f...
[3 replies] Last: It didn't stop responding, it was waiting on you to hit enter and type... (by SamuelAdams)
Really need help with shortest path algorithm and graphing
 
I have an assignment where you're supposed to read in a file that looks like this: SFA SLC 700 59 SFO LV 420 39 LAX LV 231 23 LV SLC 362 29 LAX SF...
[1 reply] : > What kind of graph should I use? A weighted adjacency matrix would ... (by JLBorges)
How to put up the receipt for my code?
 
The question is here Assume that your company is running a virtual architecture design business and your company is specialize in designing specific types of r...
[no replies]
by jay132
read input and write output
 
Add a program that allows the user to enter any number of integers to be written to the file. You may use the cin.eof () function or a specific value to end the...
[1 reply] : All file handling processes should be in their own function. ... (by SamuelAdams)
by kbass
Beginner w/ numerous questions
 
Hello I'm new to the language and i'm in a course that's going 1 million miles per hour, could someone help me or guide me in the rite direction to complete the...
[6 replies] Last: i have the following //getBalance-Base //getAnnualInterestRate-Savin... (by kbass)
Running parralel threads?
 
Is it possible to run two parralel threads with seperate loops? I've tried using the thread however it only runs one thread at a time? #include <iostream> ...
[7 replies] Last: For something like this, just making your thread sleep is fine. It is... (by JayhawkZombie)
Need help with a for loop only returning true once
 
I am working on a "graduation" project for a c++ beginner guide to c++ called supermutantbunnies, or something similar. I want my program to only spawn one baby...
[no replies]
Super beginner
 
Hello everyone! I'm Gabby, 17 years young and very interested in coding. I've only done a few lessons on code academy, and I don't know much about compute...
[2 replies] Last: http://www.cplusplus.com/doc/tutorial/ is a good place to start. You c... (by leBOB)
by GonlyG
Not precise enough digits
 
I have to use Heron's formula to find a close number to the square root up to (at least!) 7 digits after decimal preciseness. However, even double or long doubl...
[2 replies] Last: huzzah! Thanks. :D (by GonlyG)
Question about infinite loop and null terminator.
 
Hello, I've a question regarding the null terminator at the end of a loop without any statements, eg: while( n < 5); //notice the semicolon. //or fo...
[3 replies] Last: It's easy to get tripped up by that. Consider: do { ++n; } while ... (by dhayden)
Uninitialized local variable 'treeHeight' used.
 
I know it's something to do with assigning the variable a value but whenever I assign it, it just throws up another error. //TO BE AMENDED AND COMPLETED ...
[12 replies] Last: [quote=tallyman]Your functions need to be declared before main, like d... (by cire)
lambda expression problem
 
#include <vector> int main(){ std::vector<double> vec(100); //...initialize it double sum= [&vec]{ double sum{ 0 }; for (auto x : vec...
[4 replies] Last: Ohh, thank you very much man, very appreciated :) (by etrusks)
Logical fallacy questions!
 
I'm studying an old test and I was wondering if my answers to these are correct. I posted a screenshot if it below i. Not sure about this one. I'd guess 1....
[5 replies] Last: The statement 'const Foo f = 1' is invalid because there is no convers... (by JayhawkZombie)
Find maximum and minimum element in array
 
Hi there! I need to find the mimimum element in two-dimensional(4,4) array by row and maximum element by column and store them in another array (5,5).Maybe I di...
[3 replies] Last: This is a new code: #include <iostream> int main() { // Initial... (by JohnDoe321)
Should I use PDCurses?(ncurses for windows)
 
Right now my SDL & OpenGL skills aren't good enough to make a graphical software. I want to develop a program named: Make-A-Note The name explains it, but I ...
[1 reply] : No one? (by closed account 1vD3vCM9)
by Zorac
Translate this for me, thanks [map cout]
 
So i have a map function an was looking over the internet for ways to print out my content from the map and found this quite simple looking for-loop, thats work...
[3 replies] Last: Aaah!! Thanks finally i understand it. I was going crazy looking at i... (by Zorac)
Can't get my code to work (grid game)
 
The K's should move on the grid.. but it wont :(! I'm not sure what I'm doing wrong, but something is obviously wrong with my code. Any insight? Thank you! ...
[2 replies] Last: Thank you SO much!!!!! I definitely see how different our versions are... (by goflipaburger)
December 2015 Pages: 1... 1314151617... 43
  Archived months: [nov2015] [jan2016]

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