49,761 Topics
| |
hi all, currently i am trying to make my mobile dialog/interface to retrive data from my database(ODBC), but i am not too sure about that, can anyone kindly advice me on that. thanks | |
Ok I figured everthing out except: 1) when it asks for my input it asks like this Enter first name: Enter last name: Enter amount:-it puts it all on the same line. Also when I run it it puts Sept. on the in the right spot but it puts 30, … | |
[CODE] #include <iostream> using std::cout; using std::cin; int Forla_ciz(int); int While_ile_ciz(int); int DoWhile_ile_ciz(int); void main() { int genislik,no; while ( (genislik<1) || (genislik>22) ) { cout<<"0 ile 22 arasında bir genişlik girin:"; cin>>genislik; } while ((no<1)||(no>3)) { cout<<"hangi fonksiyonu kullanarak cizmek istiyorsunuz?\n" <<"(1)for ile (2) while ile (3) do/while ile"; … | |
[CODE]program produces a diamond enclosed by a square of the given size. For example, Enter an odd integer 9 ********* * * * * * * * * ** ** * * ** ** * * * * * * * * ********* [/CODE] | |
I need to be able to pass the data I enter into my check. I do not think I have my check set up right though. I will post my code. [CODE]#include "stdafx.h" #include <iostream> #include <string> using namespace std; string todaysDate; string firstName; string lastName; double amount; void enterData(); … | |
I have been working on this problem since last week and I about to go insane. I got it working and then all of the sudden it got screwed up. I want to know if someone can help me find out what I am doing wrong to fix it again. … | |
Hi guys, I am suppose to write a program that accepts an account number, d or c standing for debit or credit, and a floating number representing the amount of the transaction, and then does 5 things. 1)Display the sum-total amount of all transactions for a particular account. 2)Display the … | |
I am hoping someone can help guide me in the right direction. I have a project for class that I am working on and I could use some help. The project guidelines are below as well as my code thus far. I have gotten this far with it but am … | |
Hello! Please help me!!! I have been trying to make a program that show details written on a csv file. Somehow I have managed to do so, by using a code for opening *txt files. However, I would also need to add details to the same csv file, and delete … | |
Hi guys, i have one question, when i type using namespace std; at top of my program my compiler gives some error especially syntax error! my compiler is Borland C++ v.5 for example simple code: [code=c++] #include <stdio.h> #include <conio.h> #include <iostream.h> using namespace std; void main() { clrscr(); getch(); … | |
I am using Turbo C++ for Windows, version 3.1 at home. At school, we are using a similar version (maybe 3.0 or 3.1), but with a more blocky display. (with block cursor and stuff. my one at home looks more... modern) [EDIT] The school version is Turbo C++ 3.0, possible … | |
I am in a beginning programming class, and am having all these syntax errors that i can't fiugre out. Please help! [code] /#include <cstdio> //Header Files #include <iostream> #include <cmath> #include <cstdlib> using namespace std; int main(); int init_function(); enum choice {regular=1, super, superdooper,quit}; choice display_function(); int big_switch(); int calculate(int … | |
I need to read the 5 words from a input file mine is called words.txt I am unable to get to work correctly everytime I put inFile >> words[5]; instead of cin >> words[5]; I get a debug error and prog shuts down and nothing is showing up for errors … | |
Hello i have put this into devshed #include <iostream> #include <string> using namespace std; int main () { string mystr; cout << "What's your name? "; getline (cin, mystr); cout << "Hello " << mystr << ".\n"; cout << "How old are you? "; getline (cin, mystr); cout << "I … | |
I would like to separate data in text file. For example A 35 160 B 25 145 C 40 130 the first column is name of member,the second column is age and the last one is weight. The problem is not only one space. There are many spaces between column. … | |
Hey could someone please tell me whats wrong with this? [CODE]#include <iostream> using namespace std; int main() { const int sunday =7; const int monday =1; const int tuesday=2; const int wednesday =3; const int thursday =4; const int friday =5; const int saturday =6; int choice; cout <<" enter … | |
I try to use the getline function, it works in simple program and accepts the input from user but when i try to use inside the do while loop, it just escape the line and shows that there is null input. cin works fine, case 1: cl.append(Cb("abc",false)); cout << "text"; … | |
Ok I am writing a program that will read in 5 words using string list[5] and a for loop. Now I need to get it to output the 1st and 3rd letters in the words that were entered. I am having a bit of trouble and not sure what I … | |
If a function prototype is given in a 2 dimensional linked list as [INLINECODE]void InsertNode(NODE<T>*pNode, NODE<T>*pAfter,NODE<T>**pTail)[/INLINECODE], and all the necessary codings for inserting a new node is done for its function implementation, i.e, [CODE]void InsertNode(NODE<T>*pNode, NODE<T>*pAfter, NODE<T>**pTail) { pNode->pNext = pAfter -> pNext; pNode->pPrev = pAfter; if(pAfter->pNext!=NULL) pAfter->pNext->pPrev = pNode; … | |
1.if a five digit number is input through the keyboard, write a program to calculate the sum of its digits.(use the modulus operator %) 2.if a five digit number is input through the keyboard,write a program to reverse the number. 3.if a five digit number is input through the keyboard,write … | |
I have been looking at the amazon DVD search starter kit for VB 2005 express. Is it possible to create a program that you can use to login to your ebay account and see what items you are watching and also search other items on ebay like the amazon search? | |
Okay... So I'm taking this c++ class. It's accelerated and I started off great but now... not so much. I've been searching the net trying to find a group of tutorials with quick examples for beginners. Something that clearly shows how to write and call functions. Read in data from … | |
I need a head-up on this program....i really don't know where to start....however for section one, i'm guessing we'll have to use for loop from 1000 to 9999...because of the fact that they show the range of the samllest to largest 4 digit #'s. In section two I guess we'd … | |
Hey guys, I'm having some trouble figuring out how to do a step in my program. My program is to convert binary numbers to interger values. Everything looks like it will work to me if I am able to add one more step. I have done calculations manually and it … | |
Hello ladies and gents, Got a question, is it wise to create a member of a class by using another class it's constructor and deleting it threw the use of that class it destructor? For example: [code=cplusplus]// Testing code. #include "first.h" int main() { first myMenu; bool gameLoop = true; … | |
i started reading this book [B]c++ templates - the complete guide[/B] about templates... in 3rd chapter {Specializations of Class Templates} it says [QUOTE]You can specialize a class template for certain template arguments. Similar to the overloading of function templates (see page 15), specializing class templates allows you to optimize implementations … | |
error C3861: 'enterData': identifier not found, even with argument-dependent lookup error C3861: 'printCheck': identifier not found, even with argument-dependent lookup Why am I getting this error? [code] #include "stdafx.h" #include <iostream> #include <string> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { string todaysDate,firstName, lastName; double amount; enterData(&todaysDate, &firstName, &lastName, … | |
sir can u tell me about code warrior environment ?what prior knowledge should i have to learn code warrior? | |
I have to write a program for an online class that accepts data to the function enterData() and passes it to printCheck to display. I am new to C++ and since it is an online class it is hard to get help. I have to compose a check and be … | |
Good day: There have been similar posts to my question...but i don't see what I'm doing wrong. Our professor wanted us to use a switch/case statement, we started transversing a string....The assisgnment : Write a program that will read in a one line phrase from a text file named “vowels.txt”. … |
The End.