okay, what does this mean? error C2440: '=' : cannot convert from 'char [2]' to 'char' I got 25 of these for that code. "To wonder is to begin to understand"
Ever1234
Posts
-
Could ya'll please tell me what is wrong with this code? -
Could ya'll please tell me what is wrong with this code?Okay, it isnt done yet and this is the first time I have ever used arrays. Visual Studio 6.0 gave me 21 errors, and I dont know how to fix it. heres the code: // Password Generator.cpp : Randomly generates an 8 charactor password. //with swapping vowls and consenents for maximum pronounciblity. #include "stdafx.h" int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { // TODO: Place code here. char cons[19]; char vowl[6]; int number[10]; cons[0]="b" || "B"; cons[1]="c" || "C"; cons[2]="d" || "D"; cons[3]="f" || "F"; cons[4]="g" || "G"; cons[5]="h" || "H"; cons[6]="j" || "J"; cons[7]="k" || "K"; cons[8]="l" || "L"; cons[9]="m" || "M"; cons[10]="n" || "N"; cons[11]="p" || "P"; cons[12]="r" || "R"; cons[13]="s" || "S"; cons[14]="t" || "T"; cons[15]="v" || "V"; cons[16]="w" || "W"; cons[17]="x" || "X"; cons[18]="z" || "Z"; vowl[0]="a" || "A"; vowl[1]="e" || "E"; vowl[2]="i" || "I"; vowl[3]="o" || "O"; vowl[4]="u" || "U"; vowl[5]="y" || "Y"; int number[0]="1"; int number[1]="2"; int number[2]="3"; int number[3]="4"; int number[4]="5"; int number[5]="6"; int number[6]="7"; int number[7]="8"; int number[8]="9"; int number[9]="0"; return 0; } "To wonder is to begin to understand"
-
Exlusive-or cryptingAnyone care to clear this up for me? "To wonder is to begin to understand"
-
Dang CompilerOkay, I wrote some code and it is bug free, exept that the danged compiler generated code has some many bugs it wont compile. Its a 5 line proggy, none of the errors come from the code that I wrote. WHAT IS UP WITH THAT? How can I get it to accept my code. Where can I get a compiler that works? "To wonder is to begin to understand"
-
SendMessege()Could someone clear this up for me. Like tell me all the stuff about it. "To wonder is to begin to understand"
-
Zipping QuestionThank you very much "To wonder is to begin to understand"
-
Zipping QuestionI just want to know what kind of APIs and stuff I would need to write a winzip like program. "To wonder is to begin to understand"
-
program interactiondoes anyone know of a script that will interact with a certain program, recording certain tasks completed, like a gaming ladder. "To wonder is to begin to understand"
-
InteractionDoes anyone know how to make a program that will interact with a web page (create a game ladder for leages and such)? I know it is possible. "To wonder is to begin to understand"
-
Onclickis there such a function in Microsoft visual C++? OnClick "To wonder is to begin to understand"
-
Getting Key strokesI need to get keystrokes and save them to a file, how is this done. (Like a logger) "To wonder is to begin to understand"
-
LoggerI am attempting to write a keylogger for my friend, and I know I will need to use hooks, but I dont know how to use them. Can someone please help me? "To wonder is to begin to understand"
-
Keyboard eventsAhhhh, that hurts. How can I get it to log for the entire system and not just one program (I have never used hooks) "To wonder is to begin to understand"
-
Keyboard eventsI am working on a logger for my friend and I need to know how I could go about capturing the keyboard commands and saving them to a file. Help is much appreciated.:confused: :confused: "To wonder is to begin to understand"