51,593 Topics

Member Avatar for
Member Avatar for complete

Included file not found during compile time. This must be an easy question for you to answer. I have a header file (basetsd.h) that is located in the C:\Program Files\Microsooft Visual Studio\VC98\Include directory. Where do I set the path to this header file? I don't want to hard code it …

Member Avatar for FireSBurnsmuP
1
181
Member Avatar for yeya

Hi, I'm doing a VC++ project, which requires me to create multiple CWnd objects and put them into one dialog box for viewing. For example, I need to create 100 buttons with 1-100 written on them, and put them into one dialog box. Of course the dialog box can't show …

Member Avatar for Ancient Dragon
1
98
Member Avatar for yadavvirendra

# include<iostream.h> int main() { int ar[2]={8,2}; // (1) int var1=66; //(2) int var2=111; //(3) int* ptarray[5]; //(4) ptarray[0]= ar; //(5) ptarray[1]= &ar[1]; //Address of second element of array ar // (5) ptarray[2]= &var1; //(6) ptarray[3]= &var2; //(7) ptarray[4]= &ar[0]; //(8) // To keep code small I use a loop …

Member Avatar for Micko
1
127
Member Avatar for CurtisBridges

I have a group project of designing the old board game "CLUE" in my C++ class that can be played by 1 person against the computer. If someone would help me get started it would help a bunch. I think this could be a neat project, but have no clue …

Member Avatar for ~s.o.s~
1
131
Member Avatar for CurtisBridges

Would somebody chck this code please. I am a struggling C++ student and need all the help I can get. Thanks, Curt [COLOR=#008000]Here are the directions: [/COLOR] create a function that check's the number, put's out whether it's odd or even and adds it to the total variable [code] [COLOR=#0000ff]#include[/COLOR][COLOR=#800000]"stdafx.h" …

Member Avatar for ~s.o.s~
1
144
Member Avatar for isaacmacdonald

I wrote a simple program that sums the square of integers m -> n. If sum is declared as [B]double[/B] it gives something like 4.16..x10^10 for integers 1 -5000. However, if sum is declared as an [B]int, [/B]for the same range it reports -1270505460. Obviously this has something to do …

Member Avatar for FC Jamison
1
176
Member Avatar for ssowmya

Hi, Hi friends i am new to this site.Am happy to tell you guys out there that i liked this site and all the effort that everyone has put to keep this site going. Now coming to the point,i need to decide on a project possibly in c/c++/java which is …

Member Avatar for Grunt
2
966
Member Avatar for weltonalicia

How do you start to write a program when you are asked to use an output statements to print three first letters of your first name in big blocks. I started off with. #include " stdafx. h" #include <iostream> using namespace std; int main () { // Statement Cout << …

Member Avatar for FireSBurnsmuP
0
67
Member Avatar for darkwizard

I have been using c++ for around an hour and a half but I am having problems with my calculator, It doesent work at all, it compiles though. here can you fix it up tell me what i did wrong. [code]// Calculator.cpp : Defines the entry point for the console …

Member Avatar for lakshmi.1987
0
118
Member Avatar for sugantha

I ve read that iostream is a derived class of fstream ,so including the "fstream" header is all sufficient to perform console i/p and o/p(ie cin and cout) .this worked fine as long as I used Turbo C++ compiler but now I ve switched to Bloodshed Dev C++ compiler and …

Member Avatar for Salem
1
129
Member Avatar for bg123

I am doing a mazetraversal program that inputs a .dat text file. Im having trouble taking in account of the whitespace. Here is my code and were the ?????? is where it needs to go. I think its just a small "if" statement taking it in account. [CODE]#include <iostream> #include …

Member Avatar for Lerner
1
129
Member Avatar for Diode

Hello, :) I have chosen to go with getch() for my keyboard input. However, when I went to experiment with it, I got some unexpected results. The 'Y' in 'Your word was ' is missing in the command prompt when I run this program after I compile using gcc, and …

Member Avatar for WaltP
1
135
Member Avatar for SOLO13

