51,593 Topics

Member Avatar for
Member Avatar for Artifesto

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 …

0
29
Member Avatar for nsd11

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 - …

Member Avatar for nsd11
0
491
Member Avatar for sDanyal

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 …

Member Avatar for dusktreader
-2
418
Member Avatar for PixelExchange

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 …

Member Avatar for PixelExchange
0
201
Member Avatar for Stefano Mtangoo

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, …

Member Avatar for Stefano Mtangoo
0
223
Member Avatar for potato4610

* 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 …

Member Avatar for dusktreader
0
312
Member Avatar for neelm

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]

Member Avatar for hanvyj
-5
58
Member Avatar for helpme87

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 …

Member Avatar for helpme87
0
151
Member Avatar for jrdark13

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.

Member Avatar for Ancient Dragon
0
87
Member Avatar for palunix

what is the best C++ IDE that i can consider it as strtting point to use it in developing thank in advanced, IYad,

Member Avatar for palunix
0
188
Member Avatar for georgialucas

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 …

Member Avatar for Fbody
0
108
Member Avatar for Kanoisa

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 …

Member Avatar for mike_2000_17
0
487
Member Avatar for syd919

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 …

Member Avatar for Ancient Dragon
0
443
Member Avatar for Ketsuekiame

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 ) …

Member Avatar for Ketsuekiame
0
304
Member Avatar for dadam88

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 …

Member Avatar for Kanoisa
0
108
Member Avatar for hanvyj

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 …

Member Avatar for hanvyj
0
214
Member Avatar for arjunaw

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 …

Member Avatar for arjunaw
0
180
Member Avatar for Levo

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" …

Member Avatar for 0x69
0
2K
Member Avatar for aladar04

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.

Member Avatar for cgcgames
0
325
Member Avatar for trippinz

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 …

Member Avatar for saravind84
0
179
Member Avatar for eg_ kar

i am a 2nd yr IT student. what are the suggested ways or projects for me to improve myself according to this field?

Member Avatar for ithelp
0
69
Member Avatar for ramilol

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, …

0
157
Member Avatar for mrnutty

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 …

Member Avatar for Rashakil Fol
0
885
Member Avatar for EdAtTheAirport

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 …

Member Avatar for EdAtTheAirport
0
123
Member Avatar for vbx_wx

I have to do this : define a float variable and take its adress,cast that to an unsigned char and assign to it to an unsigned char pointer: Why isnt this good ? [code] float f; unsigned char* c = static_cast<unsigned char>(&f); [/code]

Member Avatar for Narue
0
77
Member Avatar for dadam88

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

Member Avatar for dadam88
0
95
Member Avatar for dchunt

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 …

Member Avatar for cgcgames
0
113
Member Avatar for miturian

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 …

Member Avatar for miturian
0
353
Member Avatar for lafayettejohnso

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 …

Member Avatar for Fbody
-1
162
Member Avatar for nssltd

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 …

0
72
Member Avatar for bobsta

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; ... …

Member Avatar for dusktreader
0
212
Member Avatar for PixelExchange

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 …

Member Avatar for PixelExchange
0
116
Member Avatar for Ndoom

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 …

Member Avatar for popin
0
454
Member Avatar for schaffino

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 …

Member Avatar for mike_2000_17
0
167
Member Avatar for indigo.8

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 …

Member Avatar for indigo.8
0
2K
Member Avatar for mchandler

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 …

Member Avatar for ithelp
0
113
Member Avatar for Web_Sailor

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 …

Member Avatar for Fbody
0
386
Member Avatar for camcam08
Member Avatar for coder05

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 …

Member Avatar for coder05
0
83
Member Avatar for hanvyj

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 …

Member Avatar for hanvyj
0
668
Member Avatar for heezay

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 …

Member Avatar for thelamb
0
130
Member Avatar for Merlin33069

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 …

Member Avatar for Merlin33069
0
104
Member Avatar for Shilpakmthn

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 …

0
59
Member Avatar for arshiyafatima

i have write a c++ progam psudocode on additon of two numbers and average of two numbers enterd from keyboard

Member Avatar for jasikamarshel
0
98
Member Avatar for gregarion

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; …

Member Avatar for jonsca
0
86
Member Avatar for eligio

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 …

Member Avatar for eligio
0
1K
Member Avatar for pamelaanne05

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? :)

Member Avatar for soulcandra44
-3
195
Member Avatar for daudiam

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 …

0
41
Member Avatar for ithelp

[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 …

0
72
Member Avatar for SoulMazer

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 …

Member Avatar for SoulMazer
0
319

The End.