C++ :: How To Get Source Code From The Web

May 4, 2014

I am making a game and want to make an updater that grabs the source code from a page on the web. Can this use things that are available to all platforms? It could just be something that grabs the text from the page and executing it (maybe using something like Python's exec() command ?) BTW I'm using mac

View 1 Replies


ADVERTISEMENT

C++ :: Compile Source Code Into APK

Oct 14, 2014

I want to start developing Android apps in C++, but I do not know what I could use to compile the source code into an apk. I know that C++ is probably not the best choice for Android development, but I already know it and I do not want to learn Java.

View 4 Replies View Related

C++ :: Source Code For LZW Decompression?

Dec 16, 2013

Is there source code for LZW decompression in C++ available? Not C.

I'm looking for an implementation of the LZW decompression algorithm in C++ which can take an input buffer and not a file. if one exists?

View 6 Replies View Related

C++ :: How To Put String Content Into Source Code

May 23, 2013

I'm trying to write a program that prompts the user to enter a math expression (i.e 2*x + x*x) and a value of x. Then generate the value of y. My real question is: Is there a way to put the content of a string into the source code?

Example:

string math_function;
double x, y;
cout << "Enter the function: ";
getline(cin, math_function);

[Code] .....

View 4 Replies View Related

C++ :: How To Properly Cite A Source In Code

May 24, 2013

For example, if one researched how to deep copy a map container and paraphrased a solution from a website, what is the proper format? Are there standards for citing works in code?

I am currently only citing the link to the source in my personal code and explaining what algorithm the source contains.

View 4 Replies View Related

C++ :: Making Exe File From Source Code?

Sep 4, 2013

I use a programming language called layout which nobody here has probably ever heard of. It was discontinued over 15 years years ago but it was a very visual & easy to use piece of software - no coding required. In fact once you name all the variables on cards (forms) from then on it's just mouse clicking & occassionaly typing a number if required. It used blackboxes in a flowchart arrangement which were pre-done code for doing just about anything. i.e opening windows, handling numbers & text, files etc. I have written many programs with it including database management, quoting software & currently use it in my business to track my jobs & do invoicing & ordering. It's a pity it wasn't updated & still around today.

[URL]

Back to the problem. Being a 16 bit program it was written to run on Windows 3.1 but still works on Windows 7!! as long as it is the 32 bit version. I need to write a program that will run on 64 bit W7 without resorting to using a virtual PC solution. I have tried to find something similar that I might be able to use instead but so far nothing comes close to Layout. I just remembered today that layout can produce not only .exe programs but also various versions of C/C++ including visual c++. So I got this idea that if I could get those files I might be able to stick them into a C compiler program to re-make a "modern" exe file.

I could just do a simple sample program & send the source code to them to see if it works on a 64 bit version of Windows 7. how I can do this myself to produce a working exe file.

View 5 Replies View Related

C/C++ :: Source Code Containing Struct Pointer

Mar 9, 2015

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main() {
struct stock{
char symbol[5];
int quantity;
float price;

[Code] ....

- In the final output
Value
%.2f

- How is the final pointer reference at line33 leading to the output %.2f ? (i do understand that the %% is used to display a %] ....

View 1 Replies View Related

C++ :: How To Make Source Code Into Functional Program

Jun 10, 2013

How to make a source code into a functional program that a user can open and use without coming across the source code and building or running it.

View 1 Replies View Related

C++ :: Reading Source Code From Uncompleted Files?

Jun 9, 2013

I know it sounds strange but I've seen things that have files which contain source code (usually in something in Python or such) and how this is read on run-time?

View 1 Replies View Related

Visual C++ :: Merging Source Code Of Two Projects?

Oct 9, 2013

I am working on VS2008. I have two separate projects which have almost same functionality along with same file names but few are different. So I decided to use the same .cpp and .h files for both the projects. Both are Dialog based applications.

So what I did is I merged the source code changes to one by using #ifdef XXXX in all the common .cpp and header(.h) files.

I also moved the .rc file and .vcproj file to other project (As they were of different name).

The problem is with the resource.h file, as it is the file with the same name in both the project. By using #ifdef XXXX in .cpp files the compilation is working file but here in resource.h the resource is getting corrupted and the diglogs are not getting displayed.

how to merge two resource.h files to one.

View 2 Replies View Related

C :: How To Create A Shared Library From Source Code In Autopy

Jan 22, 2013

I'm trying to find a C library for automating mouse clicks and keystrokes, something like the Python package AutoPy would be ideal.

Might have heard of Auto-it [URL] ...., which automates GUIs in Windows. Something like that would also be good, but my main OS is Linux.

I'm not sure whether it would be possible to create a shared library from the C source code in autopy.

View 4 Replies View Related

C/C++ :: Compiling Source Code And Making Binary File

Apr 19, 2014

How to compile this source code and make a binary file

I think this need linux and run make command or gcc

This binary is a super user for android

source code attached

Attached File(s) : su.zip (7.59K)

View 3 Replies View Related

Visual C++ :: HTTP Flood Code Ported To Bot Source?

May 6, 2013

I am stress testing my webservers and I need to code or port a C++ HTTP GET flood onto this C++ bot sourcecode. I believe I will need GetTickCount so I can specify the duration of the flood as well. I already have the C++ HTTP Flood .cpp and .h files but have no clue how to put it together onto this source. This will be easier to do over Teamviewer as I'm already using C++ 6.0 and have been with no issues.

View 14 Replies View Related

C++ :: Implement Source Code That Turns Numbers Into English Text

Apr 18, 2013

I have been working on the same problem as mp252 from an earlier thread and 4 days later, I appear to have it working. Mine only goes from 0-9999 though as I must move on!

Code:
#include <iostream>
#include <string>
int getThousands(int number);
int getHundreds(int number);
int getTens(int number);
int getUnits(int number);
void printNumber(int number);

[Code]......

I had a scrap of paper like a mad scientist trying to find relationships between numbers and the values that they would return through my functions. This is how I arrived at the conditions of my if statements in 'void printNumber'.

I have seen other code that allows a greater range but I can't quite follow it (yet):

C++ code by fun2code - 67 lines - codepad

View 1 Replies View Related

C++ :: Crypt Source Code Of Ufasoft Miner To Make It Undetectable

Oct 18, 2012

I need to have Ufasoft Miner source code modified so it's rendered undetectable to antivirus software. The source code is located here: [URL]

It's programmed in C++.

We have other unrelated projects after this, that you might apply to.

View 2 Replies View Related

C++ :: Write A Source Code That Find Smallest / Largest And Average Of Numbers From Array

May 13, 2014

im trying to write a source code that find the smallest, largest and average of numbers in array. the code runs fine, but it is not giving the highest number and the the average should include only four number excluding highest and smallest number from the array.

void OlympicJudging() // Olympic Judging {
int numbers [6];
double average, sum = 0;
int temp;
for(int i = 0; i < 6; i++){
cout << "Please type a value for scores: ";
cin >> numbers[i];

[Code]...

View 5 Replies View Related

C :: Print Out - Array Code And Pseudo Code?

Apr 15, 2013

I have assignment which requires me to print out and array code and a pseudo code. I dont no what a pseudo code is,.

View 2 Replies View Related

C++ :: Finding Source Of A C2143?

Mar 6, 2013

I am lost trying to find a C2143 missing ; before using Error in all of my cpp files.

///// main.cpp///////
#include <iostream>
#include <time.h>
#include "fight.h"
#include "player.h"
#include "zombie.h"
using namespace std;
int direction;
player R; //instance of player class
combat B; //instance of combat class

[code]....

View 5 Replies View Related

C++ :: Binary Tree Source?

Jul 12, 2013

I just want to ask if some of you know good source for learning about Binary Trees.

View 2 Replies View Related

C# :: Decompile Back To Source?

Apr 24, 2014

I'm trying to decompile an old software that I need to start using again.

when I tried to open the file in ILSpy I got this message "This file does not contain a managed assembly"

I tried all other decompilers but still no luck.

View 3 Replies View Related

C/C++ :: How To Get Multiple Source Files To Run One After The Other

May 16, 2012

I am trying to run multiple source files but right after the first one finishes running the program closes and doesn't move on ...

View 2 Replies View Related

Visual C++ :: How To Step Into SDK Source

Sep 11, 2014

I am building a project using Ogre3D, and I've downloaded the source code of the SDK.

For whatever reason, the program has got a bug. And I want to know what is going on within the SDK, how do I include the SDK source in Visual Studio 2010?

View 4 Replies View Related

C :: Accessing Pointers From Other Source Files

Oct 16, 2013

I've recently been learning GTK (though this question is not specific to GTK), and came across a situation that I was unsure how to best handle. Essentially, I've defined several pointers in one source file, and I want to access those pointers from other source files.

The structure of my GTK programs generally follow this pattern:

- "main.c": Define the main window and run GTK main
- "create_window.c": Create and arrange widget pointers in the main window
- "program_functions.c": All other source code for the project (several source files in reality)

In "create_window.c", I declare and define all my widget pointers (e.g. label). If I need to modify those widgets in "program_functions.c" for any reason (say, to change the value of a label), I need access to the pointers created in "create_window.c".

My first thought was to create a global struct of pointers in "create_window.c", and extern that struct to the other source files that need access to the pointers. The thing I don't like about this approach is spreading globals across my program.

My second idea was to create access functions in "create_window.c" where the necessary pointers are statically stored. The first time I call this function (immediately after creating a widget), a static copy of that pointer is stored in the function. Each time afterwards when I call that function (from other source files), I simply use that static pointer to access the widget of interest.

Example:
Code: void edit_label_1(GtkWidget *label_set, const char *string)
{
static GtkWidget *label = NULL;

[Code].....

Are either one of the approaches considered acceptable by standard practice?

View 2 Replies View Related

C :: Declaration Of Array In Another Source File

May 5, 2014

I was going through a code where i found the definition of int array[63] in one of the source files. But i also found the declaration as extern int array[66] in another source file. This is clearly wrong, but my doubt is how the compiler compiled it. It should have thrown error. In case if it compiles then what will be the behavior of the system? Will it be normal or some undefined behavior?

View 3 Replies View Related

C :: Pages Handling In Embedded Source

Jul 9, 2013

I'ma firmware writing, and usually use only C language (not my decision, unfortunately!).In many application we've only a text display (2 rows 16 columns ascii char, or 4x20 or something else). But the question can be used also for semi graphics panel and so on.

I'm looking for an example / library / sourcecode to handling all the pages in the project. When the program start you've a 1st page (wth info abt release, hallo screen and so on), then with a arrows buttons you can navigate throught many pages. Some of these can be called by SW (or HW) events. (Button, alarm, end of job ...) In abt 20 year of experience3 I?ve seen many type of different code.

View 1 Replies View Related

C :: Compile Multiple Source Files

Mar 7, 2013

How I can compile multiple source file in visual studio 2012 ???

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved