- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
Hello, I am making an application for Android that will save users voice command and then while the application is running; compares the realtime data from the mic input to the one that is saved. So far I have saved the voice in wav file now I want to compare … |
|
Re:
This is part of my Wumpus Hunt program. Suggestions were to clean up the main() part of the program by creating functions. I am working on that and ran into this difficulty (for me). The functions that relate to the rooms of the game need to return an array. I … |
|
Hi,I want to copy a few files to the Windows\winsxs folder ,but in windows vista/7 you cannot write files to that folder, apparently there is a user called "TrustedInstaller" only that user has write access to the folder. TrustedInstaller > Administrator. I tried to use "runas" for my process but … |
|
Re:
I am trying to calculate the height and width of a char array? The char is like an Ascii art of a card. And what I am trying to do is calculate how long the width is before the '\n'(newline), and how long the height is till the null terminator. … |
|
Re:
Sorry to bother you all with such trivial stuff, but I just finished about 35 years of work in construction, all over the US and Europe. And when the market went south I went back to school. Calc and trig are going fine, but C++ is kicking my butt. We … |
|
Re:
[code] #include <iostream> using namespace std; class X { public: X(int) { cout << "X()" << endl; } void f() { cout << "f()" << endl; } }; class Y: public X { public: Y(int): X(1) { cout << "Y()" << endl; } }; class Z: public X { public: … |
|
Re:
struct list_link { int key; // identifies the data double value; // the data stored struct list_link* next; // a pointer to the next data }; struct list_link* create(int key, double value, struct list_link* next) { return 0; } the "struct list_link" contains two variables and a pointer. what exactly … |
|
Hi,I want to make a program to search for files in a particular Directory,can anyone please tell me the basic functions to open directories and files(not txt files) in Visual Studio 2008.How to open a directory,and check the files in that directory,etc? I can do this in Unix by using … |
|
Re:
I am tring to remove three string from a que using nodes. When I try to remove the third one it does so, but then I get a debugging error. I think the problem is that I am not deleting the last node but I cannot figure out what I … |
|
i have so many functions in my program,what i want to do is, i want to return back to the main() but in somewhere middle of it!. should i use goto statements? i tried 'em,it gave some error! if i should use goto then please explain how to,thanks |
|
Re:
Figure I might as well go ahead and clear up that this is obviously a school assignment. I have completed a somewhat decent amount of code (not saying I have a lot of faith in it's correctness tho) and need assistance to figure the rest out. I'm at a complete … |
|
hi,i am making trees and i want to draw the structure of the tree in windows forms applications.since the class tree has the access to the trees root pointer.so only a member function of the class can draw the nodes of that tree. but i cannot use the graphics pointer … |
|
Hi,I want to convert String^ to Int array or a char array.I am reading numbers from a file in GUI but the StreamReader Reads the Text in a String.I need to convert them to use the numbers. I have tried ToCharArray() function but it doesnt work! this function gives the … |
|
Re:
Hello please how can i get a pointer value that is in for loop??? |
|
Re:
hi can anyone tell me how to generate random number within certain limit as in between 10 to 20 etc .please help me Thanks anuj |
|
hi,i am trying to make a global integer array of size 32 in Windows forms.I am Using Visual Studio C++ 2008. here is my code: [code=c++] array<Int32^> ^garray = gcnew array<Int32^>(32); [/code] if i declare it globally then it gives the following error: "error C3145: 'garray' : global or static … |
|
Re:
I am trying to implement these patters using for loop....I am having difficulties with them....If someone can help, would be great!! I attached the pattern to a Image.... [ATTACH]10180[/ATTACH] I tries this code for the third pattern...I have no Idea how to get them done....can anyone post codes for all … |
|
Re:
I have this loop i made and just cant figure out why it wont stop running..can some one help ..I just need it to say what decision i made then stop...or display the ol' press any key to exit app..God Bless.. [code=cplusplus] #include <iostream> #include <cmath> using namespace std; int … |
|
Hi,I want to create a picturebox at runtime.i mean when i click a button then,the picturebox is created. i have tried this code, but it doesnt work. [code] PictureBox^ pct; pct=gcnew PictureBox; pct->Location = Point(240,210); pct->Size.Height= 30; pct->Size.Width= 30; pct->BackColor.Aquamarine; Controls->Add(pct); pct->Visible=true; [/code] i am using visual c++ 2008. after … |
|
Re:
hi, i am pretty new at using c++. i am trying to read a mathematical expression from a file but i keep getting errors. i am using the cin.get function to read it but it isnt working. can anyone help me please. this is what i have. the file being … |
|
hi,i m making a windows forms application and i want to make a treeview which displays input of textbox Under the Parent Node . i have tried searching over the internet,but nothing seems to be working. i have added the parent nodes from the properties tab,but how do i change … |
|
i have made this strstr() function,it gives the correct answer if it finds the correct string inside the another but the program crashes if it does not find the string,gives a runtime error,compliler does not give any error! here is my code: [code=c++] char *astrstr(const char *s1,const char *s2) { … |
|
Re:
Hi guys, When i run my programs in c i always use things like [code=c++] include "stdio" [/code] But then i see things like [code=c++] include "stdio.h" [/code] and [code=c++] include <stdio> [/code] I was wondering which one i should use and also why there are so many different ways. … |
|
Re:
Dear All, I am facing a problem in passing 2D array of pointers to a function. can any one give some suggestions on this. 1. How the Declaration fo the function should be ? 2. How to pass 2D array of pointers to that function? 3. How to access the … |
|
Re:
Hi All, Could you kindly help me regarding the usage of array of pointer (1dimension or 2), I mean where we can use it. Regards, IDB |
|
Re:
I was just wondering, in all of the code snippets i see there is no #include "stdafx.h" in them, but i cannot compile a program without it. Is this a Microsoft Visual C++ that is the problem or am i just missing the point here? |
|
Re:
Hey guys, How would I make this program work without a "while" just using "if" statements. I know doing it this way is probably more efficient but there must be a way to do it with just "if" statements. Thanks! :) #include <iostream> using namespace std; int main() { int … |
|
i m making a program which initializes a 2d Dynamic array by first asking for the number of rows and columns,and then filling the array with random characters. Then i have to check for a three lettered array in the 2D array,(Horizontally,Vertically,Diagonally). i m having problem with the conditions for … |
|
i m making a hotel database management system and i have to add records, update and delete them.i m having problem in getting the input,how will i use double pointers?? and i have to get a certain number of records from the user. here is my code: [CODE] void addcustomer() … |
|
i m getting a runtime error and the program skips the first attribut i.e name,and gives a runtime error at the second one.compiler gives some warning about gets".\Assignment 3_Question 4.cpp(118) : warning C4996: 'gets': This function or variable may be unsafe. Consider using gets_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. … |