147 Posted Topics
Re: [CODE]#define SIZE 10 ... ... ... int main() { int a[ SIZE ]; ... ... ... ... ... ... [COLOR=Red] printf("enter the number of elements in an array:"); scanf("%d",&n); [/COLOR][/CODE] What is the point of asking for number of elements in the array when u have already defined the size … | |
Re: For winXP 1. If the console is in FULL-SCREEN then press alt+enter to make it windowed. 2. Right click on the title bar and chose properties 3. In options tab under edit options make sure "quick-edit mode" is checked. 4. Now u can select the text with ur mouse. 5. … | |
I just moved to windows XP and got myself Visual Studio .NET Professional. I just need Visual C++ .NET and nothing else. The installer gives these options and i dont know which components i need and which i dont. 1. Visual C++ Class & Template Libraries ATL MFC Shared Libraries … | |
Re: [QUOTE] Online tutorials have a tendency to suck ass. A good tutorial/reference book is The C Programming Language by Kernighan and Ritchie.[/QUOTE] >>This book will suck ur brain out. | |
Re: well call Dr. Norton, or contact McAfee, i m sure they know how to write such codes. :lol: " i am a beginner of java and c++" >>Problem. ---1 "I am very new to programming." >>Bigger problem---2 " create a program that scans for a virus,detects the virus and removes … | |
I want to take integer inputs separated by spaces and terminated by newline character. suppose the user will be inserting integers this way 123 566 789 45 34 8999 341 57 67 and then the user presses enter. so the program will read all the integers when the user presses … | |
Re: I << NumScores????? And its better if u let us know how the data in the file are arranged. | |
I need to add a recursive function, called [B]findaverage()[/B] into BST class that takes as input the root of the BST and returns the average of the entire integer items stored in that BST of integers. Plz help me with this function especially without using any static variables. | |
Hi guyz, I am about to start my third semester in my university. I have options to take Data Structures(CSE 225) or Discrete mathmatics(CSE 173). I am not sure which one take to before the other -- I will be doin both though. What do u guyz think. Will taking … | |
Re: [QUOTE]char naam[10];[/QUOTE] should be char *naam[10]; explanation: u want to declare an array of pointers to char. U were declaring just an array of char. | |
I connect to the internet with the follwing settings: proxy: proxy.sparkbd.net port: 8080 my direct internet connection is very slow but connecting through the proxy server makes the connection a lot faster. Now i have installed limewire and i can connect to the network using "no proxy" but the download … | |
Re: I am not sure, but what i get from SelArom's post is that he wants to know if a variable name has any impact on the program i.e if i use int this_is_just_for_fun_and_to_waste_ur_precious_time; instead of int a; and do so for over a hundred variable that i might have in … | |
Re: I would like to see what kind of response u get. I just have one thing to say OMG | |
I have a weird situation. Suppose a string will be entered as an input. using the getchar() function i count the number of characters the string contains until a new line character is encountered. So i know the size of the string. And then i try to allocate enough memory … | |
I have to insert a node in a binary search tree. This is what i wrote for the InsertNode() method. But it keeps producing segmentation fault when i run the program. I couldnot find anything wrong in the code. The constructor for TreeNode(int x) sets the item to x, leftchild … | |
I had been using old turbo C++ compiler and with i had the help files on C++. However, the documents with my old version of turbo c++ is quite obsolete now. I want to get the latest docs so that i can look up specific function and class details with … | |
Re: [QUOTE]just run this code and after entering the array elements press up arrow and down arrow[/QUOTE] I did so but nothing unusual happened. But ur code just reminded me of a question that i always wanted to ask, [CODE]for(int i=0;i<5;i++) cin>>arr[i];[/CODE]As u can c u declared the int i within … | |
Re: [QUOTE]System Shock 2 Far Cry Deus Ex Halflife Max Payne 2 Beyond Good and Evil Oni[/QUOTE] I am addicted to games and cant stop playing a game once I start it no matter how tedius and boring that might turn out to be(and that's without any cheat-codes). I have played … | |
Re: From my experience in Turbo C++ sin() function returns radian values. | |
Re: I had been through the "buy some c++ books" situation like u are going now. Then I looked at these four titles : 1. Accelarated C++(Andrew Koenig) 2. Thinking in C++ (Bruce Eckel) 3. C++ Primer Plus (Stephen Prata) 4. C++: How to Program(Deitel & Deitel) Ii looked everywhere in … | |
Re: I m not happy with Doom 3, it didnt offer anything new or exciting, only exception is the graphics. It's like unreal tournament 2003-- both disappointed me. However, Unreal Tournament 2004 rocks. I think Half-life 2 and Unreal Tournament 2004 will rule the next generation of FPS. As for Doom … | |
1) How many ways can eight people, denoted A,B,.....,H be seated about the square table shown in the following figure where figure (a) and (b) are considered the same but are distinct from figure (c)? [IMG]http://imagesavers.com/040927/1096305491.gif[/IMG] 2) If two of the eight people, say A and B, do not get … | |
Re: Hey, I used to know that arrow keys(left, right, up and down) return ASCII 0 with getch(), then u have to use getch() again to get the value which is like 72, 80 etc. My experience was limited to DOS, i would like to know which system u were working … | |
Re: jackie chan-- i love him. I love his movies a lot but I like the bloopers at the end of his movies even more:-D | |
Hi guys, itz my that projectile game in C which used to be in code snippets sections. Well, as u can see no one was able to compile it and as a consequence it's been thrown out of the snippets :rolleyes: Well, here is the complete program, no codes -- … | |
Guys, i m in need of some game sprites. I am trying to make some game using directX. The game is like a space shooter. So i am looking for a nice looking space-fighter with three sprites: one for straight , other two for left and right movement. And i … | |
Re: I am not so sure if it actually is bizarre or not, for me it was. I copied a part of my project in a floppy disk. But when i opened the floppy drive in other computers i found NO file at all. It shows that about 737 kb is … | |
Re: I would say calculus is much tougher than C++; c++ is tough but u can learn it easily especially if u have previous experience with programming. I have seen people who r good at math do quite well in programming --c++ is also no different. Like everything else the first … | |
I can read which key is pressed using getch(). For example i can read whether left arrow is pressed or not. But i want know whether both left arrow and up arrow is pressed at the same time or not-- I want to move an object diagonally across the screen … | |
![]() | |
Re: yes I know exactly what u r looking for, try searching in google "Thinking in C++". It's a free ebook, and the one of the best books on C++. Hope it was useful. | |
In my program i will be taking two inputs, lets say two integers. If the number of input is more than two the program will exit. If it is two then the loop will be executed and after that it will again ask for two new inputs-- and will continue … | |
I believe we should(forum members) write book reviews ourselves and post it review sections rather than giving links to amazon.com or any other similar websites. I guess everyone knows the book reviews are out in those websites. If we write reviews ourselves it will make daniweb distinct and look impressive. … | |
Sorry Inscissor, I couldnt approve the reason why you closed that thread. I think learning about viruses can be quite educational. If no one studied about viruses it would not have been possible to make anti-viruses. Learning to know how to create viruses or atleast discussing about viruses is no … | |
guys, i have been working on a project, i have been trying to use dxsmithlib (a directx wrapper from codeproject) and win32 CONSOLE application in visual c++ 6. When i try to build the project by specifying "use MFC in a shared DLL" it shows no errors or warnings and … | |
I am desperatelty in need of some help here. I had downloaded the DirectX SDK from MSDN library. But whenever i tried to run the downloaded exe file i was given the following message: [QUOTE]WinZip Self-Extractor header corrupt.Possible cause: bad file or file transfer error[/QUOTE] Then i downloaded the DirectX … | |
Re: Well, I Dont about what professionals do... But, I can tell u about how much I TALK in the class. Our lecturer says one sentence and I ask two questions. It's very much everyone in the class who gets irritated by this. But, I actually HAVE to do that, bcos … | |
Guys, I need some help on programming in windows. U see I learned to program in DOS using C and C++. So I mostly used console to show output and to get input. Now as a part of my this semester's project i have to do the programming in windows. … | |
Re: If u are SERIOUS about programming... STEP 1. The very first thing u need to do is to develop the concept of algorithmic problem solving method. U need to have crystal clear concept of loops and structures in programming. It's not about which language to start with. It's always about … | |
Re: Again wise guy, where's the wallpaper. I dont see anything... | |
Guyz, U can see some of my works on text effects [URL=http://www.onfinite.three10.com/portfolios/display.php?pid=319&d=5be6962e54da49aabbbe9d45c9cf7b19]here[/URL] And some other types of work [URL=http://www.onfinite.three10.com/portfolios/display.php?pid=369&d=6d259294640b50203823588dcea64d91]here[/URL] | |
Guys, I am a newcomer in programming. Just beginning to learn C. Now my university text book is A Book On C- by Al kelley and Ira Pohl But i heard that C primer plus-by stephen prata is also a good one. I also heard that Expert C programming and … | |
Re: Hi hope u get attached file. I did it only using photoshop. guess it's not so good as urs. But take it easy on me, cause i am just trying to learn :-| | |
Re: I am not sure, but it might just work fine. From Start menu select run. Type in 'msconfig' in the command prompt. press enter. The system configuration utility will show up. Select the tab named "start up." From here uncheck everything except sytem tray. Now restart ur computer. The startup … | |
Everytime I want copy, cut or delete a folder/file the computer freezes all other activities(playing music,browsing) and my cursor shows its "busy" status. After a while(about 20 seconds) computer retunrs to its normal mode. I dont understand why does it halt for a while when i try to copy/cut etc … | |
Re: Yea. I tried to do the same with signatures in hotmail and other ISPs. But failed. The best I could do was to insert a picture in my signature here in daniweb. See below.... Though I think it is very much possible to attach cliparts to ur email sign, i … |
The End.