8,298 Topics
![]() | |
Hi all, I am looking for a sample code that show how to change Microsoft Windows console font. I found a way to add more fonts to console but I could not find how to select this font from the code. ![]() | |
Dear all, im new to this forum.can u pls help me to do this one. i am reading a particular pdf file and searching for a particular word and how time it occured means number of occurences in that file.. pls assist me to do this one Thanx in advance.. … | |
I'm having a hard time generating a "secret word" that is random. I'm taking a random word from the wordList array, and using it in the playOneRound function. Here is part of my instructions: [code] Using wordList[wordnum] as the secret word, this function plays one round of the game. It … | |
I'm working on a plugin system for my application. The plugins are in the form of a dll loaded by my application using [inlinecode]LoadLibraryEx[/inlinecode]. I store information about each plugin in an arrray of structs: [code] typedef struct _InternalPluginInfo { UINT ID; HMODULE Module; int Flags; PluginInfo Info; } InternalPluginInfo; … | |
I think ppl should read this post. Short story: I was installing and reinstalling windows, troubleshooting some hardware incompatibility issues that I'm experiencing. I wanted to preserve my AV software as it is now, so I wouldn't have to download upgrades (~10 MB) via modem again. I've opened registry editor … | |
HELP! I am trying to write a database app with three tables. I have figured out how to connect to my database with oledbconnect. From there I am confused as to how to get a select command to work. I have found plenty of info on selecting data from one … | |
I had to use an enumerated data type in my last program, and I couldn't get my program to stop giving me fatal run-time errors. here is the enumerated data type: [code]enum piece {EMPTY, BLACK, WHITE};[/code] Now, the trouble I am having is related to evaluation or assignment of this … | |
I really appreciated your replys, it helps me a lot when i can see how it is done they way you did it.It really helped me with my other ones I was working out. Do you know how to write a program to print out the calendar for a whole … | |
I am new at C++ programming..Anyway I need to create a C++ Program that involves one large chemical company that pays its salepeople on a commission basis. The sale people receive $200 per week plus 9 per cent of their gross sale for that week. For example,a salesperson who sells … | |
Does anyone know how to writea program to print 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 and so on until it is down to one. Anyone know how to right a function that … | |
We were assigned the following problem as a large project in my Freshman intro to C++ programming class: We have to determine the number of terms needed to calculate Pi to a specific number (3.0, 3.1, 3.14, 3.141, 3.1415, and 3.14159), using the formula: pi= 4(1-1/3+1/5-1/7+1/9-1/11+1/13...) I thought I had … | |
Hello all, While I understand what the class access keywords public, private, and protected are supposed to do, I just don't see how this ACTUALLY "hides variables" and makes for more bullet proof code. Do the variable names survive the compilation process? If someone was to read compiled code in … | |
I have a question about manipulating an array in C++. In my program, a cstring is entered. The string is printed. Finally, the string must be printed in reverse and displayed. The final part is where I am having my problem. I have the strlen function determine the legnth of … | |
[code=c] #include<stdio.h> #include<math.h> # define I 0.0765 //Interest Rate char fname[20]; char lname[20]; float loan = 0.0; int years; double PB; //Prototypes double Mortgage_Calc(void); void Financial_Report(void); int main() { printf(" *******************Caribbean Mortgage Company*************\n\n\n\n\n"); printf("Enter the Customer's Name (First Name and Surname)\n"); scanf("%s%s",fname,lname); printf("Enter Requested Loan Amount\n"); scanf("%f",loan); printf("Enter Number of … | |
Alright, I cannot get the getline function to work. I have iostream included, using namespace std, and here is the syntax I have down: [inlinecode]cin.getline(playerOne, 21);[/inlinecode] with playerOne declared previously as a string, and I want its max input to be 20 characters. What's going on here? It's not working … | |
[COLOR=#555555]Greetings C++ Lovers:[/COLOR] [COLOR=#555555]I'm a student very new to this C++. Yes I took Linux & UNIX. That was a year ago and I've never applied it to ANYTHING. If it's not too much trouble, I'm at a loss. A Big LOSS. You see, the reason I say this is … | |
a)how to run c++ program on Borland c package.I am preparing a graphic program on c++ but my progrm shows it can't run on windows. b)how a pointer is un limited array.:) | |
Please Help, I am trying to create a visualizer for STEP (standard for exchange of product model data) files using C++ and OpenGL on Windows XP platform. I can get the OpenGL to draw some simple lines/shapes, the problem seems to be with parsing/understanding the file protocol. Has anybody out … | |
Hello evrybody, I wanted some help regarding windows form in C# .. I have a label control where i need to put a linkbutton control inside the label control dynamically ,I am able to place a link button but not at the required position inside the label control.. I hav … | |
Hello! I am a student taking an intro to programming class and I am completely LOST. The assignment is to write a program that simulates an adding machine. I have been working on this for 3 hours and so far I have only been able to get the first line … | |
Hi yall, Absolute C++ newbie here. I would like to know how to prompt a user to enter yes or no, and then display a different msg depending on whether y or n was pressed. I am trying to set char y=1 or true and char n=0 or false. But … | |
I need to write simple program in C++! I need to write program that read information from file,which contain <50,students name and respective score.My program need to calculate average score and print out students name,who get below average mark to screen!But,i don''t know how to use string to do it.... … | |
Hey gang whats up? Here's my problem. Ever since i loaded win xp i have not had any audio through my speakers. i checked the driver in my sound and audio devices and it was installed but not working properly. So i uninstalled it, and downloaded again from the c-media … | |
ok im newbie... i have a question if i have [code] #include <stdio.h> int main() { printf("type something:"); char a; scanf("%c", &a); printf("%c\n" ,a ); return 0; }[/code] i will aways get one character in output.My question is: -how to get world "hello" as standart output from variable using printf? | |
i need a program urgently for round robin schedulng algorithm using circular linked list implementation.. please send a program using c++... post the prg to my mail id.. << moderator edit: removed email address >> | |
Hi, I have got this question: Write function of bitcount() that return the number of bits set to 1 in an unsigned integer. Here's my try: #include <stdio.h> int bitcount(unsigned x) main() { int b; for (B=0; x!=0; x >>=1) if (x &01) btt return b; } When i compile, … | |
attached is the q of the c program....and here's what i try to write out... may i know how should i write to prompt user to enter the four weights from the keyboard. and the program should print an error message if the weights are out of range? Here's my … | |
I am completing my degree in Multimedia and Software Developement. The two languages that are being focused on are VB.net and Java. When I finish my degree, I will have not had a class in C++. Is C++ not used very much any more? I was just kind of curious. ![]() | |
[COLOR=#000000]I want to update the current user to UserName field in my database from a login control which identifies the current user as <% = CheckLoginStatus1.CurrentUser.UserName%>.[/COLOR] [COLOR=#000000]I have a datagrid with the update function. It is able to pick the current user, but the database UserName field does not get … | |
How do you start to write a program when you are asked to use an output statements to print three first letters of your first name in big blocks. I started off with. #include " stdafx. h" #include <iostream> using namespace std; int main () { // Statement Cout << … | |
I am doing a mazetraversal program that inputs a .dat text file. Im having trouble taking in account of the whitespace. Here is my code and were the ?????? is where it needs to go. I think its just a small "if" statement taking it in account. [CODE]#include <iostream> #include … | |
Hello all, I'm trying for hours to compile a visual c#.net project. I have a Visual C# .NET Project with 3 Forms. How can I build from this project .exe File which I be able to send for everyone? Please help me ! (Note: Please don't tell me "Use Csc.exe", … | |
Hi, I am in need of some help with a small portion of my program. I have an input file as follows: [CODE]10 9 15 program1 11 1 30 important 12 11 10 junk program 14 15 5 other program 17 6 20 another program[/CODE] I need a function to … | |
Ok, i have a friend that has come to me for help with her comp and i have no idea how to solve this one. When she starts her computer (laptop w/ Windows XP) a dos-looking screen comes up after a short wait and says that the file "C:\WINDOWS\system32\config\system" is … | |
Hello I'm newbie in C programming. Iwant to make a simple contact book that have add, delete, edit, and display function. 2 out of 4 i've done which is add and delete. So I need some help from all of you in edit and list function. Here is my function … | |
Hi all,I am having some doubts in C. 1>> My program needs to allocate memory of 256*256 array of integers ie array[256][256]. But it cannot be allocated statically.So pls suggest me how to allocate memory of 256*256 integers dynamically.My code below given is unable to allocate memory and is returning … | |
howdy all, im just looking for some good websites that list all of the controls in C# that list the various ways of interacting with a MySQL database through C# through a website. While i normally use PHP for this type of thing i would like to expand my horizons. … | |
1)Can you suggest me how to assign a pre-defined 2-dimensional array to a pointer.The intension here is to pass 2-D array to a funtion so that changes in the function will reflect the 2-D array . [code]void main(){ int array[40][40]; fun(array); } void fun(int **array){ ........}[/code] The above code is … | |
Hello, I'm new to both C++ and these forums. What I'm trying to do is calculate the average of all values contained within an array. Is there a simple command that can do this for you, or does one need to set up some kind of loop? Any help or … | |
hi every one, im working on a program to convert the binary number system to the decimal one. I have the code yet im wondering if it a while loop can be used instead of a for loop. i have major problems trying to work out for loops, stupid me! … | |
It is not allowed to declare a variable of same structure type but it is allowed to declare a pointer. For example, [code] struct node { int a; struct node x; //not allowed struct node *pnext; //allowed }; [/code] My question is when we can declare a pointer of same … | |
I have written a program in c# for quick sort using multithreading. but the code has a problem. the array is not sorted properly. i think it is because the parent thread terminates soon before the child threads sort the array. i am attaching the code herewith. kindly help me.any … | |
SIr, I wanted to know the C Statement for adding two numbers without using + sign.. Anyone can help me to solve this..... ThanQ | |
I have a Class (base) that takes a TYPE in the constructor and loads the appropriate image into memory - this class is used to fill the level map of my game - so I create like 50 of the objects, 20 walls, 10 bricks, , 20 floors, etc... and … |
The End.