No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hi!. I am having some problems with functions scopes again. I need to use one array initialized in one function, in a different function. I have searched on how to pass the array by reference or value ( and I truly don't know if that's what I need) but I … |
|
Re:
Ok, I'm a bit confused on this whole thing, I guess I just need another brain on this. Each line in my CSV file reads something like this: LAV32,Aluminum RTV Silicone 30/bx,T614A,Lavanture,12 Now, LAV32 would be the id tag that would be read by a barcode scanner. What I need … |
|
So I am trying to use multiple source files for my text based game. In Code::Blocks in doesn't even compile it says " cannot find -lfunctions.h". In Dev-C++ it compiles but the function doesn't work properly Here is the code Main.cpp [CODE]#include <iostream> #include <string> #include <fstream> #include "functions.h" using … |
|
Hi! I have two questions about functions. First how can I use a main() local variable in a function outside of main? And how can I use a variable in the function paramaters which already has stored information (stored in main() ), and not have to give it new information … |
|
Re:
hey all. this is (if i remember correctly) my first post, i have done alot of reading on this forum though and have found the info invaluable. my program is a calculater that calculates the amount of sheets of plasterboard and bags of plaster needed for a wall, firstly: have … |
|
Re:
Hello guys! I'm new at C++ (started yesterday) but I'm a fast learner and I think I got pretty far with this noob project! The only thing I need to do is to make C++ open my .txt file and the beta version of this application is done! By the … |
|
Re:
I have an issue with this assignment, the instructor says that I use the brackets incorrectly that is why the program will not compile. Please provide feedback to correct program. #include <iostream> using namespace std; int main() { system("color 4"); restart: int number, ans; number = rand() % 100 + … |
|
Re:
I'm doing some math with floating point numbers and I'm getting weird results. For instance, the result of one of my math problems has an "e" and "+" in it. -4.49255e+013 How do I make it display a value without the weird "e" and "+" |
|
So here is how the program should work: It should accept a string in which there is a full operation (ex. 23 + 34) it should split the string into three parts. The first and the third part should be the numbers and the second should be the operation sign. … |
|
I was wondering. Is there any function like strtok to split into tokens a string, which is c++ standard? Also is there a way to store those tokens into separate char arrays? Thank You |