Im planning in buying this. Is this all I need to start coding? Thanx Overview [B]The Visual Studio® 2005 Standard Edition from Microsoft®[/B] is a comprehensive, high productivity professional development environment for individual developers for building enhanced performance, multi-tier applications for Windows®, Web, and common consumer mobile devices. It allows …

Member Avatar for Ancient Dragon
1
112
Member Avatar for MrLew

I have a 2 part problem. 1) In circleTypeImp.cpp I am being returned incorrect values for circum and area variables. I have tried using both float and double variable type with no luck. Any pointers? 2) I have read over how to derive a class a number of times and …

Member Avatar for MrLew
1
209
Member Avatar for Diode

Hello, I am trying to develop something that, when you press a character on the keyboard, puts a char into a char-type variable. Should be easy right? Well, I don't want to require the user to have to press ENTER when they press the key. Maybe scanf isn't the right …

Member Avatar for WaltP
1
1K
Member Avatar for lakshmi.1987

[B]can some one guide me in creating a text editor?tools that can be used,in detail.......[/B]

Member Avatar for Salem
0
101
Member Avatar for Ajay Raj

Predict the output of the following code: #include < IOSTREAM > int main() { char weekdays [7][10]= { "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" }; cout<<**weekdays; } Could any one let me know answer and also the explaination if possible

Member Avatar for Ajay Raj
1
128
Member Avatar for Flay

I allready asked a question about this inside JoBe's Thread about the stl <map> ([URL]http://www.daniweb.com/techtalkforums/post252520-10.html[/URL]), but maybe it's better if i make a new thread about it. The problem is, when i try to use <map> inside my project i get 2 errors: C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\map(16) : error C2143: …

Member Avatar for Flay
1
100
Member Avatar for matrimforever

I am trying to write a simple program in c++ to take a beginning delivery time in 24 hour time and an ending delivery time then taking 25% off that time(making the end time 25% sooner). For example, i'd have a user enter in 0900 for start time and 1030 …

Member Avatar for FC Jamison
1
158
Member Avatar for hay_man

Here's a really simple problem. I understand the basic search algorithms however, is there a difference when implemeting them in regards to vectors or strings? I want to determine if a certain value using a sequential search, the code would look something like this; [code] #include <iostream> #include <fstream> #include …

Member Avatar for hay_man
1
109
Member Avatar for Karthi Msc

Hi can anyone help me in doing the following Given n Boolean variables x1,x2,…..xn, we wish to print all possible combinations of truth values they can assume. For instance, if n=2, there are four possibilities : true, true; false, false; false, true; true, false;:-|

Member Avatar for Salem
1
165
Member Avatar for wheelz

I am a newbie to C++ and I'm not sure of anything at this point in time however,I got a problem with the starting phase of this program that well prompt the user to input a single character and output a inter4national Civil Aviation Word !!!!! The prolem that I …

Member Avatar for Ancient Dragon
1
104
Member Avatar for stupidenator

Hi, I am in need of some help with a small portion of my program. I have an input file as follows: [CODE]10 9 15 program1 11 1 30 important 12 11 10 junk program 14 15 5 other program 17 6 20 another program[/CODE] I need a function to …

Member Avatar for stupidenator
1
173
Member Avatar for wheelz

:confused:I got this assignment to write a program using the switch statement or the functional decomposition, that inputs a letter and outputs thr corresponding international Alpabet. A Alpha B Bravo C Charlie so on and so on Is there anybody that can help me with this program?

Member Avatar for Infarction
1
283
Member Avatar for Kadaj

Ok, i have a friend that has come to me for help with her comp and i have no idea how to solve this one. When she starts her computer (laptop w/ Windows XP) a dos-looking screen comes up after a short wait and says that the file "C:\WINDOWS\system32\config\system" is …

Member Avatar for DMR
0
215
Member Avatar for amano

Hello I'm newbie in C programming. Iwant to make a simple contact book that have add, delete, edit, and display function. 2 out of 4 i've done which is add and delete. So I need some help from all of you in edit and list function. Here is my function …

Member Avatar for Dave Sinkula
0
1K
Member Avatar for Akks_3

