Thanks for the replies.
Type: Posts; User: Smiley10
Thanks for the replies.
#include <iostream>
#include <string>
using namespace std;
int main() {
string str = "Hello\0World";
const char *c_str = str.c_str();
for(int i = 0; i < 20; i++) {
cout...
Thank you.
obaid's code is modifying a string literal too which are constant.
Why are there no standard restrictions on modifying string literals?
Try using a batch file or create a program which uses ShellExecute() or ShellExecuteEx().
Ok so I go and download the source code for filezilla from sourceforge in the hopes that I can learn some stuff. I'd like to compile this so I can use it with the gdb debugger in MinGW but...
You haven't assigned a value to i and then you're saying k = i. That's like me telling you there is a number called x which I don't know the value of and y = x, can you tell me the what number y is?...
I have four files in my lib folder: libeay32.def, ssleay32.def, libeay32.a and ssleay32.a. Adding -leay32 to my linker works fine but how would I add ssleay32.a?
EDIT: Ok I figured I just had to...
How would I go about installing OpenSSL for Dev-C++? I've tried installing the source by using MinGW 5.0.0 and Dev-C++ beta (which didn't have MinGW already installed). I've tried installing the...
scanf("%d", &income);
Should be %f
tax = '0';}
Surrounding the zero in single quotes turns it into a character and I think you'll be getting the ASCII value rather than 0.
else(income >...