49,761 Topics
| |
[COLOR=DarkOrange]wat is the difference b/w ponters and strings?[/COLOR] :sad: | |
So I have to make a UNIX shell that can basically take in any UNIX command and then keep a record of the time each process took, by forking off children processes, recording their time, and recording the parent's time, and then return that time into a linked list or … | |
I have a toolbar with 2 togglebuttons. I have a program written in C# and another in VC++.NET of the same code. In the C# program, the toggle button would pop when the other is pushed and vice versa. In the VC++.NET program, this doesn't happen. Both buttons could be … | |
Hello, I'm trying to get an OOP MFC application working, so far it complies and everything but nothing happens. And I cant work out why. I would post code snippets but the simple fact is the MFC lib is far too big for that stuff. I've zipped up my project … | |
Where could I find tricks, riddles and puzzles in C and C++ as I have a technical quiz and have to prepare for that. Thanks, comwizz :?: | |
hi frieandz I am chaitanya, I am new to this forum, well I am posting my first thread to this forum, please reply to this with an answer, I got a string called "helloworld" I want to swap the two words in that string an di want to print it … | |
Well this program is suppose to not accept anything but s, S, r, R, p, P, or q, Q. When some one enters anything whether it be those or somethign different the while loop continues (it won't let me escape) Well any ways here it is. [code] #include <iostream> #include … | |
I need some help with the following assignment. I think I'm pretty close, but I'm missing something. Any help is very much appreciated. Assignment: [I]Part 1 : "Create a function template called average(). It will accept two arguments of the same type and computes the arithmetic average. The average is … | |
Hello, I am trying to move data from a client to a server, and save it in a file. However, I am getting a "Runtime Error!" when I use the substr() function, here: [CODE]char buffer[256]; int sr = recv(acc, buffer, sizeof(buffer), 0); string buffStr = buffer; outfile << buffStr.substr(9,buffStr.size()-1) << … | |
Hi.I have been trying to write a simple program that teaches how to read and write Japanese.Unfortunately not every windows does not support Jpanese characters.So like when my program starts I have a pop up which has to give a japanese chared message altough I write the code as such … | |
Hello guys :) I have a prog. assignment due on Sunday! I need help to get me started. The task is implement a program for any hamming codes not just (7,4). The user input the following: 1. Desired hamming code (n,k) 2. Choose to encode or decode. So, I am … | |
Hello, I know, i'm pretty much new because I don't post here often, so go ahead and jump on me if you want :cry: . My name is Patrick Cason. Anyway, I have come here to ask you this. Are there any C++ game programmers looking to join a team … | |
Hello Everyone, I am a very green programmer, lol, and I really need alot of attention right now. My assignment consists of me writing simple codes, but I just cant figure this out out. > Question: > > > write a program using a function and a series of if/else … | |
i have to make a simple calculator program in c++ the program need to have the all the calculation in a function called do_next_op. i tried to make this program but it turns out that my program returns incorrect results, i think it may be caused by the value of … | |
How do you make an insertion sorting algoritm using a liked list, first of all, i really dont have the slightest idea about link list, can anyone pleeeeeeeeeaaaaaaase help me.... :?: :?: :?: :?: :?: :cry: :cry: | |
Hello to you all , i have recieved an assignment to build a recursive function which will recieve an array which has to check if it is "Up&Down" from both sides : Example : 2 5 6 12 7 5 2 . according to the specs of the H.W assignment … | |
Havent written any code in along time but took up a little project that requires some C++ , Just need a little help getting started. Does any one have the source code for a program that will Read file write what it reads to another file. Pick out specific tokens … | |
Quick question while learning C++: Say you have class A, you can instantiate an object of class A like: A a; And then you can do stuff with that class (eg, a.method(), etc.) But you can also do: A a = new A(); And do stuff with that, and delete … | |
Hi evryone I using MVC++ and built my project using Win32 app. My program do not have any interfaces. it reads files and it put the output in another file. ( I do not mind put interface only to enter the path) the thing is I made my program read … | |
I have been having some problems with strtok. I'm not very experienced in C/C++ so I'm not used to using strtok. the code I have is this: [CODE] char *cmnd; string cmd[100]; char inpt[81]; while(1) { cout << "statsh$: "; cin.getline(inpt,' '); cmnd = strtok(inpt," "); int c = 0; … | |
hi, :) I have just started doing programming for emmbedded devices. i'm using AVR atmeg16 microcontroller and Cygwin C/C++ 32-bit compiler. Can anyone of you tell me which processor is used in Nokia 3315. and where should i get the documentations. Please don't tell me to see GOOGLE, I tried … | |
Is there any way to resize a console program while its running also whats a better way to clear the console then [CODE]system("cls");[/CODE] cheers | |
Here is my attempt, could you look over it and tell me what I am doing wrong? #include <cstdlib> #include <iostream> #include <ctime> #include <cmath> using namespace std; void add(float[],float[],float[]); int main() { float a[500000000],b[500000000],c[500000000]; for(int count =0; count<500000000;count++) { a[count]=rand(); b[count]=rand(); } add(a,b,c); return 0; } void add(float x[],float … | |
I found this c source code in some website wich is very complex and interesting to study . so i get the code and look at it its really complex so i decided to try it out and compile it and i get errors. [CODE]Compiler: Default compiler Executing g++.exe... g++.exe … | |
Hello, I am working on a server program that deals with opening files, or at least that is all that is relevant for this post. I am using VC++. I use multithreading so that it can be multi-client, of course, but when I try to use this line: [CODE]infile.open(filename, ios::in);[/CODE] … | |
Hi everyone I used MVC++ and built a project win32 app( world) which has in it folder(world.dsw, world.dsp, world.cpp,world..., Input.csv,output.csv) , my program do not have an interface. because it open and read in.csv and do some calculate to put the output in out.csv. Now I would like to make … | |
Hello i am new the the programing sene and im trying to create a program for my help with my html and i am stuck! I can get basic HEX code from like CC to 204 dec. but i cant go backwards? and i want to be able to tell … | |
I have developped windows dll from VB. (The site [url]http://www.windowsdevcenter.com/pub/a/windows/2005/04/26/create_dll.html?page=3[/url] gives a way to generate windows dll from VB). when I try to access it from VC++, it gives run time error as access violation. If anybody knows the solution to access the DLL in VC++ , created from VB, | |
If I have this struct : [code] typedef struct node { int key; struct node *leftp; struct node *rightp; } *Treep; [/code] and I have this function [code] int blah (Treep *tree); [/code] How can I pass the tree right pointer again into the blah function, I tried using blah … | |
i just started using c++ and ive been using this website alot. its been alot of use. thanks all you guys I saw a thread today about using the dos prompt to shut windows down. i had a idea to include this in a program. the command simple enough its … |
The End.