49,761 Topics

Member Avatar for
Member Avatar for frozenflame2

[code]#include <iostream.h> int main(void){ char a; char b; cim >> b; b=b-'a'+'A'; cout << b; return 0; } [/code] I am like about 2 weeks into programming, so I am pretty simplistic in my programs. If you put that into like a Borland Compiler (not sure if other compilers use …

Member Avatar for Narue
0
112
Member Avatar for eddy518

Hey Fam, I’m working on this ..so far this is what I have..(after almost 2 1/2 frustrated hours) As a newbie, I figure out somehow the remainder and the prime concepts. I’m finally happy that I have 0 error but the program doesn’t do what I expected! Eventhough I tested …

Member Avatar for Salem
0
111
Member Avatar for sneha_venky

for my school project , i need a very simple game (can be textbased ) i need help pleasseeeeeee.........................:'(

Member Avatar for vijayan121
0
215
Member Avatar for toko

i would like to make a client choose with words rather than numbers. Instead of the conventional way of using numbers to retrive commands i need to make a client write words for example they type in "add" to get 2 numbesr to add and so on. any help is …

Member Avatar for Narue
0
66
Member Avatar for toko

i was wondering whenever you create a file in c++ where does it go cuz i've never seen anyone specify the root..

Member Avatar for toko
0
93
Member Avatar for toko

Okay, i have written a code to figure out the area of all different shapes but i can't get it past hte pasrt where the client chooses what they want to find the area of. this is my code: [CODE]#include <iostream> #include <cmath> using namespace std; int getChoice(); int circle(); …

Member Avatar for toko
0
266
Member Avatar for lhay

[COLOR=DarkSlateBlue]undefined[/COLOR]pls!help me to my project in cs programming about in the smallest and biggest and to find it averages!!!!!!!!!!!!!!!!!!!pls!!!!!!!help me!!!!!!!!!!!!!!!!!!thank you!!!!!

Member Avatar for preeti madan
0
105
Member Avatar for Fool

i have to decide a program to "satisfy" my crazy private tutor .This program reads in 2 input extremely large postive integers. It will then output their sum. However , as C++ got limit in int, so i think i need to use string variables to represent the values..then use …

Member Avatar for Fool
0
282
Member Avatar for nshh

Variant Excel,Workbooks, Workbook; Variant Worksheets,Worksheet, Range, Cell, FColumns, Format, Item; Excel = CreateOleObject ( "Excel.Application"); Excel.OlePropertySet("Visible", true ); Workbooks=Excel.OlePropertyGet("Workbooks"); Workbook=Workbooks.OleFunction("Add"); Worksheets=Workbook.OlePropertyGet("Worksheets"); Worksheet=Worksheets.OlePropertyGet("Item", 1); Its working well as a stand alone program. But i include the same code in the button of my project I got this error in run time: …

0
78
Member Avatar for Linda1

I am very new to C++ and one of my homework assignments involvemulti dimensional arrays. I was able to initialize and input and display the array (4x4) but the last step is to swap the data of the row to that of the column. Tried different ways and unable to …

Member Avatar for Linda1
0
127
Member Avatar for FAZ3

Can someone help?...I'm a mac user and I need to know how to create an input.dat file in my project so it can read off data in the file. I tried adding a new file but when i try to open it on my program w/ inData.open("input.dat"); the program doesn't …

Member Avatar for Ancient Dragon
0
66
Member Avatar for towhoe260

This is my assignment and im pretty confused. Our book is a horrible book, and i cant seem to understand much of it. So i was hoping maybe someone could point me in the right direction in getting started. tHis is what we are expected to do. Write a program …

Member Avatar for Dave Sinkula
0
140
Member Avatar for Llama

I want to make a code that searches a text file and finds a certain string, and then changes that string to another string. First im going to have it input the whole file, and i am couting it too, so that i can make sure it worked. But it …

Member Avatar for Llama
0
151
Member Avatar for toko

I need to make the computer to choose a number between 1 and 10 and i don't know how? Please give me any help you can. Thanks for any help u provided ;-)

Member Avatar for zandiago
0
36
Member Avatar for onlyled12

I am very new to programming and am in a class that has quite the frustrating instructor. He gives very simple examples then asks very complex questions. Complex to me atleast. Anyone who could shed some light on these would be greatly appreciated. Write a program to play a number …

Member Avatar for zandiago
0
419
Member Avatar for mstrmnd2008

