xxxxxxxxxx
Good cpp compilers:
---------------------
replit.com/languages/cpp
www.w3schools.com/cpp/trycpp.asp?filename=demo_helloworld
onlinegdb.com/online_c++_compiler
programiz.com/cpp-programming/online-complier
cpp.sh
xxxxxxxxxx
//Great online compiler for c++ what I recommend
https://www.onlinegdb.com/online_c++_compiler
xxxxxxxxxx
//Comment if you find a better one
//http://cpp.sh/
//Programiz, replit, onlinegdb are also good ones
//For nerds only: https://cppinsights.io/
xxxxxxxxxx
#include <iostream>
using namespace std;
int main()
{
cout <<"Hello World.";
return 0;
}
xxxxxxxxxx
#include <iostream>
using namespace std;
void main()
{
cout<<"Hello world"
}
xxxxxxxxxx
Three good online compilers:
https://www.onlinegdb.com/online_c++_compiler
https://www.programiz.com/cpp-programming/online-compiler/
http://cpp.sh/
xxxxxxxxxx
package devmedia;
import java.io.FileOutputStream;
import java.io.IOException;
import com.itextpdf.text.Document;
import com.itextpdf.text.DocumentException;
import com.itextpdf.text.Paragraph;
import com.itextpdf.text.pdf.PdfWriter;
public class GeneratorPDF {
public static void main(String[] args) {
// criação do documento
Document document = new Document();
try {
PdfWriter.getInstance(document, new FileOutputStream("C:\\PDF_DevMedia.pdf"));
document.open();
// adicionando um parágrafo no documento
document.add(new Paragraph("Gerando PDF - Java"));
}
catch(DocumentException de) {
System.err.println(de.getMessage());
}
catch(IOException ioe) {
System.err.println(ioe.getMessage());
}
document.close();
}
}