Beginners (Page 94)

Value returning function
 
So I was wondering how would you go about returning a value from one function and using it another. ...
[1 reply] : You just pass it to the second function like anything else. (by firedraco)
Command Line Arguments, Weird Results
 
Hello, I'm working on an assignment to create a program that takes in 4 test grades and returns a le...
[4 replies] Last: Thanks so much! It works fine now. To anyone else who might come acros... (by hinesro)
How to make the file operational
 
As you can see im trying to make the example.txt file mathematical operational. Cause for example in...
[1 reply] : you will have to parse the string and do the operations yourself. if... (by giblit)
Searching array by value
 
How can I find arrays index by value? for example: int box = a,array ={b,a}; One way...
[1 reply] : std::find can search arrays: http://www.cplusplus.com/reference/algori... (by Cubbi)
Screen wont stay open
 
No errors found but whenever i compile it. the screens just opens and close suddenly. #include...
[2 replies] Last: Ugh I wouldn't really suggest using conio to keep open the console as ... (by giblit)
passing array to calling function
 
need help in passing an array that was initialized within a function...below is a code snipet. can s...
[no replies]
how to decalre namespace?
 
i know how to declare + definite but how can i only declare it? if i declare and definite in one ...
[2 replies] Last: yah i know about your code, my question was if its allowed for me to d... (by SrgjanLDTeam)
by mlor3
How to get code to update price (accumulate) when it runs the loop over again?
 
The price resets when the code re-loops. Is there a way I can get the price to accumulate instead of...
[no replies]
by enemy
One just indentation topic
 
Hello! Please, is the first function ok indentated now? The problem is I saw many different types an...
[2 replies] Last: Thanks, MikeBoy!:) Better now ( I "tidied" it a little!) What is the... (by enemy)
Help Finding The Max value
 
Hi everyone, I want to know how we can make the program print the the max value from several data th...
[2 replies] Last: Thanks for the explanation, although I still did not use my friend's ... (by LuminaChen)
by enemy
is sth wrong with cout I do nt see???
 
Please, does someone see the error? It is marked here: if (a>3){cout<<f4()<<endl;}; and it goes fo...
[2 replies] Last: BIG THANKS!!! (by enemy)
by Drone
My wish fountain is greedy
 
Write your question here. Hi,I'm really new to programming and c++ is the language I chose to get s...
[4 replies] Last: Remember, number = 1 assigns the value 1 to the variable "number", w... (by fafner)
Linux re-direction
 
Hello All, Could somebody help with writing a program. I am trying to create a program which ...
[1 reply] : It's generally not a good idea to ask an open question like this, with... (by fafner)
by renrew
If else statement
 
I only have one last problem before I complete my c++ project. I need to make a program which shows ...
[3 replies] Last: Nvm. Already done it. Thanks for the help! :) (by renrew)
Linked list
 
So I have linked list and function which deletes element if next element is bigger, so my code is wo...
[1 reply] : You are passing null pointers to your function. Then you dereference t... (by Smac89)
What is wrong? Error: expected ';' before string constant...
 
i know i should not put help in the title but: i have looked every where, all people having the sam...
[5 replies] Last: solved my problem, thank you anyway (by SmallButPowerful)
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...
[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 in...
[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 ...
[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...
[5 replies] Last: class foo{ std::vector<int*> v; public: foo(int size): v(size){... (by ne555)
Pages: 1... 9293949596... 117
  Archived months: [feb2014]

Cannot post in this page. To post a new message, go to the first page.