8,298 Topics

Member Avatar for
Member Avatar for Yaseen Hejazi

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.

Member Avatar for iamthwee
0
33
Member Avatar for ramsaryanmca

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.. …

Member Avatar for lok_tan
0
128
Member Avatar for aznballerlee

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 …

Member Avatar for aznballerlee
0
166
Member Avatar for webspy

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; …

Member Avatar for webspy
0
156
Member Avatar for Chaky

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 …

0
284
Member Avatar for DoubleShot

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 …

Member Avatar for Venjense
0
144
Member Avatar for FireSBurnsmuP

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 …

Member Avatar for FireSBurnsmuP
0
160
Member Avatar for JS1988

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 …

Member Avatar for John A
0
128
Member Avatar for jessiegirl

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 …

Member Avatar for jessiegirl
0
106
Member Avatar for JS1988

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 …

Member Avatar for may4life
0
123
Member Avatar for Zopharr

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 …

Member Avatar for Zopharr
0
107
Member Avatar for JRM

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 …

Member Avatar for Ancient Dragon
0
124
Member Avatar for Juggler

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 …

Member Avatar for Juggler
0
227
Member Avatar for SlightlyAngelic

[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 …

Member Avatar for Salem
0
133
Member Avatar for FireSBurnsmuP

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 …

Member Avatar for WolfPack
0
153
Member Avatar for AnG'

[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 …

Member Avatar for AnG'
0
128
Member Avatar for shariq
Member Avatar for khem Nath

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.:)

Member Avatar for Ancient Dragon
0
73
Member Avatar for rhhaney145

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 …

0
83
Member Avatar for gopan

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 …

Member Avatar for Inanna
0
166
Member Avatar for confused!

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 …

Member Avatar for ~s.o.s~
0
297
Member Avatar for joey z

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 …

Member Avatar for ~s.o.s~
0
173
Member Avatar for hazdude

can anyone help me with some c++ coding? I want to create a piece of code that would allow me to type in any random 30 numbers and for them to come out in ascending order. Any help would be greatly appreciated Hazdude

Member Avatar for rowly
0
90
Member Avatar for friendz_
Member Avatar for Ancient Dragon
0
54
Member Avatar for gobiv

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.... …

Member Avatar for gobiv
0
113
Member Avatar for jan1024188

i have [CODE]#include <stdio.h> int main() { int a; int b; a = 3; b = 30; while (a < b) { printf("%d\n crap .....", a); a = a + 1; } return 0; } [/CODE] i got output [QUOTE]crap .....4 crap .....5 crap .....6 crap .....7 crap .....8 crap …

Member Avatar for ~s.o.s~
0
119
Member Avatar for Mattethington

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 …

Member Avatar for Mattethington
0
188
Member Avatar for jan1024188

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?

Member Avatar for jan1024188
0
126
Member Avatar for dhaya

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 >>

Member Avatar for Paul.Esson
0
1K
Member Avatar for shermaine

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, …

Member Avatar for shermaine
0
98
Member Avatar for shermaine

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 …

Member Avatar for Ancient Dragon
0
79
Member Avatar for jan1024188

can anyone please send me a simple graphcal program written i C. i found this but it doesnt work [CODE]/* Simple program to illustrate use of a dialog box */ main() { /* Define default values: */ int n = 0; float x = 0.0; /* Define contents of dialog …

Member Avatar for andor
0
86
Member Avatar for ATS

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.

Member Avatar for iamthwee
0
78
Member Avatar for James Asante

[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 …

0
56
Member Avatar for weltonalicia

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 << …

Member Avatar for FireSBurnsmuP
0
67
Member Avatar for bg123

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 …

Member Avatar for Lerner
1
129
Member Avatar for Tal Aviel

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", …

Member Avatar for Tal Aviel
0
83
Member Avatar for stupidenator

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 …

Member Avatar for stupidenator
1
172
Member Avatar for Kadaj

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 …

Member Avatar for DMR
0
214
Member Avatar for amano

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 …

Member Avatar for Dave Sinkula
0
1K
Member Avatar for dsraju

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 …

Member Avatar for Iqbal_h_a
0
308
Member Avatar for Killer_Typo

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. …

0
72
Member Avatar for dsraju

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 …

Member Avatar for ~s.o.s~
1
141
Member Avatar for Maxxpower

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 …

Member Avatar for ~s.o.s~
1
140
Member Avatar for jashwant kumar

[B]jassi here[/B] [B] hello friends i m currently pursuing diploma in advanced computing from pune in india could u pliese help me sending most frequently asked questions in c and c++[/B]

Member Avatar for happygeek
1
64
Member Avatar for becki

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! …

Member Avatar for WaltP
1
190
Member Avatar for Iqbal_h_a

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 …

Member Avatar for Iqbal_h_a
1
197
Member Avatar for beuls

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 …

Member Avatar for _r0ckbaer
1
273
Member Avatar for ravi_forum

SIr, I wanted to know the C Statement for adding two numbers without using + sign.. Anyone can help me to solve this..... ThanQ

Member Avatar for Salem
0
190
Member Avatar for Shaitan00

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 …

Member Avatar for Lord Soth
0
105

The End.