51,593 Topics

Member Avatar for
Member Avatar for tiger86

Okay I want to build a program but I do not want the program to be copyrighted by Microsoft or any other companies. If I use one of their programs then I assume they have control over it and how it is distributed. I read that no one owns c++ …

Member Avatar for tiger86
0
91
Member Avatar for aus_fas1

Hi I want to increment file number with date e.g 19-FEB-09-1.dat, 19-FEB-09-2.dat .... So in the write function after it runs for certain number of times say 12 the file number then increments to next one. However, if the file number already exists it then move to next number to …

Member Avatar for aus_fas1
0
124
Member Avatar for cosmos22

Hello, I was wondering whether anyone knows the code for rotating the screen by a few degrees. By that I mean flip the screen on its side or invert it? Also, what declarations would I need to make if possible? Thank you, I require this information for my own personal …

Member Avatar for mitrmkar
0
76
Member Avatar for cbattagler

Hello, for some reason the code I am trying to write throws an exception about using a priviledged instruction. Problem is it is just comparing two values and throwing this out there at me. Maybe I am completely missing something. Oh and I know its pretty ugly code, you don't …

Member Avatar for cbattagler
0
161
Member Avatar for dophine

I have a question related to function. fun(const int);<-- pass a const int const int fun(int);<--return a const int but what is "fun(int) const"?

Member Avatar for Dave Sinkula
0
101
Member Avatar for Jboy05

Write a function that takes one argument of type double and that function returns the character value ā€˜P’ if its argument is positive and return ā€˜N’ if its argument is zero or negative? Help please Thank you Much :)

Member Avatar for kemkizal
0
88
Member Avatar for cosmos22

Hello, I was wondering how I could go about hiding the command window during the execution of an application. If this is not possible, then how could I prevent the closing of the command window when the application is running again. For example, clicking on the close window button in …

Member Avatar for Duoas
0
1K
Member Avatar for Somerville

