49,757 Topics

Member Avatar for
Member Avatar for Jigg1yPuff

Can any1 help me with printing out the student record when the user inputs the information? i wrote a for loop statement to print out the user input and set the width to 60, but it doesn't print it out... [code=cplusplus] #include<iostream> #include<iomanip> using namespace std; struct Record { char …

Member Avatar for Ancient Dragon
0
144
Member Avatar for kse989

This is the header file for a Recursive Binary Search Tree - I have never used recursion, not sure if I'm, using it right... If you could tell me if this is the correct algorithm for recursion for this code, that would help alot. -- also, I am not sure …

Member Avatar for Laiq Ahmed
0
897
Member Avatar for dev.cplusplus

I trying to change the edit box (filepath) of the "Save As.." Dialog of the Internet Explorer, on run time. The problem is when using the method: [code] GetDlgItem(hwnd, 0x0470) [/code] The file path control in Windows XP is'0x047' and in Windows 98 is '0x480'. I found this in the …

0
49
Member Avatar for donaldunca

I research into code c++ for multimedia. It's audio and video transmission. I really need some books or sample to understand multimedia operation Could you help me? Thank for advanced.

Member Avatar for donaldunca
0
117
Member Avatar for complexcodes

I am working on this assignment, compiler is giving me 2 errors but I couldn't find any mistakes. [CODE]#include<iostream> using std::cout; using std::endl; class opOverload { public: opOverload(); opOverload(int,int); opOverload operator+(opOverload); void show(); private: int sub1; int sub2; };[/CODE] [CODE]#include<iostream> using std::cout; using std::endl; #include"opOverload.h" //default constructor opOverload::opOverload() { } …

Member Avatar for bugmenot
0
97
Member Avatar for jimJohnson

just a small issue with my program...I am finishing it up and the issue I have is I need to make me decimal points line up...the array is up and perfect just need some assistance in setting up the widths [code=c++] #include <iostream> #include <fstream> #include <iomanip> #include <string> using …

Member Avatar for vmanes
0
101
Member Avatar for lahom

hi [B]Is there any function in vc++ do the same thing as the Input (int,int) function in vb?[/B]and is there one ...[B] would someone please tell me what is it?[/B] thanks in advance lahom

Member Avatar for lahom
0
243
Member Avatar for jimJohnson

can someone show me how to code the median if it is an even number [code=c++] #include <iostream> #include <fstream> #include <iomanip> #include <string> using namespace std; void Fill_Array(double Size[], int& count); void Print_Array(double Size[], int count); double Calc_Average(double Size[], int count); void Sort(double Size[], int count); void Swap(double& v1, …

Member Avatar for VernonDozier
0
137
Member Avatar for NoName

am looking for some info not just code for hardware detection in linux like: cpu description (athlon, intell ecc) cpu speed ram # of hd's / size i just need someone to point me to the right direction Thanks

Member Avatar for vijayan121
0
46
Member Avatar for jimJohnson

2 questions first did you guys get hacked yesterday or something and 2nd: Not sure what I am doing wrong but have an issue with a program...i am to input a file name that i have in my project and it is not doing it right... This is what my …

Member Avatar for jimJohnson
0
227
Member Avatar for lianaconda

Hi. The idea is to create a base classed called creature with 3 derived classes called phoenix, giant, and centaur. I've already implemented all the functions, but my code still doesn't compile. I get errors that say [code]"error C2664: 'Phoenix::Phoenix' : cannot convert parameter 1 from 'const char [9]' to …

Member Avatar for lianaconda
0
123
Member Avatar for varsitygirl_13

Hi, I have made my tic tac toe game that allows two people to play the game. Everything works properly, but now I would like to make the game using a two dimensional array. Here is my original code: //tic tac toe game #include <iostream> using std::cout; using std::endl; using …

Member Avatar for VernonDozier
0
8K
Member Avatar for replyfast

I have the text file (in1.text) <<<start>20>>everything going fine or not<start>i do not know but I am trying<end><start>Trying is but we can do<startabcdefghijklmnopqrstuvwxyz<end> <<<start>20>>Trying to do things<end><<<start>20>>well try try and try again<end> I have to extract tag <<<start>20>> from file.My code is [code=cplusplus] #include <vector> #include <fstream> #include <sstream> #include …

Member Avatar for pcgeek123
0
71
Member Avatar for hacker9801

I know the & operator means address-of, but what's it do when in a function prototype? Example: [code=c++]void foo(std::string& str)[/code] or [code=c++]void foo(char& c)[/code] what's the & for in that?

Member Avatar for VernonDozier
0
104
Member Avatar for gupster

