Beginners - March 2014 (Page 56)

Cannot Fix a calculation Error for a Sum
 
This is a project for my first C++ college class. I have correctly calculated the first sum of the F series to be 15.403683. However, the second series, G ...
[3 replies] Last: #include <iostream> #include <iomanip> #include <limits> template < ... (by JLBorges)
cannot convert ‘bool (*)[256]’ to ‘bool**’ for argument ‘3’ to ‘bool f(unsigned int, unsigned int, bool**)’
 
Hi, I encountered this error in my program. I have a function bool f(unsigned int, unsigned int, bool**) and a double array bool b ; Bu...
[3 replies] Last: For a little bit of insight, doing otherwise will lead to a segmentati... (by NoXzema)
Need help with this program stars;
 
I got the program to do 10 lines of stars and increment by 1 until 5 and then decrement by 1 from 5 to 1. Now i want to increment the star on each line by 2 and...
[1 reply] : for (j=1; j<=i; j+=2){ cout << "*"; } Is the problem an... (by kingkong200)
invalid use of non-static data member
 
I wanna to use the code given below: sample.cpp #include <stdio.h> class test { public: test() { sample = 1; } private: int sa...
[5 replies] Last: class foo{ std::vector<int*> v; public: foo(int size): v(size){... (by ne555)
by ray88
calling min , max, mean, mid range functions of an array
 
How would i structure the min and max function for an array with a centennial control value # include <iostream> using......... //Parameter list int getMax(...
[1 reply] : First off, please - wrap your code in [.code] [./code] tags(without do... (by MatthewRock)
Help with separate class files.
 
I want to know how to get certain int's and strings from separate class files. For e.g. if i made a program where you log into with an email and password. The p...
[no replies]
File Stream problem
 
How to do math in getting values in notepad? We are making this program that i need to solve a solution that would get the values in a text document. for pre...
[no replies]
need some tips to finish :)
 
Write your question here. Hi, im just new here :) i think im finish with my project but somethings wrong with the computation part,at first it computes the 1st ...
[5 replies] Last: I see, thank you for your replies :) (by toling54)
linked list
 
I have made two linked lists now i want to combine the two lists but i get an error that , i can't assign value of one stack object to another stack object is t...
[2 replies] Last: Yes sorry , I did want to write at the end if whole code needed will ... (by Sharan123)
by ray88
Im confused on how to make a file and import it
 
you are to read all records from a file named data.txt into an appropriately named and constructed array of structs. You will not know exactly how many recor...
[no replies]
Transfer a normal list to Linked List
 
So I want to transfer my normal list to a linked list and this is what I have. Issues in my code: my code breaks at model, make while loop. This is the cod...
[2 replies] Last: http://www.cplusplus.com/forum/general/112111/ > I want to transfer ... (by ne555)
by adeqze
Why my code doesn't read the rest of the file?
 
Hi, I am new to C++ and this forum too. I wrote a program that reads a file into an array. The problem is it only reads the first number in the file and displa...
[5 replies] Last: @ jasongog24 http://stackoverflow.com/a/5605159 (by MiiNiPaa)
by Sam99
Input a node into Linked List
 
Hi there.. I am working with simple linked list which adds a node; to just understand how it works; and pre-try for my assignment. The question is, How can I a...
[no replies]
random being repeated
 
Hi! So I have a code here. The objective is to create a multiple choice quiz where questions are coming from a text file and will be picked randomly to be displ...
[no replies]
by Jebran
How to create C++ program to display name and address
 
Hello, Hope every-buddy is fine, and thanks in advance. I am new to C++ -- I want to write a simple C++ program which takes input from user and displays it. Th...
[1 reply] : Line 2: #include <string> Line 10: std::string name; Line 11: std::str... (by keskiverto)
How to store values in an array?
 
How to store values in an array? I'm making this program. But I want to use the values 'y' which I put in the list below. I guess I need an array which will sto...
[1 reply] : http://www.cplusplus.com/doc/tutorial/arrays/ (by keskiverto)
by nvrmnd
why won't template deduction work in this situation
 
The two anonymous objects constructed at main() inside the call to print() requires me to supply the template arguments but it can be deduced ? right ? GCC sa...
[1 reply] : Can not deduce. 'Val' is not a typename. Val<int> is a typename. std:... (by keskiverto)
Learning OOP and getting Access violation
 
I have been working on classes with C++, though I have known how to use basic classes for the past couple of months I am now learning overloading and copy const...
[1 reply] : fixed it by removing the delete call in both the constructor and copy ... (by JakeTheHuman)
Data structures:stack/queue Help and Advice
 
hello, ive been set the task to implement a data structure of either a stack or as a queue. by what i know roughly (as i'm very inexperienced and new to this) i...
[3 replies] Last: i have gained more insight to the world of stacks and queue! JLBorges,... (by connor grimes)
variable changing by itself?
 
Ok, I can't look at this code any longer. I am trying to write my own sha256 algorithm. Why? I don't know, it seemed like a good idea, and how else am I suppose...
[3 replies] Last: If you want a variable length buffer type, make a variable length buff... (by kbw)
March 2014 Pages: 1... 5455565758... 79
  Archived months: [feb2014] [apr2014]

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