Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2010
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
I can't solve my problem      Jianguo-Chio   |   Edit   |   Show History
#include "stdafx.h"
#include <iostream>
using namespace std;
long factorial(int n);
void main()
{
int m;
cout<<"请输入n值:";
cin>>m;
cout<<factorial(m)<<endl;
}
long fatorial(int n)
{
long result=0;
if(n==0)
result=1;
else
result=n*factorial(n-1);
return result;
}
The output comes out error below:
1>ClCompile:
1> All outputs are up-to-date.
1> Ex_Factorial.cpp
1>ManifestResourceCompile:
1> All outputs are up-to-date.
1>Ex_Factorial.obj : error LNK2019: unresolved external symbol "long __cdecl factorial(int)" (?factorial@@YAJH@Z) referenced in function _main
1>D:\Studio\test\Ex_Factorial\Ex_Factorial\Debug\Ex_Factorial.exe : fatal error LNK1120: 1 unresolved externals
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:06.32
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I have try every means whatever I could find, but I can't yet correct the error. Please help me!
Tags What's this?: Add a tag
Flag as ContentBug
error message      motor900   |   Edit   |   Show History
When I try to build a program this error message comes up-"cannot find program it has been moved, deleted, or erased. Please help me I can't get anything to work
motor900
Tags What's this?: Add a tag
Flag as ContentBug
Puzzle Game problems      AdamJewsbury   |   Edit   |   Show History
Hello, $0$0 $0 $0I have been following tutorials on how to create a 'Puzzle game' using Visual Studio 2010, to be used on a windows phone...$0 $0$0 $0 $0I have managed to get one puzzle to work, however I have encountered problems when trying to replicate the same code on other pages to create other puzzle games on the same application.$0 $0$0 $0 $0 $0$0 $0 $0
namespace WindowsPhonePuzzle
{
public partial class PuzzlePage : PhoneApplicationPage
{
private const double DoubleTapSpeed = 500;
private const int ImageSize = 435;
private PuzzleGame game;
private Canvas[] puzzlePieces;
private Stream imageStream;

private long lastTapTicks;
private int movingPieceId = -1;
private int movingPieceDirection;
private double movingPieceStartingPosition;

public Stream ImageStream
{
$0
$0$0 $0 $0The errors seem to focus on this part of my code, I have simply copied and pasted the whole code over to another page, could it be that I have to rename each differently? $0 $0$0 $0 $0If anyone has any idea please help.$0
Tags What's this?: Add a tag
Flag as ContentBug
help      aleconmsdn ... richhuddy   |   Edit   |   Show History

plz help me how do you place content on a form

thanks aleconmsdn

You might want to start from the beggining with a simple Hello World tutorial.
Lots of samples out there. Google away!>!>!>!>!
Richhuddy

Tags What's this?: Add a tag
Flag as ContentBug
Add Content To A Form      richhuddy   |   Edit   |   Show History
You might want to start from the beggining with a simple Hello World tutorial.
Lots of samples out there. Google away!>!>!>!>!
Tags What's this?: Add a tag
Flag as ContentBug
plz help      yasmine jamal   |   Edit   |   Show History
plz help me !
it keep saying that there r a missing source file ..
and when i build solution it says
fatal error C1083: Cannot open precompiled header file: 'Debug\yasmine alwa'al.cpp.pch': No such file or directory

wt should i do??
Tags What's this?: Add a tag
Flag as ContentBug
visual studio      jeremylovell333   |   Edit   |   Show History

visual studio download

 

Tags What's this?: Add a tag
Flag as ContentBug
Visual Studio Visual Basic Access Add Insert !      NotAllNewbie   |   Edit   |   Show History

Problem unable to add data to access database please help !

Private Sub Add_Click(sender As System.Object, e As System.EventArgs) Handles Add.Click
Dim con As New OleDbConnection("Provider=Microsoft.jet.oledb.4.0;data source=myDB.mdb")
Dim da As OleDbDataAdapter = New OleDbDataAdapter()
Dim cmd As New OleDbCommand

Try


cmd = New OleDbCommand("INSERT INTO Users (userid, password) " +
"VALUES ('" &;; UsernameTextBox.Text &;; "','" &;; PasswordTextBox.Text &;; "')", con)
cmd.Parameters.Add("'" &;; UsernameTextBox.Text &;; "' , '" &;; PasswordTextBox.Text &;; "' ")
da.InsertCommand = cmd
MsgBox("User added")

Catch ex As Exception
MsgBox("Sorry user was not added")
End Try

Return

Tags What's this?: Add a tag
Flag as ContentBug
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker