- Strength to Increase Rep
- +5
- Strength to Decrease Rep
- -1
- Upvotes Received
- 12
- Posts with Upvotes
- 11
- Upvoting Members
- 10
- Downvotes Received
- 12
- Posts with Downvotes
- 9
- Downvoting Members
- 7
Re: Well... that is one option or you could alternate between printing and writing blank spaces over the written text ( like clrscr(), bt not using it ) with a delay command in the middle... You can keep doing that in a while loop until u press enter! Example code below … | |
Re: Wow !! Now thats a heated argument. Coming to whats been asked: Replacement for getch() - getche() (similiar functioning) Code for taking in a character for password and printing the * after that : [CODE] char pwdin[50]; while(pwdin[i]!='\r') {gotoxy(41 + i,11); //Entering password pwdin[i]=getch(); if(pwdin[i]=='\b') //'\b' for recognising backspace {gotoxy(40 … | |
Re: Python Girl, i think there are too many applications running on ur system and they need time to shut down properly... And probably, ur system is just overloaded beyond its optimum capacity... Could u tell us about your Computer Specs ? | |
Re: [B]For accepting a String :[/B] Cin works for accepting strings till a space is discovered. Instead of using cin.getline you can also use the gets() [available under string.h] function which accepts a string. It stands for 'get string'!! [B]To Find Length of String :[/B] Two ways : 1) Use strlen() … | |
Re: No idea... I've got A Dual Core Processor and a 2 GB Ram and was able to play the game without a problem... Switch off all unnecessary things.. Like for example : The windows sidebar.. Thats a pain.. takes up unnecessary ram space.. Switch of all downloads.. Web browsers, music … | |
Re: Are u using Windows Vista by any chance ?? I've had the same problem.. Its a software glitch which was modified by a service pack update... Check if u downloaded that... If nt vista, then i dont know, could be a virus or probably some sort of parental controls :P | |
Re: Agree with Caperjack... Its usually caused by bad hardware - graphic cards, ram's etc.. Since u mention system memory dump and that too while playing games... Its just that either ur graphic card or ur ram is getting full too fast and is not being able to dump the memory … | |
Re: Happened to me on my HP Laptop once before.. I finally had to throw that beautiful piece... And i did exactly the same thing.. But in my case, while inserting the RAM i managed to bend a part in the seat... Tried fixing it with a screw driver, ended up … | |
| Re: The only way u can make space for new data while the user input, i.e simultaneously is through dynamic allocation... U can look up the functions 'new' and 'delete' which are used for allocating memory dynamically and releasing dynamically alloted memory respectively.. |
Re: U could try invoking the exe file using command prompt... which u could initiate by using the 'system' command.. | |
Re: Quoting the above people, its very simple... Two ways: 1) Passing through Arrays 2) Passing using pointers First Method : void function( float a [ ][ ] , float b [ ][ ] ) Second Method : void function (float *a, float *b) | |
Re: Yup... agree with him.. When u use srand, irrespective of when u run the program and when it isnt initialised with a random variable at any time, it will always generate the same set of random numbers... Run it at 4:00 Am, it'll probably generate 4,7,8,3,2.. Run it at 4:01 … | |
Re: Azmah, how much space is actually there on ur hard disk ?? Could we have some specs please. | |
Re: Well, u never know.. Apple too claims not to collect user data, but there have been many complaints regarding the same... Though nothing has been proven in the court of law till date.. | |
Re: Well.. m sorry to go against what u just said zeroliken, but it isnt undefined... Its how the prefix and postfix operators work.. int main() { int i=1; printf("%d,%d,%d",i,++i,++i); return 0; } Try this and this should give u the output as 1,2,3. | |
Re: Guys i highly doubt that a junior computer science student will understand concepts like pointers when hes having problems with infering basic textbook examples... Lets just try to tone it down a tad bit so that people do get the answers to their solutions and dont end up getting confused.. … | |
Re: What ur doing is putting a '1' wherever the condition is satisfied right? But what ur forgetting to do is adding a space whenever its not satisfied... Which is why there is a spacing problem.. Whenever the condition for printing '1' isnt satisfied, ask the compiler to print a space... … | |
Re: Yeah, i had the same problem... The solution i found to it, that is without using dynamic allocation, is writing all my data down into a separate file.. And then sorting the elements in the file by using functions like seekg() and tellg(). And after which u can read out … | |
Re: Umm... u sure u added the header file ? I know it sounds rather stupid even mentioning it, but it is a pretty rookie mistake.. !! Add the header file and try clrscr() , like this below : #include<conio.h> void main() { clrscr(); getch(); } | |
Re: U cant have more complicated programs in addition of matrices... Its just a very basic concept... Well, but yeah, u could try addition of matrices by dynamic allocation instead of static allocation... That could give u the much sought after challenge u need... | |
Re: Yup... Its compiler and os dependent.. For example, when using turbo c++, u cant use colors with cout, u have to use cprintf... If u use cout, it just comes as the default color.. | |
Re: Nope... C++ doesnt support that... When reading data from a file, which once had data written into it using a matrix(arrays) , structures or classes, their definitions have to be stuck to... So, u cant read a file i wrote using 2 variables of int in a class, by using … | |
Re: Yup.. u can use it by using 'cin.getline(temp1)'... Also make sure u make 'temp1' an array of say about atleast 15 characters so that the compiler has enough space to read data into the array !! | |
Re: Dude.. dont look into the text file.. It'll probably show weird symbols and characters.. Its the computers way of storing data... U'd probably have entered stuff like : 12, Jake is a monster, I dont like him ... etc But wt u'll see in the text file when u see … | |
Re: Yup.. compiled on mine too.. Agree with teo.. | |
Re: Does 'printf' still work with c++ ? I thot 'cout' in dev and turbo c++ and std :: cout for vc++ . Though printf does work in turbo and dev c++ ... | |
Re: This is a windows (win32) API programming question, not a C question. FindWindow() returns NULL if it can't find a window matching the supplied arguments. And yes, are you sure that the Windows Task Manager was even open when u ran this program ??? | |
Re: > Quoted Text Here > You can't do that with Turbo C++ because it's too old. Get a modern 32-bit compiler such as Code::Blocks or VC++ 2010 Express. Tubeo C++ is a MS-DOS only compiler Well, i disagree... It is possible...I've done it myself.. U just have to make sure … | |
Re: Thats because u put the value of a[2] into a[1] thats why. Luk at ur 3rd statement... If u put a[1] = a[0] and then print a[0] and a[1], ur output will be 1.1 1.1 !! I think u shud read up on arrays !! |