Beginners - April 2013 (Page 33)

errors with code
 
i am trying to write a function that will open a exe file but i am getting errors path = "C:\MyDirectory\MyFile.exe"; STARTUPINFO info={sizeof(info)...
[9 replies] Last: code now looks like this: TCHAR* path = L"C:\\Windows\\system32\\not... (by beginner123)
Program stops outputting data?? (Beginner)
 
Hi, I am going through a book about C++ at the moment. I understand the concept in this question about if else. One of the things it wants me to do is first p...
[4 replies] Last: Yeah, like cire said, you could say while (val!=0) and then 0 would... (by zeljko46)
Is istream or ostream "object" assignable?
 
Let's say there's an expression like: #include<iostream> #include<iomanip> int main() { int a(78); //to get the hexadecimal equivalent we can have std...
[1 reply] : You can use a stringstream, which is a string that can be treated as a... (by Zhuge)
delete and vector of pointers
 
I have a vector<someClass *> myVector; to hold just the adresses of someClass's objects dynamically allocated. Say I want to get rid of one of those objects. ...
[2 replies] Last: Thank you. Of course, the reason I'm holding just the adress of someCl... (by Marcos Modenesi)
Recurring errors for arduino code
 
I am piecing together code to read values from an arduino gyroscope. All of the code is from an arduino example program, (AnalogReadSignal), and the code locate...
[4 replies] Last: As far as I can tell, I have matched all } to { in void Loop. the corr... (by tiestoduro)
How to select current directory?
 
//Read picture string line; ifstream myfile ("/Users/XXXXX/Desktop/MathScripts/Proportions/Value Finder/picture.txt"); if (myfile.is_open()) { w...
[5 replies] Last: Assuming you know the basic controls of the terminal, open one up and ... (by Smac89)
compile with cmd
 
I compile with VS and Code::blocks I hope to know how to compile a cpp file using cmd .If that's possible also what is a command line?
[5 replies] Last: Command line is a (about to use the same words in definition...) a lin... (by Smac89)
Please help with my code!
 
This is what I have so far: // code #include <iostream> #include <string> #include <iomanip> #include <fstream> using namespace std; int Ge...
[2 replies] Last: http://www.cplusplus.com/articles/z13hAqkS/ you need to specify data ... (by Yanson)
Errors in calculator
 
#include <iostream> #include <fstream> #include <string> using namespace std; float numerator1, denominator1, numerator2, denominator2, answer; int main (...
[2 replies] Last: In response to Yason, I now have one error. Proportions Value Finder... (by ostrichparty101)
Array and Funcion problem
 
I have this code finished as far as I can tell. It will compile. But, the output is obviously incorrect. #include <iostream> #include <fstream> using ...
[4 replies] Last: It still doesn't work right. I think I have fixed what Yanson said ... (by geharbison)
Inputing into a char*
 
Over the past few days I have been searching literally everywhere for an answer to this question: How do you output a stings contents into a char*? I am creati...
[8 replies] Last: Zhuge, your suggestion worked perfectly. Thanks! (by snydecor000)
size of string 2d !
 
Hey Is there a way to get the size of this string int main() { string keyWords = {"bool","char","int"}; int size = function(keyWords); ...
[2 replies] Last: Thanks a lot @vlad from moscow (by closed account 28poGNh0)
Paragraph Reformat
 
I need help with an algorithm to reformat a paragraph using the cctype library and strings. Also there can only be 40 characters including whitespace per line. ...
[1 reply] : figured out the forty characters a line part of the problem now. Just ... (by brandondeleon92)
Question about int main()
 
Hi. What does 'int argc, char *argv ' inside of 'int main()' do? And is it needed? Thanks, Phillip
[2 replies] Last: Thanks (by closed account D3pGNwbp)
is directory found!
 
I want to check if a directory exists using its path like this int main() { string dirPath = "c:\\dir"; bool b = function(dirPath); if(b...
[3 replies] Last: Thanks a lot @ne555 (by closed account 28poGNh0)
by cpcp
Try to make larger array (dynamic array)
 
I try to make "m" larger during the program is ran... I try few things, but nothing works... #include <iostream> using std::cin; using ...
[9 replies] Last: Thank you so much fun2code!!! It's solve my problem!!! :-) (by cpcp)
system command and exe. files.
 
Hi, How do I create an executable file with netbeans project? I am pretty new to programming and computers all together so it is even harder for me to pose a...
[no replies]
by dipa57
Execution Time
 
I have a source file. I compiled two times: First with Microsoft VS Express for Desktop 2012 Then with Dev-C++. The execution times, in my computer, are: M...
[1 reply] : I want to know the answer too xD in fact i have a lazy video about it ... (by eyenrique)
by Niven
SDL Won't Recognize 3 inputs
 
In my program, whenever I press 3 buttons at the same time, the third one to be pressed isn't recognized by the program. It works perfectly fine if one or two b...
[13 replies] Last: So basically, I have terrible luck with everything? (by Niven)
Erase a string in a vector?
 
Hey guys, I have to make a little program that makes a list of the users favourite games. It has to be able to display the list, add to the list, and delete fro...
[7 replies] Last: Thanks a lot guys, that was great :) (by silverwish)
April 2013 Pages: 1... 3132333435... 83
  Archived months: [mar2013] [may2013]

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