49,761 Topics
| |
[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 … | |
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 … | |
for my school project , i need a very simple game (can be textbased ) i need help pleasseeeeeee.........................:'( | |
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 … | |
i was wondering whenever you create a file in c++ where does it go cuz i've never seen anyone specify the root.. | |
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(); … | |
[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!!!!! | |
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 … | |
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: … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 ;-) | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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; … | |
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 … | |
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! | |
[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; … | |
[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 = … | |
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 … | |
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 | |
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 … | |
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? | |
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 … |
The End.