Hi guys, I'm not sure if this can be done or not, but I'm writing code for a C++ course at uni and my main starts as follows: [CODE]cout << "Do you want to start a list of shapes? [Y]es or [N]o?" << endl; cin >> c; switch(c){ case 'Y': …

Member Avatar for Necrolis
0
89
Member Avatar for Black Magic

Hey, I was just thinking and came across this idea and wanted to know if it could be done, say if the user enters 321, my program would output 123, 450, 054 etc etc Could you please show me how this could be achieved thanks.

Member Avatar for Narue
0
3K
Member Avatar for nomas90

I make x,o game between two players and it is run but, please i want to know how i make this game between one player and the computer? please i want an urgent reply..

Member Avatar for nomas90
0
116
Member Avatar for rem0404

i'm working on the "removesong" function. i need to check the vectors that already have the data separated and stored in them, and i need to see if the entered song title and artist name exist. if they do, i need to replace that same vector location with an empty …

Member Avatar for Lerner
0
98
Member Avatar for CodeBoy101

Hello to all, I need to know how to read the space bar as a character (or string) rather than as a separator, and I also need to know if the same can be done with the enter key. I am grateful for all contributions. :icon_mrgreen:

Member Avatar for zandiago
0
110
Member Avatar for cpp noob

hello i made this black jack game its showing few bugs and stuff , spent a long :sad: time and i cannot figure out what to do . please help correcting :cry: i would also appeciate a smaller version of this progrm. :surprised thank you :cry: this is for "tc.exe" …

Member Avatar for CrisRo
0
323
Member Avatar for nubicoder

Hello, I am trying to load data from a testfile.txt file which contains ten records and 3 fields with numbers into a 2 dimensional table and then print it. I am not sure if I am accesing the data correctly and placing it into the array. I get no output. …

Member Avatar for nubicoder
0
210
Member Avatar for En1ro

Hello: [code=cplusplus] #include <stdio.h> // for printf #include <D:\Programavimas\Naujas Darbas\SQLAPI\include\SQLAPI.h> // main SQLAPI++ header int main(int argc, char* argv[]) { SAConnection con; // create connection object try { // connect to database // in this example it is Oracle, // but can also be Sybase, Informix, DB2 // SQLServer, InterBase, …

Member Avatar for mitrmkar
0
582
Member Avatar for e_pech

I'm new to C++ with MFC.. I want to do something like this [code] long longvar = 0; return _T("The value of longvar is " + longvar + "!"); [/code] But of course, is not allowed by C++.. Please! HELP!!! I'd really appreciate it!!

Member Avatar for e_pech
0
156
Member Avatar for akshayygarg

Hi I created a code which reads data from user, processes it and write it back in to a file in .csv format so that user can see it in excel. Although the program is running fine from the tc for any set of data, the exe file when i …

Member Avatar for akshayygarg
0
153
Member Avatar for dev.cplusplus

Hi to all, it been a long time since my last time I write/ask in the forum. I have the problem I hope you can help me: I’m using the guide: [url]http://www.codeproject.com/KB/shell/iesaveas.aspx[/url] (Automated IE SaveAs MHTML) I have the problem when I’m running the code in Windows Vista In the …

0
49
Member Avatar for Lass

hey every body, in my project-Emergency room Simulator- i should open file for all patient if he didnt have one, so, when the patient come, i will ask him if he has a file, if yes, i will read his information and add some more in it, if not i …

Member Avatar for mitrmkar
0
166
Member Avatar for Lotus_2011

my code convert from decimal to octal here is but say input 26 ,output 23 i want output =32 what can i do? [code] void main() { int value; cin>>value; //value=26 int rem=0; while(value!=0) { rem=value%8; if(rem%8!=0) { value--; } i++; value=value/8; cout<<rem; //output 23 [/code]

Member Avatar for Narue
0
86
Member Avatar for farag

[B]I want a certain library to read picture in different format especially bmp format and store it in matrix like command in MATLAB [/B] [code] imread () that take the file name and it is extension [/code] [B]thank you in advance[/B]

0
60
Member Avatar for elmoro

I have Write a c++ program to allow the user to divide an array of 100 different random numbers between 3&90 into two arrays, one for the odd numbers and one for the even numbers. Then for each of the new arrays, find the average of those numbers. Use a …

Member Avatar for Ancient Dragon
0
68
Member Avatar for bhoot_jb

can anyone tell from where i can download the latest bloodshed dev C++ IDE... my problem is i am not able to access the [url]www.bloodshed.net[/url]... :( so is there any other link to download it??

Member Avatar for bhoot_jb
0
152

The End.