I'am new to wingdi. As I tried to include my wingdi.h in my borland C++ 5.5 program, the compiler shoots the following errors: Error E2303 C:\BORLAND\BCC55\INCLUDE\wingdi.h 269: Type name expected Error E2139 C:\BORLAND\BCC55\INCLUDE\wingdi.h 269: Declaration missing ; Error E2303 C:\BORLAND\BCC55\INCLUDE\wingdi.h 270: Type name expected Error E2238 C:\BORLAND\BCC55\INCLUDE\wingdi.h 270: Multiple declaration …

Member Avatar for Ancient Dragon
1
143
Member Avatar for Flay

I have a question about the map-question JoBe asked at the start of this post. I'm also trying to build a program using <map>, but when i compile i get error that point to code inside the MAP-file. I saw your post here, and i tried your small program, but …

Member Avatar for GloriousEremite
1
281
Member Avatar for sameer.mastek

I'm creating a code which will map two distict strings. I used two ways for that: 1) created a MAP and added raw data to it from file. It is not that efficient.:sad: 2) created an object holding mapped values: eg. class c { string str1,str2; public: /// opearations }; …

Member Avatar for ~s.o.s~
1
113
Member Avatar for gampalu

I'm doing a dialog application in C++ to calculate something, but I want the result to be with 2 decimal number, how to do this? here is the function: [CODE]void CCalculatorDlg::Oncalc() { // TODO: Add your control notification handler code here UpdateData(TRUE); if ((m_amostras >= 1) && (m_elementos >= 1) …

Member Avatar for gampalu
1
121
Member Avatar for Maux

I'm new to these forums,and really new to C++,but here is what i need to know.I made a simple calculator in C++ and i was wondering what i need to be able to keep useing it without opening the program everytime... [code]// simple calc // Chris Wilson #include <iostream.h> int …

Member Avatar for rinoa04
1
129
Member Avatar for dsraju

Hi all,I am having some doubts in C. 1>> My program needs to allocate memory of 256*256 array of integers ie array[256][256]. But it cannot be allocated statically.So pls suggest me how to allocate memory of 256*256 integers dynamically.My code below given is unable to allocate memory and is returning …

Member Avatar for Iqbal_h_a
0
308
Member Avatar for vamsikirans

One of our clients,a Hyderabad (India)-based Company, with presence in US & Europe, has the following opening: [B]Position: "Senior PERL Programmer”[/B][B][/B] [B]Skill-set: (Mandatory) Perl, C++, Shell scripting, Java, JXB , PHP Scripting[/B] [B]Experience: 3+ Yrs (incl. 2+ yrs relevant exp)[/B] [B]Education: Graduates/Btech /BE /Mtech /ME /MCA /BSc. CS /MSc[/B] [B]Location: …

Member Avatar for dwks
0
81
Member Avatar for complete

I got a Link error 1181 with fresh code from source safe. It is looking for a dll that is in the windows/system32 directory and cannot find it. [QUOTE] Linker Tools Error LNK1181 cannot open input file "filename" The linker tool could not find "filename" because it does not exist …

Member Avatar for dwks
1
184
Member Avatar for kharri5

So I have a question regarding ifstream and reading a file. I have to read in this file, but some of the lines of the file will have missing sections of data. These lines I want to just throw away and then continue reading the file on the next line …

Member Avatar for Ancient Dragon
1
265
Member Avatar for insamd

hey guys, i am trying to get my code to count the number of characters in a file. However, the program is continuously going through the characters (so it goes from a-z thousands of times) when i want it to say how many times 'a' occured and 'b' and so …

Member Avatar for insamd
1
453
Member Avatar for CurtisBridges

[IMG]file:///C:/Documents%20and%20Settings/Curtis%20Bridges/My%20Documents/My%20Pictures/Dinosaurs/scan.gif[/IMG]

Member Avatar for Anonymusius
1
109
Member Avatar for CurtisBridges

I got stumped can someone please help ? I’m working on this home work assignment and can’t get past this point. Here is how far I’ve got: [CODE] #include <iostream> #include <iomanip> using namespace std; using std::cout; using std::cin; using std::endl; int main() { int numbers,to,Enter,odd,even; int integer,positive,a; cout << …

