49,761 Topics
| |
hi everyone im wondering how will i connect a VC++ program with an SQL server. i would like the program to have direct access with the tables/data. if you can provide a sample source code would help. thanks. | |
Hello, am a new member and this is my first posting. Having benefited from lot of posting i decided to join. But currently am trying to solve an exercise and it is proven difficult for me. I have written a program in c++ in linked list but am facing two … | |
Ok, I new to this and haven't been taught exception handling yet but I would like my program to run without crashing when someone mashes the keyboard. I have declared an int x, and I don't want my program to crash when user inputs an char or more than 10 … | |
Hi, this is not a HUGE problem but I was jw why at the end off all my codes I have to type, system("pause");. When I even do the Hello World! program thing the black screen just flashes. I was jw why no one elses codes have this. Its not … | |
hey im trying to make a simple program to calculate backpay and pay rises for my dads business, ive worked out a pseudocode for it, but am having trouble implementing it. BEGIN Salary Increase numberOfBackpayMonths = 5 PRINT “Congratulations! You had a 6.5% pay rise retroactve for five months.” PRINT … | |
i always hear about arrays and it makes sence to me but whats a tipical use for them may i pleas see an example because i dont understand why they eaven exisit | |
this is about making a loop for powers stripe3 is the variable how do u do stripe3*10 stripe3 times for example if stripe3 = 5 then my question is how do u do 5*10 5 times because there isnt an opperation in c++ for exponents so i was thinking of … | |
What do I need to do in order to get my program to print out two decimal places? [CODE] #include "stdafx.h" #include <iostream> #include <ctype.h> using namespace std; int main() { char movie[50]; int adult_ticket_price, child_ticket_price; int adult_ticket_sold, child_ticket_sold; int percentage_of_gross_amount_donated; cout <<"Enter The Movie Name: "; cin >> movie; … | |
Hi all i was wondering if any one could help me i have a program i made using wininet in c c++ and my program is not seeing if there is a connections before completing with the execution ive tried to get it sorted but cant seam to figure it … | |
const char * strstr ( const char * str1, const char * str2 ); char * strstr ( char * str1, const char * str2 ); Locate substring Returns a pointer to the first occurrence of str2 in str1, or a null pointer if there str2 is not part of … | |
hello what is a far pointer? Recommend me some good books on data structures and algos | |
Okay, thanks ahead of time for looking at this. First off the program is in C, not C++. I am trying to read in from a text file... a certain question.... but i fairly suck at programming in C. I have a file pointer set up and i have it … | |
hello guys . the code is doin well enter sorted integers and num to be searched the problem is in the last if condition [CODE] #include<iostream.h> #include<conio.h> #define siz 10 void main() { int arra[siz]={0}; int mid,beg=1,end=siz,loca=0,num; clrscr(); cout<<"Please Enter The Elements Of Array\n"; for(loca=0;loca<siz;loca++) { cin>>arra[loca]; } cout<<"Please enter … | |
Hi everyone! My name is Ricardo and i'm having a few problems with a program i'm writing. The program should deal with products information, i'm doing it using a structure, two procedures and a main function, the purpose is so that in the first function, designation of the products should … | |
Hello again to good ol' DaniWeb. Again I'm stuck. I'm a newbie when it comes to C++. I was given an assignment ([B]ATTACHED[/B]), which I'm having problems with in the first part of [B]Menu Choice A[/B] section. I'm only that far, and haven't proceeded further. I've coded the following (with … | |
Hello everyone, Does anyone know how to write a source code for 3x3 determinants. I was given that for my C++ final exam and didn't know how to do it. I could only do the 2x2 determinants and that's what i put down. Any help is greatly appreciated. thanks | |
please suggest me how to position my output in tc++3 like [COLOR="Blue"]sa[/COLOR]:1111 [COLOR="#0000ff"]da[/COLOR]:112212 [COLOR="#0000ff"]d[/COLOR]:4 i want that irrespective of the length of data after [COLOR="#0000ff"]sa[/COLOR] or [COLOR="#0000ff"]da[/COLOR] the distance between[COLOR="#0000ff"] sa da d[/COLOR] should be constant | |
here is a code about a circularlinklist,which its nodes contain a number between 1 to 2048(first node contains 1 and the lastnode contains 2048) and pointer P that refers to the last node...what does this code do? [code]while(p->next!=p){ p->next=p->next=->next; p=p->next; } cout<< p->info;[/code] | |
Ok, so I am trying to re learn c++ and the first thing I wanted to do was make a simple class for a circle (calculate the area and circumference of the circle). When I tried to compile it I get this error: [CODE]11 conversion from `Circle*' to non-scalar type … | |
HAI I HAVE ERROR IN RUNNING THIS PROGRAM I HAVE COPIED THE MAIN.H AND STRING .H. PLEASE GIVE THE SOLUTION AS SOON AS POSSIBLE CODING /* $Id: main.h,v 1.69 2005/01/18 06:19:46 prahl Exp $ */ #if defined(UNIX) #define ENVSEP ':' #define PATHSEP '/' #endif #if defined(MSDOS) || defined(OS2) #define ENVSEP … | |
My code is below. I'm pretty sure my issues are spanning my my .resize(). It's possible I'm doing my hashing completely wrong too, but it was right at one point. This code wont run at all right now, but it compiles. Is there a better way to go about sizing … | |
Hey guys, I'm stuck again. The program is supposed to get the estimated population after n years using the equation P + (B*P/100)-(D*P/100) and the growth rate using B-D. Here is what I have so far, but I can see I'm going to be getting stuck. How can I set … | |
Hi! I'm new here. I'm reading a book about C++ so I'm quite new to the language. An exercise asks to write a simple "Turtle Graphics" program. This program should be able to simulates very simple graphics thanks to the following commands: Command Meaning 1 - Pen up 2 - … | |
If I do a public inheritance and the member data in the base class I'm deriving from is protected, is the only way to access the data in the base class via member/friend functions of the derived class? | |
Hey everyone, we're going over functions now and I am supposed to write a program that counts the number of vowels in string of characters. I'm not sure what I'm doing wrong... could someone help? #include <iostream> using namespace std ; int isVowel ( string ) ; int main() { … | |
Hello again, I just started learning Win32 API, because of wow project. Now, I d like to know, if I will be able to make a programs using Win32 API in Vista too. What about 64bit arhitecture? Will be there on Vista Win64 API? If so will the code be … | |
char *p=" My [COLOR="#ff0000"]name[/COLOR] is xyz "; char *q; q=strstr(p,"[COLOR="#ff0000"]name[/COLOR]");//it will return ptr at [COLOR="#ff0000"]n[/COLOR] of [COLOR="#ff0000"]name[/COLOR] now if i want to extract "[COLOR="#ff0000"]name[/COLOR]" from p i will increment the ptr q and put it in a char array say str[] but how will i check for space after [COLOR="#ff0000"]name[/COLOR] … | |
Hi folks i've been working hard with an assignment for college but have become stuck. Hoping u kind guys could give me some pointers. The assignment section reads: [COLOR=black] [I]MP3 Player [/I][/COLOR][I] [COLOR=black]As stated above, this section of the player will not be loading and actually playing a [/COLOR] [COLOR=black]genuine … | |
hey, i got a c project to be done n that is about a flight reservation system so i want help from u to do my codings..... i plan to create two file pointers and make 2 txt files namely Flight details and reservation details plz send me some Turbo … |
The End.