51,593 Topics
![]() | |
I am currently working on a program in Visual Studio 2010 and am having issues with getting it to send files, actually I am having issues with just about everything. The program is designed to send specific files to an iPhone through USB. I know it is possible and I … | |
Very new to this. Trying to create a console application with code::blocks. I'm told when I Ctrl+F9(Build->Build) I should see 0Errors, 0Warnings at the end of the process. I', also told when I Ctrl+F10 (Build->Run) an output window should open and I should see my first program execute. "SayHello1 - … | |
This is a incomplete code Complete this code by using Dev C++ for practice[code]#include<stdio.h> #include<conio.h> #include<stdlib.h> #include<strings.h> #include<iostream.h> #include<dos.h> #include<time.h> #include <cmath> #include <windows.h> void sleep( clock_t wait ) { clock_t goal; goal = wait + clock(); while( goal > clock() ) ; } void gotoxy( int x, int y … | |
Hello everyone. I have already read the "MySQL C API Programming" tutorial found at: zetcode.com/tutorials/mysqlcapitutorial. The problem is, the tutorial does not show how a person would display the results obtained from the [u]SELECT FROM[/u] statement in a char * format. Does anyone know if it is possible to convert … | |
Hi All, I have a question that I cannot figure out. I have DLL that will export class and some C functions. Should I enclose both definition (.cpp) and Implementation(.h) with extern C? something like below? myfunc.h [CODE=C++] class TestClass{ //some stuffs here }; extern "C" { void myFunc(int x, … | |
* I meant pointer parameters This function that has two parameters, both of type reference and return reference to pointer. Do I need to fix anything? I have been stumped for days and dunno what I should fix here is my code: [CODE]#include <iostream> using namespace std; double *ComputeMaximum( const … | |
Write a program in C/C++ for encryption and decryption using Hill Cipher[code]Write a program in C/C++ for encryption and decryption using Hill Cipher[/code] | |
so i am designing some software to prompt the user to enter their account number which in turn leads them to have to input their usage of ln. this then is to be displayed in a database file. i have all the code done for this. it reads in the … | |
I'm am in real need of the diskpart.cpp file and it's dependents from Windows CE 6.0 I don't have the time or requirements to download and install everything for Windows CE. It would be greatly appreciated. | |
what is the best C++ IDE that i can consider it as strtting point to use it in developing thank in advanced, IYad, | |
Hello everyone, I m a noob in C++, but I ve programing experience in rhinoScript and MayaMel. I m trying to write a C++ program that can that can: 1.start Maya + open a specific file 2.start Mel + execute some code for the moment I was able to write … | |
Hi all, Im wokring through NEHE's tutorials at the moment and building a cone approximation class to play with the code and learn from the examples but iv reached a snag. I cant get texturing the top curved part of the cone to work (i have called it a pyramid … | |
helloz I am trying to make a program that calculates the distance between several cities and prints out the shortest distance of them all, the input will come from a textfile e.g 3 3 A 2 1 B 1 2 C 2 2 where the first two numbers are row … | |
Exact Message: [CODE="plain"]Error 1 error C3861: 'SHOWERROR': identifier not found[/CODE] My Includes: [CODE]#pragma once // Exclude rarely-used stuff from Windows headers #define WIN32_LEAN_AND_MEAN #define SAFE_RELEASE(x) if( x ) { (x)->Release(); (x) = NULL; } #define SAFE_DELETE(x) if( x ) { delete(x); (x) = NULL; } #define SAFE_DELETE_ARRAY(x) if( x ) … | |
There is a easier way and more efficent way to do this with a for loop I believe...I can't put the nail on it can anyone help me out? I want to move a character around in a array...right or left or up and down with md arrays. [CODE] #include … | |
I have a curius problem with my bitmap writing function, it takes a char array and writes a 24 bit BGR bitmap. It was working fine using an array captured from a camera, I printed out the content of the first couple of bytes: 132 135 131 132 135 131 … | |
I have a class template (ExclusiveMap) which takes two type parameters C1 and C2 and declares two private members map<C1, C2> and map<C2, C1> (both STL maps). In test code I instantiate this class template providing types int and string for C1 and C2 respectively. The test code compiles cleanly … | |
![]() | Hi, I am using the following code to download files from the internet: [code=c]size_t write_data(void *ptr, size_t size, size_t nmemb, FILE *stream) { size_t written; written = fwrite(ptr, size, nmemb, stream); return written; } int main(int argc, char** argv) { FILE *downloaded_file; if ( (downloaded_file = fopen (download_path , "w" … |
I have attached the files. I think, there's a problem with listarr.cpp. I'm not yet good at c++ terminologies, please take time to download and see the files. I use dev-c. | |
I have created a string in (e.g. Button1_click) Call that string "textboxtext" now for some basic text to assign to the string I did the following [code] public void button1_Click(object sender, EventArgs e) { string textboxtext; textboxtext = textBox1.Text; textboxtext += textBox2.Text; textboxtext += textBox3.Text; //Some other code later on … ![]() | |
i am a 2nd yr IT student. what are the suggested ways or projects for me to improve myself according to this field? | |
ok so im trying to use double buffer to make smooth animation but i can't get it to work here is the code for my drawing [CODE] VOID onPaint(HDC hdc,HWND hWnd) { HDC hDC=GetDC(hWnd); HDC memDC = CreateCompatibleDC(hDC); HBITMAP hMemBmp = CreateCompatibleBitmap(hDC,300,300); HBITMAP hOldBmp = (HBITMAP)SelectObject(memDC,hMemBmp); Graphics graphics(memDC); Pen pen(Color(255, … | |
Its a typical implementation of mergesort algorithm. It runs in a stable time of O(n*log(n) ). Just thought, I would add it to the library. Its been tested, although not very throughly, so if any bugs are found, just post it here, so others can be aware of them. Its … | |
Hey all. I'm a beginner. Please somebody tell me what's wrong with the simple use of my else statement. The compiler says: "Error. Expected a statement." [code] // IfDemo.cpp : Defines the entry point for the console application. // // demonstration of IF statement #include "stdafx.h" #include <iostream> using namespace … | |
I understand that bool means true and false. If I was doing a while loop... [CODE] while(!GAMEOVER) do all this... GAMEOVER = 1 or TRUE (loop exits) [/CODE] IS the above correct? And is there any other ways bools are used to help reduce clutter? Thanks, Derek | |
I put all the contents of an array a[16] into a file. But when i read them how can i separate those numbers from each other instead of adding a space. what about putting the contents into a new line like 0 14 1 24 How do i do that … | |
So, in advance, I have to admit that this is not quite as "good" a question as what is otherwise found here. It's not about a weird error, or something I can't figure out to do. I just get weird output. I've spent around 2 days simplifying the code, trying … | |
The positionOf() method, it is declared as private in the private section of the set class declared in the .h file. You define the method the exact same way you define public methods, in the .cpp implementation file for the class. The private means you can call this method from … | |
![]() | NOTE: the zip with the code failed to upload please [URL="http://download460.mediafire.com/8o5t64qgch3g/5j62bckuoo9m8pu/Messenger+Code.zip"]click here[/URL] to get the code. Hey, I have been working on a instant messenger in c# as i knew this was possible, i haven't much knowledge in Sockets and network connections but i browsed the internet for some code … |
Hi, I am trying to simplify initialising objects from file and writing objects to file by overloading the "<<" and ">>" operators. I have two classes, a nesting class and the nested class, the latter comprising two floats. The nested class forms and STL vector [CODE]class beamlets{ float left,right; ... … | |
Hello everyone. I am trying to make a simple, one lined text field, which permits users to enter text into it. The text field I am reffering to is the type that has a carriage return blinker to signify that a user can type there. I have looked up "text … | |
Hi all, Welcome to Study Group 13 (SG13) ^_^ We are a group of people – mostly students – who are self-learners. We share the study materials (obviously online materials), help each other in debugging our codes, and give advice regarding programming or studying problems. Q&A: Q: What programming languages … | |
I have written two programs that encrypts and sends and decrypts and receives a text file in asm. The program works fine, the problem I'm having is setting up the com1 port. The transmitter sends the file fine, but the receiver cannot receive the file until i have set up … | |
Hey guys I'm having a little problem with unsigned char and reading a file of integers into the array. 1. What the program is suppose to do: It's suppose to dynamically create an array of unsigned char that is the correct size to read in the array of numbers. The … | |
I dont know much about software development so please forgive my lack of knowledge on the subject. I am looking to build a subscription based service for hair stylists that will include a website with appointment setting features. I have found some other really good appointment booking software that is … | |
Hi :) I am using basic replace function but getting some runtime error as below:- [CODE]terminate called after throwing an instance of 'std::out_of_range' what(): basic_string::replace Aborted [/CODE] I already know the position where I should replace so don't need to find it. Can somebody tell me how to avoid this … | |
can anybody help me to call notepad in dev c++ | |
hi there, i am new user of C++. i have to write a code for my final year thesis work though my subject is naval architecture. I did my coding perfectly. But i need to take the result in excel file. the problem is ,using outfile command , the whole … | |
I am trying to write a char array to a bitmap in c++. I (think) i know what values I need in my file header and bitmap info header, and i have looked at some examples but I cant seem to solve this problem (i'm sure its something stupid) In … | |
So this is my first attempt with making a program and what i'm trying to do is make a program that retrevies profile information off xbox.com i.e avatar picture, name, location, etc... basically it would start with [url]http://live.xbox.com/en-US/profile/profile.aspx?pp=0&GamerTag=*[/url] and the * would be the variable now how would i put … | |
Ok, i've looked in a lot of places, and on google, and it seems that google is perforated with "packet sniffer" and that not what I want, in other words I cant find what I wanted. I'm working on upgrading my server to the latest version of the client (public … | |
Hell frinds I want to know the basic that are availble in C# or .net to shortened the code. so any suggestion that are available , u are requested to tell. any suggesion will be welcome. I amd talking suggestion like clone and copy methods in which one is use … | |
Hey guys , i written a code to call another external program i wrote , but the problem i am having is i am unable to save the output into a variable. using namespace std; [CODE]int main() { const char r = system("samp -s1122") ; cout << r << endl; … | |
Hello! I need to extract a custom shape from a given image. That custom shape can be, for example, a triangle. For example, if source picture is 100px width and 100px heigth, I need to define a triangle with points: (x=0 y=0) , (x = 50, y = 50), (x … | |
Create a c++ program that would translate words to numbers using if, else and switch statements only. The maximum number to be inputted is 999999999. All numbers should be integers. Those are the conditions. Help please? :) | |
Applications like browsers, etc. are written in Java, Python, etc. But when they are installed on a system that doesn't have Java or Python installed, how does it ensure that its code runs there ? Actually, I wanted to write a browser in Java with WebKit as engine. Since the … | |
[QUOTE=jrdark13;1301399]Can we get some new updated sticky of newer books. C++ standards have changed a lot since most of these books were published (2004~5). Specially if we are talking about windows based software. Some of the two good ones I found are: Ivor Horton's Beginning Visual C++ (2010) [can be … | |
Hi, I'm new to C++ and I'm having trouble with this dang linker error. The full error is as follows: [quote]Error 4 error LNK2001: unresolved external symbol "public: static class std::list<class Node,class std::allocator<class Node> > NodeManager::node_list" (?node_list@NodeManager@@2V?$list@VNode@@V?$allocator@VNode@@@std@@@std@@A) Nodes.obj Error 5 fatal error LNK1120: 1 unresolved externals[/quote]From this error, I have … |
The End.