- 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
32 Posted Topics
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 …
Make a pointer function and return the array name.
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 …
you can use a loop to check for '\n',run it till you find it and count that many times.you will get its size.
hey,make a temporary string and use an if condition to check for whitespace.do a character by character search on the string,for its lenth.you can get the length of the string by strlen() function. int length= strlen(str1); if you get a whitespace then dont copy the character to the temporary string.otherwise …
worked fine on my pc. gave this output: X() Y() Z() f() press any key to continue. I am using Visual studio 2008,windows
here struct list_link* create(int key, double value, struct list_link* next) is a (list_link) type-pointer function.which will work on a structure object. like this: list_link temp; temp.create(key, value, next); I think you are creating a linklist with structures that point to other nodes with *next pointer. and store two data values,one …
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 …
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
you are doing it all wrong..your concepts of ifstream and ofstream arent clear.i think you should first study them,then you will be able to do this assignment!. well i can help you. when you make an object of "ifstream" you use it like this: [CODE=c++]ifstream open("students.txt");[/CODE] this makes an object …
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 …
can you explain your question a bit? you can get the value of a pointer by "*". if [code=c++] int x=6; int *y=&x; cout << *y << endl; //get the value of pointer [/code] hope that helps.
use the following code for random numbers between limits: [code=c++] Random* r = new Random(); int x=r->Next(10,21); [/code] this will create random numbers between 10 and 20!
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 …
i am going to tell the first one only,you can try the rest by yourself. think of first figure as four triangles! 1.thats counts and prints in ascending order 2.thats counts and prints in descending order 3.one that prints spaces " " in ascending order 4.this one also prints spaces …
first of all you need to learn what array are.you have created an array of [code=c++] int ages[4]; [/code] it means that there are 4 elements in this array,which are [code=c++] ages[0]; ages[1]; ages[2]; ages[3]; [/code] there are total 4 elements ,since arrays start from 0 so you have elements …
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 …
use infile.getline(name of your array,size,delmiter); it will read the whole line,and you are reading the '+' sign in character form yo cannot perform any operations on it!. another way to solve this problem is to read the intergers in integers! lile these lines: [code=c++] void main() { int a,b; char …
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) { …
[B]stdio.h [/B] is used in vc6.0 and many other old programs. in VC2008 you use [code=c++]#include "stdio" [/code]
here is how you initialize the function and pass the values [code=c++] char *function(char **array) { //your code here return 0; } int main() { //put values in array function(p); //passing to function } [/code]
you can use them to dynamically initialize memory (mean that at runtime u decide the number of elements of the array) for both 2d And 1d
'stdafx' is just the default name for the 'precompiled header directive'. The headers that included in stdafx.h are compiled once, and the information is saved to disk. When a file includes stdafx.h, the compiler just loads the precompiled data instead of re-parsing all the headers. Typically, more times is spent …
you can do it with a [b]goto: [/b] Statement like [code] cout << "enter choice " ; cin>> choice; if(choice == 1) goto start; . . . //and put the start in the start of your program like start: [/code]
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. …
i m having so many problems,i m trying to make an hotel database management program in win32 console and i m not allowed to use structures,only variables or pointer or Dynmaic arryas. i m using 2d dynamic array,i have to pass it to a function to store values in it,i …
you can simply use a char array to store the integer array and then use strlen(array) function of string.h lib to get the length, or you can also break the integer array in to units by using modulus operator and division.
The End.
arshad115