Hey, im new to programming and i am using Teach Yourself C++ in 21 Days ([url]http://newdata.box.sk/bx/c/[/url]) to help me, but when i make the code for the "hello world" i dont no how to compile it and link it, im using crimson editor and i downloaded Borland C++ compiler and …

Member Avatar for wamuti
0
105
Member Avatar for kux

hello, does anyone know if I can write a macro that takes a number as argument and according to that number declares a variable number of functions ? ex: DEFINE_FUNC( 4 ); is replaced with void func_1(); void func_2(); void func_3(); void func_4(); thx

Member Avatar for vijayan121
0
185
Member Avatar for jaffo

I am trying to read data from a sequential file into an array. Here we are again at the old mortgage program. I have been doing some searching and can't seem to find the correct syntax to read the data into an array that can later be used. So the …

Member Avatar for jaffo
0
224
Member Avatar for rohit83.ken

hello frnds is there any way or any software available to produce c/c++ code from the flowcharts or, pseudocodes or ,algorithims can any one provide the links or any information prethanks to helper

Member Avatar for ithelp
0
109
Member Avatar for Nyx18

i am creating a program where im trying to read in a data from a file into 4 different arrays by using a class but im having trouble with the syntax of it. does anyone know some good sites that can help?

Member Avatar for mitrmkar
0
116
Member Avatar for stkarnivor

I just started learning C++ for a computer class at my highschool. I started learning about "if" and "else" statements so i wrote a program around that. It calculates the average GPA for the semester or total (if you want it to). It also factors in AP and Honors points …

Member Avatar for stkarnivor
0
115
Member Avatar for Jboy05

What kind of function do I need to used to change an employee's salary when given the old salary of the employee and the amount of increase for that employee (parameters). (i.e. function with no return value and no parameter, function with no return value and call-by-value parameters, function with …

Member Avatar for VernonDozier
0
81
Member Avatar for defaultAZN

hey, I'm trying to code a program that will accept a text file input for the dimension and elements of a matrix and store that to an array. Then the program will calculate the determinate of the matrix and output it to both the console and a file. I'm having …

Member Avatar for vmanes
0
146
Member Avatar for dexter1984

[CODE= cpp] #include <iostream> #include <ctime> #include <cstdlib> #include <iomanip> #include <fstream> using namespace std; const int MAX = 51; const int setArray = 5; float initialArray[MAX][setArray]; void createRationalNo (int, int); float RationalInfo (float[][setArray], int); void printArray (float[][setArray], int); int main() { cout << "No\tP\tQ\tQuo\tRem\tValue\n\n"; srand(time(NULL)); int setPQ = 2; …

Member Avatar for dougy83
0
115
Member Avatar for chocl8drop

I need some assistance in getting this program to perform correctly. It's suppose to take a sentence, break it up and return each word in pig latin. Right now, the program takes a sentence such as Jump start your morning and it returns Jumpay startay youray morningay. It should return …

Member Avatar for John A
0
116
Member Avatar for griproller

I am making a cd key replacer that will input the new cd key, change the key into base 24 then hex, and put the key into the registry. I am trying to figure out how to go from decimal to base 24 (I go to binary along the way). …

Member Avatar for griproller
0
105
Member Avatar for Jennifer84

I have 2 strings, Text1 and Text2 below. What I am trying to do is to put these to a new string(Text1and2) so that string will contain this: "One,Two" I have began on some code and wonder if I am on the right track here. Later I will push_back it …

Member Avatar for Jennifer84
0
140
Member Avatar for rowdy12

hi ..i am also new in this field how to improve my C++ skill ..give some test ..i wanna impvrov my skill.......... Regards Raju

Member Avatar for technogeek_42
0
114
Member Avatar for stlmac

I have to do a birthday project for by c++ class that allows the user to enter a birthay and dislay information about that birhday including the birhstone, astrological sign and the season which the birthday occurs. The main menu of the program should allow you to enter a persons …

Member Avatar for stlmac
0
119
Member Avatar for jimJohnson

I have a problem with a lab. I need to write different set of programs with strings. The different things I need to figure out for ouput are the capital letters, what each word starts with, the punctuation, etc. Can anyone at least help me get started?

Member Avatar for Dave Sinkula
0
124
Member Avatar for cosmos22

Hello, I am creating a program that opens and closes your CD drive repeatedly, and fixes your mouse position. I have created an initial while condition that loops the opening and closing of the drive. I was wondering how I can introduce a second infinate loop, fixing the position of …

Member Avatar for cosmos22
0
85
Member Avatar for winky

Hey all, I am currently learning about socket programming in my Networking class. Our teacher gave us an example of a server class for it, and while I was trying to build it I came across the error of it not being able to identify socklen_t. I am guessing that …

Member Avatar for fida hussain
0
159
Member Avatar for cosmos22

Hello, I have downloaded some coding off the internet and modified it to suit my needs. It opens and closes the CD drive ONCE. And I would like to make it do so an infinate amount of times. [CODE]#include "windows.h" #include "winioctl.h" #include <string> using std::string; int main(int argc, char* …

Member Avatar for Agni
0
240
Member Avatar for iced98lx

Hi All- I've been browsing for a while but finally had to sign up to ask a question. I'm working on a little project that pulls data from a few places, Active Directory, ADAM, and an Informix Database. I've got my ODBC drivers installed and I've got my Data source …

Member Avatar for iced98lx
0
122
Member Avatar for sofia24

Hi there! I've developed a program in C# that calls a stored procedure in SQL server. Is it possible for a stored procedure to pass back a result set with multiple rows? If so how do I access these values in my application. Many Thanks!

Member Avatar for Ramy Mahrous
0
85
Member Avatar for HiTleR83

I need to get the details of a packet like Proto type, Sourc ip,Dest ip, packet Size, Source port,dest port in a vc++. These data i will store in a mysql database. How do i get these details in the program for a windows system ?

Member Avatar for siraj_raj
0
78
Member Avatar for cosmos22

Hello, I was wondering how I would code for a box that prompts the user in a sort of, windows style error message format. Thanks.

Member Avatar for mitrmkar
0
191
Member Avatar for jenna_baby

instructions [CODE] Skills needed: while loop, logical expressions, nested if-else statements Your assignment for MP3 is to calculate the monthly bill for a cell phone user given the following rate structure. Note that this is a simpler structure than in real life – you do NOT have to be concerned …

Member Avatar for ithelp
1
96
Member Avatar for asif08

I want to write a string named output to the console screen. How do i do that? string output= "hello world" How can I write the output to the screen?

Member Avatar for srinunarra
0
103
Member Avatar for Dj Saturn

Hello, I'm new to these forums. So I know how to program from I/O operations to making your own headers files and.. i was wondering if anyone could point me in the direction of beginner programming tutorials for windows applications? i want to implement the stuff i know to actual …

Member Avatar for Ancient Dragon
0
107
Member Avatar for BBallAsh23

Hello DaniWeb users, I hope one of you can assist me. I did search and found nothing to help me. So below is my code and I am hoping that someone can please tell me what on earth I am forgetting. I have been playing with this for quite some …

Member Avatar for BBallAsh23
0
133
Member Avatar for amanda4help

I have a homework assignment to create a program to calculate the full date of Easter Sunday between the years 1900 and 2600. The following is the error I receive: error C2784: 'std::basic_ostream<_Elem,_Traits> &std::operator <<(std::basic_ostream<_Elem,_Traits> &,const std::basic_string<_Elem,_Traits,_Alloc> &)' : could not deduce template argument for 'std::basic_ostream<_Elem,_Traits> &' from 'std::basic_istream<_Elem,_Traits>' My …

Member Avatar for zandiago
0
501
Member Avatar for chocl8drop

I'm trying to write a solution to the 8 queens problem. I am trying to start with a empty board. I keep getting the following error "error C2664: 'SetQueen' : cannot convert parameter 1 from 'int' to 'int [][8]' Conversion from integral type to pointer type requires reinterpret_cast, C-style cast …

Member Avatar for Dave Sinkula
0
127
Member Avatar for PaKmAn

Develop a C++ program to determine a student’s letter grade based on a given integer test score. If the test score is 90 or more, the grade is ā€˜A’. If the score is between 80 and 89, the grade is ā€˜B’. If the score is between 70 and 79 the …

Member Avatar for PaKmAn
0
140
Member Avatar for Azurea

Hi there. I'm pretty new to the C++ language (came from Python :lol: ) and I was wondering how to create a library. In Python I used to create files with functions that can be used in other programs, and I want to know how to do that in C++. …

Member Avatar for Dave Sinkula
0
130
Member Avatar for cosmos22

Using the code below, I tried to implement a second line of code to delete another file in the same folder. I got an error message as a result. I'm using messenger as an example: I tried to replecate this line: const char * pFileToDelete = "h:\\MSN Messenger\\myfile.txt"; into something …

Member Avatar for cosmos22
0
96
Member Avatar for cj-read

I have a .csv file of data which has the following format: int,string,float,float,float,float, where the string is always 3 characters. I want to read the file in and sort column 5 relative to column 1. i.e. 1,b,1.11,2.22,3.33,200.00 3,c,1.11,2.22,3.33,100.00 becomes 3,c,1.11,2.22,3.33,100.00 1,b,1.11,2.22,3.33,200.00 etc. I'm a novice programmer and I don't quite …

Member Avatar for vmanes
0
272
Member Avatar for dophine

Hi when I look at this website [url]http://www.parashift.com/c++-faq-lite/operator-overloading.html[/url], I don't quite understand for the section 13.14 about prefix++ and postfix++. Number x = /* ... */; ++x; // calls Number::operator++(), i.e., calls x.operator++() x++; // calls Number::operator++(int), i.e., calls x.operator++(0) why ++x is calling x.operator++() while x++ is calling calls …

Member Avatar for dophine
0
140
Member Avatar for carnage

this would be my first time with arrays so i still have no idea how to use it i'm thinking on using it on this program [code=c++]#include <iostream> #include <conio.h> #include <string.h> using namespace std; int main() { char main_menu; char parts; char items[]; //here's the part i don't know …

Member Avatar for carnage
0
136
Member Avatar for Jaycii

I am trying to use an overloaded + operator to find the total balance for two values. I am messing up with the way to set them up, or forgetting something. I am getting values such as -9.543e2433 The code I am using for the operator is [code] Account operator+(Account …

Member Avatar for Jaycii
0
146
Member Avatar for jayohn

OK, i found this site because I did a yahoo search to calculate the parking charges and print the total, Well someone else had it already posted but once I registered I lost it. I am not even supposed to be in this class but I have to take it …

Member Avatar for Nick Evan
0
109
Member Avatar for cosmos22

Hello. I've been doing some programming recently that is supposed to delete files from a specified pathway [code=cpp] #include <iostream> #include <cstdlib> #include <windows.h> using namespace std; int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow); int main() { cout <<"Deleting file..."; // ??? What to do here? MessageBox(NULL, …

Member Avatar for cosmos22
0
186
Member Avatar for ithelp

Hi All, I am trying to understand whatever problems reported by static analysis tools for a codebase , can they always be caught by some dynamic analysis tool like purify (other than coding style issues) , what I meant is if you discard coding style issue, is running static analysis …

Member Avatar for vijayan121
0
94
Member Avatar for ventrica

i hav write a coding regarding to lists topic. and i had found about 3 error which i cant solve. any1 here who can help me wif dis error? i m very appreciate 4 all of ur help..TQ..dis is my coding and the error..TQ [code=c++] List.h #ifndef LIST_H #define LIST_H …

Member Avatar for vijayan121
0
428
Member Avatar for kunalcrazycoder
Member Avatar for appu.puli

HI all, I am beginner of VC++. I am working with remote console management. Can u please help me to display a string message on the console. If possible can u please send me the sample code. Thanks,

Member Avatar for Jx_Man
0
46
Member Avatar for kelvinskk

Hi, I'm still pretty new to socket programming and I'm using Fedora Core 5. Currently I need a simple IPv6 client to send text messages to an IPv6 Server. From some sample codes that I have gotten, it could work in IPv4, but the code could not work in IPv6. …

Member Avatar for kelvinskk
0
757
Member Avatar for wamuti

Hi guyz. I am making a client-server application uysing CAnsySocket. A little history may help you assist. I made the application and was working just okay but the problem was that two client app. could not connect to the server. It always crashed. A viable solution to that was making …

Member Avatar for dandan
0
91

The End.