Member Avatar for CurtisBridges
1
121
Member Avatar for linq

It may not be the problem of my own procedure, because no matter what new projects I create, I got those 15 errors. who can copy his winuser.h file and send to me? I am using VC6.0++ Thanks a lot! my email: <<email snipped>>

Member Avatar for Ancient Dragon
1
109
Member Avatar for kararu

Hi all, I have attched a code (inline c++) which is working fine if its alone run.But when I make it a package, giving package name; and putting 1; at the end ,,the calling script is not able to recognise new and says "cant locate object method new via name.perhaps …

Member Avatar for sut
0
97
Member Avatar for Marthy

[code] //The following example overloads the + operator to add two complex numbers and returns the result. // operator_overloading.cpp// compile with: /EHsc #include <iostream> using namespace std; class Complex { public: Complex( double r, double i ) : re(r), im(i) {} Complex operator+( Complex &other ); void Display( ) { …

Member Avatar for Micko
1
107
Member Avatar for anksphenomenon

Hi guys! I wanted to know how can i go about making a desktop application with C++? My application would need to do a lot of internet intensive processes and reside on the client's system, much like outlook express or evolution mail services.. i need to know what all packages …

Member Avatar for anksphenomenon
1
703
Member Avatar for Killer_Typo

howdy all, im just looking for some good websites that list all of the controls in C# that list the various ways of interacting with a MySQL database through C# through a website. While i normally use PHP for this type of thing i would like to expand my horizons. …

0
72
Member Avatar for kimw

does anyone have problem with linking to newmat library ? running [CODE]#include "newmat.h" int main() { Matrix A(2,2); }[/CODE] i got linker error: undefined reference i'm using dev c++ and have set the directories to point to the file where i stored all the header and source files .. any …

Member Avatar for ~s.o.s~
1
102
Member Avatar for dsraju

1)Can you suggest me how to assign a pre-defined 2-dimensional array to a pointer.The intension here is to pass 2-D array to a funtion so that changes in the function will reflect the 2-D array . [code]void main(){ int array[40][40]; fun(array); } void fun(int **array){ ........}[/code] The above code is …

Member Avatar for ~s.o.s~
1
141
Member Avatar for codeme

hey guys I have to write this program and I really suck at it.:sad: I need a doubly linked list which is ordered. I was told that I can pull one off the internet and just use it. Ive been looking for one but I cant find it, so I …

Member Avatar for ~s.o.s~
1
169
Member Avatar for linq

[cpp code] hIcon = LoadImage(NULL, "menu_two.ico", IMAGE_ICON, 32, 32, LR_LOADFROMFILE); error C2440: '=' : cannot convert from 'void *' to 'struct HICON__ *' Conversion from 'void*' to pointer to non-'void' requires an explicit cast So I think I should make a cast to make this work at C++ compiler,but how?

Member Avatar for Ancient Dragon
1
66
Member Avatar for bobeagle

[quote=Narue;139999]You're using a Win32 application project when you want a console application project. Win32 applications expect WinMain instead of main.[/quote] But it still doesn't work for me. I'm just a freshmen. I set up a blank workplace, then win32 application project, then a c++ cource file. Then type as below: …

Member Avatar for GloriousEremite
1
161
Member Avatar for vinay raja

Here is the solution to converting decimal no. to binary using while loop this code is in c++ [code] #include<iostream.h> #include<conio.h> void main() { clrscr(); unsigned long int y,i=0,j=0,r,k[50]; unsigned long a,x,b[50]; cout<<"\nEnter a decimal no. "; cin>>a; y=a; x=a-y; while(y>0) { r=y%2; k[i]=r; i++; y=y/2; } int m=0; while(m<10) …

Member Avatar for WaltP
0
574
Member Avatar for Maxxpower

Hello, I'm new to both C++ and these forums. What I'm trying to do is calculate the average of all values contained within an array. Is there a simple command that can do this for you, or does one need to set up some kind of loop? Any help or …

Member Avatar for ~s.o.s~
1
140

The End.