I am doing a c++ assignment and just need a little help. I would just like to know how to get the ASCII code number after inputing an ASCII character. The user of this program should be able to input an uppercase letter and recieve the ASCII code value and …

Member Avatar for Narue
0
141
Member Avatar for lvphoenix

Hey All I am having issues with my code and it has something to do with the way my double linked list is working. I cant figure out if its not setting the m_prev pointer if at all and what is going on with my m_next pointer. Any help would …

Member Avatar for Narue
1
163
Member Avatar for liphoso

Can any one help..... I am relatively new to programming and I would like to learn a bit of C++. I dnt want to purchase a book as yet (mainly because i cant afford one at the moment). Can any one refere me to a site from which I will …

Member Avatar for eranga262154
0
78
Member Avatar for patrickyeow

hello, i have write a program and when i compile it, it say that one of my variable 'advance', is a ambiguous symbol and cannot be used....why? after i change the 'advance' to other word, like 'advanced', it run nicely....but why 'advance' word is ambiguous in this program? [code=cplusplus] #include …

Member Avatar for vijayan121
0
246
Member Avatar for krizz

I need help with the following: How do we calculate the sum of consecutive numbers from 1 to n and not from n to 1 by using recursion. Eg. if n = 10 it should be 1+2+...+9+10 and not 10+9+...+2+1.

Member Avatar for anirudhbsg
0
989
Member Avatar for aismm

i need to write a program that includes student names, test scores, and grades... but the cin.getline doesn't work, it simply skips to the next line... where did i do wrong? Thanks. [code] #include <iostream> #include <iomanip> using namespace std; char getLetterGrade(float grade); struct course { char name[30]; char *letterG; …

Member Avatar for Salem
0
6K
Member Avatar for rkreed94

I am new to this site and it was recommended by a friend and class mate. I am having serious issues in OOP. Did great in C++ last semester but our new book is killing me. I am trying to get this program going with polynomials. The professor gave us …

Member Avatar for ithelp
0
98
Member Avatar for mstrmnd2008

I'm very passionate about computers and I love programming so I figured that participating in testing software or being able to participate in some way could truly help me learn C++ better than any prgramming class. Can anyone point me in the right direction? Thanks!

Member Avatar for ithelp
0
95
Member Avatar for zandiago

[CODE] #include <iomanip> #include <cmath> #include <fstream> #include <string> #include<string> #include<iostream> using namespace std; int main() { int num1 = 0; int num2 = 0; char again = 'y'; while (again=='y') { cout<<"Please enter two numbers to compare "<<endl; cin>>num1>>num2; cout<<"The two numbers entered in order were "<<num1<<" and "<<num2<<endl; …

Member Avatar for zandiago
0
7K
Member Avatar for vincent551987vn

[U]main.cpp:[/U] [CODE]#include <stdio.h> #include "VeryLongInt.h" int InitializeFromFile(char* fileName, VeryLongInt* &x, VeryLongInt* &y); //void ShowScreen(); int main(int argc, char* argv[]){ char* inputFile; char* outputFile; if (argc < 2){ printf("Usage: LongIntDataType.exe [InputFile] [OutputFile]\n"); printf("Using default configuration: LongIntDataType.exe input.txt output.txt\n\n"); inputFile = "input.txt"; outputFile = "output.txt"; // "output/output.txt" } else { inputFile = …

Member Avatar for vincent551987vn
0
277
Member Avatar for Ashu@sym

Hello, i am a naive in C/C++ and pretty confused about how does the compilation process work in the background, can you explain in detail (or give me a link about it) ? in particular can you please tell me: how are declarations in header file associated with the definitions …

Member Avatar for Ashu@sym
0
122
Member Avatar for Vex92

Can some one please show me a working example of how to send a string like "packet information" to a server and receive the data it gives back. Im on visual studios 2005

Member Avatar for binoj_daniel
0
83
Member Avatar for complete

If you wanted to override the closing of an application in MFC such that when the user clicks to close the program, it hesitates until other threads are closed, how would you do it. In other words, if the user clicks on the red X in the upper right hand …

Member Avatar for Ancient Dragon
0
39
Member Avatar for curt22

I need the comctl32.lib library for some stuff I'm doing in the windows api, but I don't want to download the SDK from Microsoft because it's to big. Where else can I get it?

Member Avatar for curt22
0
283
Member Avatar for vincent551987vn

Whne i using linked list, i must lay the empty box to take the each integer to itself, and it will connect to one bigger integer, and it seems to be a string, not to be a integer perfectly, how can i change it into a big integer, can you …

0
85

The End.