49,761 Topics

Member Avatar for
Member Avatar for jigoro

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.

Member Avatar for Ancient Dragon
0
65
Member Avatar for dabbakal

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 …

Member Avatar for John A
0
919
Member Avatar for rugae

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 …

Member Avatar for John A
0
141
Member Avatar for virus.exe

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 …

Member Avatar for WaltP
0
2K
Member Avatar for Slavrix

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 …

Member Avatar for Slavrix
0
104
Member Avatar for grunge man

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

Member Avatar for John A
0
148
Member Avatar for tayster

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 …

Member Avatar for tayster
0
146
Member Avatar for bigben09

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; …

Member Avatar for tayster
0
248
Member Avatar for muhaa

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 …

Member Avatar for muhaa
0
87
Member Avatar for Derice

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 …

Member Avatar for John A
0
140
Member Avatar for saqib

hello what is a far pointer? Recommend me some good books on data structures and algos

Member Avatar for DEMWilson
0
181
Member Avatar for jhdobbins

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 …

Member Avatar for JeganathanK
0
144
Member Avatar for saqib

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 …

Member Avatar for saqib
1
117
Member Avatar for cigar
Member Avatar for Manawyddan

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 …

Member Avatar for John A
0
118
Member Avatar for tikal777

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 …

Member Avatar for tikal777
0
109
Member Avatar for olams

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

Member Avatar for iamthwee
0
114
Member Avatar for gamodg

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

Member Avatar for WaltP
0
63
Member Avatar for paeez

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]

Member Avatar for Salem
0
64
Member Avatar for Dark_Omen

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 …

Member Avatar for ~s.o.s~
0
210
Member Avatar for arunprabhakar

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 …

Member Avatar for Ancient Dragon
0
780
Member Avatar for ch1ck3n

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 …

Member Avatar for ch1ck3n
0
77
Member Avatar for Duki

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 …

Member Avatar for Duki
0
4K
Member Avatar for ziofu

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 - …

Member Avatar for ziofu
1
112
Member Avatar for degamer106

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?

Member Avatar for John A
0
92
Member Avatar for Duki

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() { …

Member Avatar for Duki
0
233
Member Avatar for jan1024188

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 …

Member Avatar for Ancient Dragon
0
118
Member Avatar for gamodg

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] …

Member Avatar for John A
0
117
Member Avatar for stanwaka

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 …

Member Avatar for ~s.o.s~
0
99
Member Avatar for nuw_gamnera

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 …

Member Avatar for Ancient Dragon
-1
122

The End.